CN112328616A - Data updating method, device and storage medium - Google Patents

Data updating method, device and storage medium Download PDF

Info

Publication number
CN112328616A
CN112328616A CN202011286171.7A CN202011286171A CN112328616A CN 112328616 A CN112328616 A CN 112328616A CN 202011286171 A CN202011286171 A CN 202011286171A CN 112328616 A CN112328616 A CN 112328616A
Authority
CN
China
Prior art keywords
data
updated
target
node
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011286171.7A
Other languages
Chinese (zh)
Inventor
黄铁鸣
康师亮
叶波
林莉
李斌
曾楚伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011286171.7A priority Critical patent/CN112328616A/en
Publication of CN112328616A publication Critical patent/CN112328616A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a data updating method, a device and a storage medium; the method can acquire a target organization information table, wherein the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications; when the current time is matched with the preset updating time, scanning the data identification of the data node in the target organization information table to determine the data node to be updated from all the data nodes; determining target data content corresponding to a data node to be updated; updating the data identifier to be updated of the data node to be updated based on the target data content; the data updating efficiency can be improved.

Description

Data updating method, device and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a data updating method, apparatus, and storage medium.
Background
In daily life, some data can be stored based on needs, and part of the data can change along with changes of factors such as time, for example, when a new school date is started, a school information table stored by a campus communication application may need to be updated, and updated data information may be, for example, grade information, class information and the like of students and teaching workers.
In the process of research and practice of the prior art, the inventor of the application finds that the prior art needs manual operation of a user, the operation is complicated, and the data updating efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data updating method, a data updating device and a storage medium, and data updating efficiency can be improved.
The embodiment of the present application provides a data updating method, including:
acquiring a target organization information table, wherein the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications;
when the current time is matched with the preset updating time, scanning the data identification of the data node in the target organization information table to determine the data node to be updated from all the data nodes;
determining target data content corresponding to the data node to be updated;
and updating the data identification to be updated of the data node to be updated based on the target data content.
Accordingly, the present application provides a data updating apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target organization information table, the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications;
the scanning module is used for scanning the data identification of the data node in the target organization information table when the current time is matched with the preset updating time, so as to determine the data node to be updated from all the data nodes;
the determining module is used for determining target data content corresponding to the data node to be updated;
and the updating module is used for updating the data identifier to be updated of the data node to be updated based on the target data content.
In some embodiments, the scan module includes a determination sub-module and a scan sub-module, wherein,
the determining submodule is used for determining the data identifier to be updated;
and the scanning submodule is used for scanning the data identifiers of the data nodes in the target organization information table so as to determine the data nodes to be updated containing the data identifiers to be updated from all the data nodes.
In some embodiments, the determination submodule is specifically configured to:
displaying the update prompt information of the target organization information table;
and determining a data identifier to be updated of the target organization information table, wherein the data identifier to be updated is determined based on feedback information, and the feedback information is obtained by the object according to the update prompt information.
In some embodiments, the predetermined mapping relationship is a mapping relationship between data identifications and data contents, and the determining module includes an identification submodule and a content submodule, wherein,
the identification submodule is used for determining a target data identification of the data node to be updated;
and the content submodule is used for determining the target data content of the data node to be updated according to a preset mapping relation and the target data identifier.
In some embodiments, the identification submodule is specifically configured to:
and determining the target data identifier of the data node to be updated based on a preset identifier updating strategy and the data identifier to be updated.
In some embodiments, the determining module is specifically configured to:
acquiring the data content to be updated of the data node to be updated;
and determining the target data content of the data node to be updated based on a preset content updating strategy and the data content to be updated.
In some embodiments, the data updating apparatus further comprises:
the request module is used for receiving a data content viewing request, wherein the data content viewing request is viewing request information of an object to an updated data node in an updated target organization information table;
the content module is used for determining data content corresponding to the data identifier of the updated data node based on the preset mapping relation;
and the content output module is used for outputting the data content of the updated data node.
In some embodiments, the data updating apparatus further comprises:
and the message output module is used for outputting a data updating completion message, and the data updating completion message is used for prompting that the data updating of the object aiming at the target organization information table is completed.
In some embodiments, the update module is specifically configured to:
determining a target data identifier corresponding to the target data content;
and replacing the data identifier to be updated of the data node to be updated with the target data identifier.
Correspondingly, the embodiment of the present application further provides a storage medium, where a computer program is stored, and the computer program is suitable for being loaded by a processor to execute any one of the data updating methods provided in the embodiment of the present application.
Accordingly, embodiments of the present application further provide a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements any one of the data updating methods provided in the embodiments of the present application when executing the computer program.
The method can acquire a target organization information table, wherein the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications; when the current time is matched with the preset updating time, scanning the data identification of the data node in the target organization information table to determine the data node to be updated from all the data nodes; determining target data content corresponding to a data node to be updated; and updating the data identifier to be updated of the data node to be updated based on the target data content.
When the preset updating time is up, the data nodes to be updated in the target organization information table are determined by scanning the data identifications of all the data nodes in the target organization information table, and then the data nodes to be updated are updated according to the target data content of the data nodes to be updated, so that the data of all the data identifications to be updated in the whole target information table are updated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a scenario of a data update system provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a data updating method according to an embodiment of the present application;
FIG. 3 is another schematic flow chart diagram illustrating a data updating method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another general implementation of a data update method provided by an embodiment of the present application;
FIG. 5 is a schematic flow chart illustrating an implementation of a data updating method according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of another implementation of a data updating method provided in an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a data update apparatus according to an embodiment of the present application;
FIG. 8 is a schematic diagram of another structure of a data update apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the embodiments described in the present application are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a data updating method, a data updating device and a storage medium. In particular, the embodiment of the application can be integrated in a data updating system.
The data updating system may be integrated in a computer device, the computer device may include a terminal or a server, and the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud computing services. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a smart television, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
As shown in fig. 1, fig. 1 is a schematic view of a scenario of a data update system, which may be integrated on a computer device, specifically:
the computer equipment can firstly obtain a target organization information table, the target organization information table comprises a plurality of data nodes, the data nodes comprise data identifications, when the current time is detected to be matched with the preset updating time, the data identifications of the data nodes in the target organization information table are scanned to determine the data nodes to be updated from all the data nodes, then the target data content corresponding to the data nodes to be updated is determined, and finally the data identifications to be updated of the data nodes to be updated are updated based on the target data content.
It should be noted that the scenario diagram of the data updating system shown in fig. 1 is merely an example, and the data updating system and the scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation to the technical solution provided in the embodiment of the present application.
The following are detailed below. In this embodiment, a detailed description will be given of a data update method, which may be integrated on a computer device, as shown in fig. 2, and may include:
101. and acquiring a target organization information table, wherein the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications.
The target organization information table may include a data set storing related information of a target organization in a data form, and the related information that may be stored in the target organization information table may also be different according to the difference of organizations, for example, the target organization information table of an education organization (such as a school, a training institution, etc.) may include identity information, class information, communication information, etc. of students, and for example, the target organization information table of an enterprise may include department information, post information, working year information, etc. of employees.
The related information in the target organization information table may also be different according to the difference of the usage scenario, for example, in the target organization information table for determining insurance information, the related information may include the insurance category, the paid age, the fee due, and the like of the insurer, and for example, in the target organization information table for verifying the event admission eligibility, the related information may include the gender, the age, the admission verification identifier, and the like of the event member. Specifically, the related information in the target organization information table may be flexibly set in the actual application process, and is not described herein again.
In order to facilitate efficient reading and modification of data of the target organization information table, the target organization information table may be stored through a specific data structure when being stored, for example, the target organization information table may include a plurality of data nodes, and the data nodes may include contents having specific data information, for example, data contents, data identifiers, hash code values of the data contents, and the like.
The data identifier may be information that uniquely identifies a specific data content, and the data identifier may be determined based on the data content, for example, the last 4 characters of the data content are taken as the data identifier of the data content, so that part of the data content can be directly known through the data identifier; the data identifier may also be determined based on factors related to the data content, for example, the data identifier of the data content may be determined according to the acquisition time, the acquisition order, and the like of the data content; the data identification can also be randomly determined, and the like, and can be flexibly set in the actual application process.
Specifically, the process of obtaining the target organization information table may include various ways, for example, a request may be sent to a computer device including a server, and the target organization information table returned by the computer device based on the request may be received; for another example, a storage address of the target organization information table may be determined, the target organization information table may be obtained from the storage address, and so on.
For example, a target organization information table 1 is obtained from a server where a database is located, where the target organization information table 1 includes a plurality of data nodes, and each data node includes a data identifier.
102. And when the current time is matched with the preset updating time, scanning the data identification of the data node in the target organization information table to determine the data node to be updated from all the data nodes.
The preset update time may include a preset update time, where the preset update time is a time for updating the target organization information table, and the preset update time may be input in advance by a creator or a manager of the target organization information table, or may be set automatically by the system, for example, the system may automatically set the preset update time according to the number of data nodes in the target organization information table, and so on.
The data nodes to be updated may include a plurality of types, and each type of data node to be updated may correspond to one data identifier.
Specifically, the matching between the current time and the preset updating time may be that the current time is consistent with the preset updating time, and if the preset updating time is X years, X months, X days and 2 o 'clock, the matching between the current time and the preset updating time is obtained when the current time is X years, X months, X days and 2 o' clock; the current time is a time point in a specific time period before and after the preset update time, or the current time may be matched with the preset update time, for example, the preset update time is 30 minutes and 30 seconds at 17 points and X days in X months and X months in X years, and the specific time period is 60 seconds, if the current time is between 29 minutes and 30 seconds at 17 points and 31 minutes and 30 seconds at X days in X months and X months, that is, the current time is matched with the preset update time, and the like.
The current time may be detected by acquiring from the timing device at a set time interval, and the set time interval may be consistent all the time, for example, the current time is acquired from the timing device every 10 seconds; the set time interval may also be changed periodically, for example, within 24 hours of a day, the set time interval from 9 to 18 points may be set to 3 seconds, and the set time interval from 0 to 9 points and from 18 to 24 points may be 8 seconds; the set time interval may also vary with differences in data nodes and data identifiers in the target organization information table, with differences in geographic locations when the present application is implemented, and so on.
The scanning of the data identifier of the data node in the target organization information table may include, according to a difference of a data structure used when the target organization information table is stored, following different scanning rules, and the scanning of the data identifier of the data node in the target organization information table may be, for example, obtaining the data identifier of each data node in the target organization information table, or storing the data identifier through a tree structure, obtaining the data identifier of each data node based on a breadth first principle, and the like.
After the data identifier of the data node is obtained, it may be determined whether the data node to which the data identifier belongs is a data node to be updated according to the data identifier, for example, whether the data node to which the data identifier belongs is a data node to be updated according to the character length of the data identifier, and so on.
For example, when it is detected that the current time 1 is consistent with the preset update time point O, the data identifier of each data node in the target organization information table 1 is obtained, and then the data node to be updated in the target organization information table is determined.
In some embodiments, the step of "scanning the data identifiers of the data nodes in the target organization information table to determine the data node to be updated from all the data nodes" may include:
determining a data identifier to be updated; and scanning the data identifiers of the data nodes in the target organization information table so as to determine the data nodes to be updated containing the data identifiers to be updated from all the data nodes.
The data identifier to be updated may include at least one data identifier that needs to be updated, and the process of determining the data identifier to be updated may include determining the data identifier to be updated according to the characteristics of the organization recorded in the target organization information table, for example, if the grade information of students in a school needs to be updated in a new school year, the original grade information of most students needs to be updated, at this time, the data identifier to be updated may be the data identifier of all the grade information, and similarly, in the beginning of the new year, if the working grade information of employees of a certain enterprise needs to be updated, the original working grade information of most employees needs to be updated; the identifier of the data to be updated may also be obtained directly, for example, from a server.
After the data identifiers of the data nodes in the target organization information table are obtained in a scanning mode, the data identifiers can be compared with the data identifiers to be updated, if the data identifiers are consistent with the data identifiers, the data nodes can be determined to be the data nodes to be updated, if the data identifiers to be updated are multiple, the data identifiers to be updated are sequentially compared with each data identifier to be updated, and if the data identifiers to be updated which are consistent with the data identifiers exist, the data nodes are determined to be the data nodes to be updated of the category where the data identifiers to be updated are located.
For example, the data to be updated may be received from the server: and the identifier 1 is used for scanning the data identifier of each data node in the target organization information table 1, sequentially comparing whether the data identifier of the data node is consistent with the identifier 1, and if so, determining that the data node is the data node to be updated.
In some embodiments, the step of "determining the data identity to be updated" may comprise:
displaying the update prompt information of the target organization information table; and determining a data identifier to be updated of the target organization information table, wherein the data identifier to be updated is determined based on feedback information, and the feedback information is obtained by the object according to the update prompt information.
In some embodiments, the data identifier to be updated may be determined based on information input by the object, and for some data identifiers to be updated without an obvious update rule, the data identifier to be updated may be manually input by a creator or a manager of the target organization information table to determine the data identifier to be updated, determine the data node to be updated, and finally complete the update of the data node to be updated.
The update prompt information may include information for prompting an object to input data content to be updated, the update prompt information may be displayed on a page in a concise and understandable form such as text, image, video, and the like, so that the prompt object inputs feedback information according to the update prompt information, a data identifier to be updated may be determined based on the feedback information, the feedback information may be the data content to be updated or the data identifier to be updated, and in order to obtain the data identifier to be updated, if the feedback information is the data content to be updated, the data identifier to be updated corresponding to the data content to be updated may be determined through a mapping relationship between the data content and the data identifier.
For example, an update prompt message "please input a data type to be updated" may be displayed on the page, and the received feedback information may be "hierarchical data", so that the data node to which the data identifier having the data identifier type of "hierarchical data" belongs may be determined as the data node to be updated.
103. And determining target data content corresponding to the data node to be updated.
The target data content can be data information which is easy to view and understand, the data identification mainly plays a marking role, the data content can be content with data meaning recorded in the form of text and the like, and the target data content is the updated data content of the node to be updated.
Specifically, the manner of determining the target data content corresponding to the data node to be updated may be various, for example, the target data content input by the object may be received, and for example, the target data content may be automatically generated, and during the automatic generation, the target data content may be generated according to the identifier of the data to be updated, the data content to be updated, and the like, or may be generated according to the set update time point of the target organization information table, and for example, for the target organization information table, when the preset update time is in time period 1, the target data content is content 1, and when the preset update time is in time period 2, the target data content is content 2.
In some embodiments, the step of "determining the target data content corresponding to the data node to be updated" may include:
determining a target data identifier of a data node to be updated; and determining the target data content of the data node to be updated according to the preset mapping relation and the target data identifier.
The target data identifier may be information uniquely identifying the target data, and the preset mapping relationship may be a corresponding relationship between the data identifier and the data content, so that after the target data identifier is determined, the target data content corresponding to the target data identifier may be determined from the preset mapping relationship.
Specifically, the manner of determining the target data identifier of the data node to be updated may include multiple manners, for example, randomly extracting in the data identifier set to determine the target data from the data identifier set including multiple candidate data identifiers; as another example, receiving a target data identification of the object input, etc.
The specific data identifier identical to the target data identifier can be determined from the data identifiers in the preset mapping relationship, and then the data content corresponding to the specific data identifier is determined according to the corresponding relationship between the data identifiers and the data nodes in the mapping relationship, and the data content is the target data content.
For example, determining that a target data identifier of a data node to be updated is an identifier F, and determining a data content F corresponding to the identifier F from the preset mapping relationship 1, where the data content F is the target data content.
In some embodiments, the step of "determining the target data identity of the data node to be updated" may comprise:
and determining the target data identifier of the data node to be updated based on the preset identifier updating strategy and the data identifier to be updated.
The preset identifier updating policy may be a policy that determines a target data identifier obtained in advance, the preset identifier updating policy may obtain the target data identifier by using the relevant information of the data node to be updated, and the relevant information of the data node to be updated may be, for example, storage information of the data node to be updated, the data identifier to be updated of the data node to be updated, and the like.
Specifically, the preset identifier updating policy may be a formula including an operation rule, for example, the addition and subtraction operation, the exponential operation, and the like are performed on the identifier of the data to be updated to obtain the target data identifier of the data node to be updated; the preset identifier updating strategy can also be an updating script, and if the identifier of the data to be updated is input into the updating script, the updating script can output the target data identifier; in the actual use process, the preset identification updating strategy can be borne through a trained neural network model and the like, and flexible selection can be performed according to actual requirements.
For example, the identifier of the data to be updated is 1, and 2 is added to the identifier of the data to be updated through a preset identifier updating policy, so that the identifier of the target data is 3.
In some embodiments, the step of "determining the target data content corresponding to the data node to be updated" may include:
acquiring the data content to be updated of the data node to be updated; and determining the target data content of the data node to be updated based on the preset content updating strategy and the data content to be updated.
Specifically, if the data node to be updated includes the data content to be updated, the data node to be updated may be obtained directly from the data node to be updated, and if the data node to be updated only includes the data identifier to be updated, the data content to be updated corresponding to the data node to be updated may be determined by the data identifier to be updated.
The preset content updating policy may include a policy for determining a target data content, which is acquired in advance, and the preset content updating policy is determined by receiving a target data content acquisition request of the node to be updated, for example, if the node to be updated is the 30 th data node that needs to acquire the target data content in the current updating process, the target data content of the node to be updated may be determined to be 30 accordingly.
The preset content updating policy may also be implemented by using the data content to be updated of the data node to be updated, for example, the data content to be updated of the data node to be updated may be obtained by performing a relevant operation, specifically, the relevant operation may include addition, deletion, modification, and the like, and when the target data content is obtained by using the preset content updating policy and the data content to be updated, the operation may be completed by using a code, a model, and the like.
For example, the data content 1 to be updated may be directly obtained from the storage address of the data node to be updated, and the data content 1 to be updated is modified through a preset content update policy, so as to obtain the target data content D of the data node to be updated.
104. And updating the data identifier to be updated of the data node to be updated based on the target data content.
Specifically, the target update data content of the data node to be updated may be generated according to the target data content of the data node to be updated and the data content to be updated, the target update data identifier may be determined based on the target update data content, and finally, the data identifier to be updated is updated through the target update data identifier.
The number of the target data contents can be multiple, and if a specific corresponding relationship exists between the target data contents and the data nodes to be updated, the target data contents corresponding to each data node to be updated can be determined based on the specific corresponding relationship; if the two data nodes do not have a specific corresponding relationship, the target data content corresponding to each data node to be updated can be determined from the plurality of target data contents in a random extraction mode and the like.
In some embodiments, the step "updating the to-be-updated data identifier of the to-be-updated data node based on the target data content" may include:
determining a target data identifier corresponding to the target data content; and replacing the data identifier to be updated of the data node to be updated with the target data identifier.
The target data identifier corresponding to the target data content may be determined, for example, it may be determined through a mapping relationship between the data content and the data identifier, and then the data identifier to be updated stored in the data node to be updated is replaced with the target data identifier, so that the data node to be updated is updated.
In some embodiments, the data update method may further include:
receiving a data content viewing request, wherein the data content viewing request is viewing request information of an object to the updated data node in the updated target organization information table; determining data content corresponding to the data identification of the updated data node based on a preset mapping relation; and outputting the data content of the updated data node.
The data node in the updated target organization information table may include the updated data identifier, and may perform information check through the updated target organization information table, specifically, may receive a data content check request, where the data content check request may include the data identifier of the updated data node that is desired to be checked, and according to the data identifier and a preset mapping relationship, the mapping relationship may include a corresponding relationship between the data identifier and the data content, determine the data content of the updated data node, and output the data content, thereby implementing a completed information check process.
In the target organization information table or the updated target organization information table, the data nodes comprise data identifications which do not comprise data contents generally, compared with the data identifications, the data contents generally occupy more memory resources, when the data updating is needed, the target data contents and the corresponding target data identifications are determined through a predetermined preset mapping relation, the target data identifications are stored in the target organization information table, the updating of the target organization information table is realized, when the information checking is needed, the data contents corresponding to the data identifications to be checked are only determined from the mapping relation, the method is simple and easy to implement, and meanwhile, the memory occupation of the target organization information table can be reduced remarkably.
For example, a data content viewing request may be received, where the data content viewing request includes viewing request information of the updated data node a, and a data content a of the data identifier of the updated data node is determined according to the preset mapping relation 1, and the data content a is output.
In some embodiments, the data update method may further include:
and outputting a data updating completion message, wherein the data updating completion message is used for prompting that the data updating of the target organization information table is completed.
After the data update is complete, a data update complete message may be output, such as by displaying the data update complete message on a page in the form of text, such as "update completed! For another example, a data update completion message in the form of audio is played, where the audio may be a simple prompt tone or may include voice, and the voice may be "update completed" or the like.
When the preset updating time is up, the data nodes to be updated in the target organization information table are determined by scanning the data identifications of all the data nodes in the target organization information table, and then the data nodes to be updated are updated according to the target data content of the data nodes to be updated, so that the data of all the data identifications to be updated in the whole target information table are updated.
The method described in the above embodiments is further illustrated in detail by way of example.
The present embodiment will be described in detail by taking a data updating method integrated in a computer device as an example. In this embodiment, the target organization information table may be a school address book.
As shown in fig. 3, fig. 3 is a schematic flow chart of a data updating method provided in the embodiment of the present application. The data updating method may include:
201. the computer equipment acquires a target organization information table, wherein the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications.
For example, a school address book may be obtained from the database, the school address book may organize information in the form of a multi-branch tree, the information may include schools, grades, classes, and the like, and the school address book in the form of the multi-branch tree may include a plurality of data nodes, each of which includes a data identifier.
202. The computer device determines the identity of the data to be updated.
For example, the computer device may determine that the data identifier to be updated is the all-grade data identifier according to the time information.
203. When the current time is matched with the preset updating time, the computer equipment scans the data identification of the data node in the target organization information table so as to determine the data node to be updated containing the data identification to be updated from all the data nodes.
For example, the computing device may detect whether the current time matches a preset update time, and when the current time matches the preset update time, may scan the data identifier of each data node in the school address book, and determine the data node in the school address book that includes the hierarchical data identifier as the data node to be updated.
204. The computer equipment determines the target data content corresponding to the data node to be updated.
For example, the computer device may determine, according to the to-be-updated data identifier (i.e., the hierarchical data identifier) of the to-be-updated data node, the to-be-updated data content corresponding to the to-be-updated data identifier, and further determine the target data content.
205. And the computer equipment determines the target data identifier of the data node to be updated according to the preset mapping relation and the target data content.
For example, the preset mapping relationship may include a correspondence between a data identifier and a data content, a target data content of the computer device, and a target data identifier corresponding to the target data content.
206. And replacing the to-be-updated data identifier of the to-be-updated data node with the target data identifier by the computer equipment.
For example, in order to save memory usage of a school address book, the computer device may replace a to-be-updated data identifier in the school address book with a target data identifier, so as to update data.
In some embodiments, referring to fig. 4, the target organization information table may be a school address book, the school address book may include school information, class information, and class information, the class information is updated, the data node to be updated may be 2 class nodes, the data identifier to be updated of the class node to be updated may be Id 1 and Id 2, respectively, the upgrade time set by the user is received, when the upgrade time arrives, the target data content and the corresponding target data identifier (Id 2 and Id 3, respectively) may be determined according to a preset configuration table (i.e., a preset mapping relationship) and the data identifier to be updated, and finally, the data identifier to be updated of the data node to be updated is replaced with the target data identifier, so as to implement the data updating process.
For example, referring to fig. 5, specifically, the user specifies an upgrade time point and sends the upgrade time point to the upgrade hierarchical service module, the upgrade hierarchical service module may detect whether the upgrade time point is reached, when the upgrade time point is reached, upgrade (update) of hierarchical information may be performed, a hierarchical node to be upgraded (a data node to be updated) is determined from the hierarchical address book infrastructure tree, after the target data content is determined, an upgraded identifier (i.e., a target data identifier) corresponding to the target data content is determined from the hierarchical configuration table, the data identifier of the hierarchical node is updated to the target data identifier, and the target data identifier is stored in the hierarchical address book infrastructure tree, so as to implement data update.
Referring to fig. 6, the process of the user viewing the address book may include that the user views the grade, the class address book architecture tree determines the grade data content (grade name) corresponding to the grade data identifier to be viewed from the grade configuration table, and the class address book architecture tree may output the grade name for the user to view.
When the preset updating time is up, the data nodes to be updated in the target organization information table are determined by scanning the data identifications of all the data nodes in the target organization information table, and then the data nodes to be updated are updated according to the target data content of the data nodes to be updated, so that the data of all the data identifications to be updated in the whole target information table are updated.
In order to better implement the data updating method provided by the embodiment of the present application, an embodiment of the present application further provides a device based on the data updating method. The terms are the same as those in the data updating method, and details of implementation can be referred to the description in the method embodiment.
Fig. 7 is a schematic structural diagram of a data updating apparatus according to an embodiment of the present application, as shown in fig. 7, where the data updating apparatus may include an obtaining module 301, a scanning module 302, a determining module 303, and an updating module 304, where,
an obtaining module 301, configured to obtain a target organization information table, where the target organization information table includes a plurality of data nodes, and each data node includes a data identifier;
a scanning module 302, configured to scan data identifiers of data nodes in a target organization information table when it is detected that the current time matches a preset update time, so as to determine a data node to be updated from all the data nodes;
a determining module 303, configured to determine target data content corresponding to a data node to be updated;
the updating module 304 is configured to update the to-be-updated data identifier of the to-be-updated data node based on the target data content.
In some embodiments, the scan module includes a determination sub-module and a scan sub-module, wherein,
the determining submodule is used for determining the data identifier to be updated;
and the scanning submodule is used for scanning the data identifiers of the data nodes in the target organization information table so as to determine the data nodes to be updated containing the data identifiers to be updated from all the data nodes.
In some embodiments, the determination submodule is specifically configured to:
displaying the update prompt information of the target organization information table;
and determining a data identifier to be updated of the target organization information table, wherein the data identifier to be updated is determined based on feedback information, and the feedback information is obtained by the object according to the update prompt information.
In some embodiments, referring to fig. 8, the predetermined mapping relationship is a mapping relationship between data identifiers and data contents, and the determining module 303 includes an identifier sub-module 3031 and a content sub-module 3032, wherein,
the identification submodule 3031 is used for determining a target data identification of a data node to be updated;
and the content submodule 3032 is configured to determine target data content of the data node to be updated according to the preset mapping relationship and the target data identifier.
In some embodiments, the identification submodule is specifically configured to:
and determining the target data identifier of the data node to be updated based on the preset identifier updating strategy and the data identifier to be updated.
In some embodiments, the determining module is specifically configured to:
acquiring the data content to be updated of the data node to be updated;
and determining the target data content of the data node to be updated based on the preset content updating strategy and the data content to be updated.
In some embodiments, the data updating apparatus further comprises:
the request module is used for receiving a data content viewing request, wherein the data content viewing request is viewing request information of an object to an updated data node in an updated target organization information table;
the content module is used for determining data content corresponding to the data identification of the updated data node based on a preset mapping relation;
and the content output module is used for outputting the data content of the updated data node.
In some embodiments, the data updating apparatus further comprises:
and the message output module is used for outputting a data updating completion message which is used for prompting that the data updating of the object aiming at the target organization information table is completed.
In some embodiments, the update module is specifically configured to:
determining a target data identifier corresponding to the target data content;
and replacing the data identifier to be updated of the data node to be updated with the target data identifier.
In this application, the obtaining module 301 may first obtain a target organization information table, where the target organization information table includes a plurality of data nodes, and the data nodes include data identifiers, and then the scanning module 302 may scan the data identifiers of the data nodes in the target organization information table when it is detected that the current time matches the preset update time, so as to determine the data nodes to be updated from all the data nodes, the determining module 303 determines target data contents corresponding to the data nodes to be updated, and finally the updating module 304 updates the data identifiers to be updated of the data nodes to be updated based on the target data contents.
When the preset updating time is up, the data nodes to be updated in the target organization information table are determined by scanning the data identifications of all the data nodes in the target organization information table, and then the data nodes to be updated are updated according to the target data content of the data nodes to be updated, so that the data of all the data identifications to be updated in the whole target information table are updated.
In addition, an embodiment of the present application further provides a computer device, where the computer device may be a terminal or a server, as shown in fig. 9, which shows a schematic structural diagram of the computer device according to the embodiment of the present application, and specifically:
the computer device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 9 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the computer device as a whole. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user pages, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The computer device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input unit 404, the input unit 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
acquiring a target organization information table, wherein the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications; when the current time is matched with the preset updating time, scanning the data identification of the data node in the target organization information table to determine the data node to be updated from all the data nodes; determining target data content corresponding to a data node to be updated; and updating the data identifier to be updated of the data node to be updated based on the target data content.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, embodiments of the present application further provide a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the data updating methods provided in the embodiments of the present application. For example, the computer program may perform the steps of:
acquiring a target organization information table, wherein the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications; when the current time is matched with the preset updating time, scanning the data identification of the data node in the target organization information table to determine the data node to be updated from all the data nodes; determining target data content corresponding to a data node to be updated; and updating the data identifier to be updated of the data node to be updated based on the target data content.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any data updating method provided in the embodiments of the present application, the beneficial effects that can be achieved by any data updating method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the foregoing embodiments.
The foregoing detailed description has provided a data updating method, apparatus and storage medium provided by embodiments of the present application, and the principles and embodiments of the present application are described herein using specific examples, which are provided only to help understand the methods and their core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A method for updating data, comprising:
acquiring a target organization information table, wherein the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications;
when the current time is matched with the preset updating time, scanning the data identification of the data node in the target organization information table to determine the data node to be updated from all the data nodes;
determining target data content corresponding to the data node to be updated;
and updating the data identification to be updated of the data node to be updated based on the target data content.
2. The method of claim 1, wherein the scanning data identities of data nodes in the target organization information table to determine a data node to be updated from all data nodes comprises:
determining a data identifier to be updated;
and scanning the data identifiers of the data nodes in the target organization information table so as to determine the data nodes to be updated containing the data identifiers to be updated from all the data nodes.
3. The method of claim 2, wherein the determining the data identity to be updated comprises:
displaying the update prompt information of the target organization information table;
and determining a data identifier to be updated of the target organization information table, wherein the data identifier to be updated is determined based on feedback information, and the feedback information is obtained by the object according to the update prompt information.
4. The method according to claim 3, wherein the preset mapping relationship is a mapping relationship between data identifiers and data contents, and the determining the target data contents of the data nodes to be updated includes:
determining a target data identifier of the data node to be updated;
and determining the target data content of the data node to be updated according to a preset mapping relation and the target data identifier.
5. The method of claim 4, wherein the determining the target data identity of the data node to be updated comprises:
and determining the target data identifier of the data node to be updated based on a preset identifier updating strategy and the data identifier to be updated.
6. The method of claim 1, wherein determining the target data content of the data node to be updated comprises:
acquiring the data content to be updated of the data node to be updated;
and determining the target data content of the data node to be updated based on a preset content updating strategy and the data content to be updated.
7. The method of claim 4, further comprising:
receiving a data content viewing request, wherein the data content viewing request is viewing request information of an object to an updated data node in an updated target organization information table;
determining data content corresponding to the data identification of the updated data node based on the preset mapping relation;
and outputting the data content of the updated data node.
8. The method of claim 1, further comprising:
and outputting a data updating completion message, wherein the data updating completion message is used for prompting that the data updating of the object aiming at the target organization information table is completed.
9. The method according to claim 1, wherein the updating the to-be-updated data identifier of the to-be-updated data node based on the target data content comprises:
determining a target data identifier corresponding to the target data content;
and replacing the data identifier to be updated of the data node to be updated with the target data identifier.
10. A data update apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a target organization information table, the target organization information table comprises a plurality of data nodes, and the data nodes comprise data identifications;
the scanning module is used for scanning the data identification of the data node in the target organization information table when the current time is matched with the preset updating time, so as to determine the data node to be updated from all the data nodes;
the determining module is used for determining target data content corresponding to the data node to be updated;
and the updating module is used for updating the data identifier to be updated of the data node to be updated based on the target data content.
11. A storage medium, characterized in that it stores a plurality of computer programs adapted to be loaded by a processor for performing the steps of the method according to any one of claims 1 to 9.
CN202011286171.7A 2020-11-17 2020-11-17 Data updating method, device and storage medium Pending CN112328616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011286171.7A CN112328616A (en) 2020-11-17 2020-11-17 Data updating method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011286171.7A CN112328616A (en) 2020-11-17 2020-11-17 Data updating method, device and storage medium

Publications (1)

Publication Number Publication Date
CN112328616A true CN112328616A (en) 2021-02-05

Family

ID=74321713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011286171.7A Pending CN112328616A (en) 2020-11-17 2020-11-17 Data updating method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112328616A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938874A (en) * 2021-09-28 2022-01-14 中国联合网络通信集团有限公司 Data processing method, device, equipment and system
CN116644215A (en) * 2023-07-27 2023-08-25 北京亿中邮信息技术有限公司 Data updating method and system of cross-organization structure

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938874A (en) * 2021-09-28 2022-01-14 中国联合网络通信集团有限公司 Data processing method, device, equipment and system
CN113938874B (en) * 2021-09-28 2023-08-08 中国联合网络通信集团有限公司 Data processing method, device, equipment and system
CN116644215A (en) * 2023-07-27 2023-08-25 北京亿中邮信息技术有限公司 Data updating method and system of cross-organization structure
CN116644215B (en) * 2023-07-27 2023-09-29 北京亿中邮信息技术有限公司 Data updating method and system of cross-organization structure

Similar Documents

Publication Publication Date Title
CN106971009B (en) Voice database generation method and device, storage medium and electronic equipment
CN107832291B (en) Man-machine cooperation customer service method, electronic device and storage medium
CN112328616A (en) Data updating method, device and storage medium
CN111737443B (en) Answer text processing method and device and key text determining method
CN109978629A (en) Advertisement putting method and device, electronic equipment and storage medium
CN114675987A (en) Cache data processing method and device, computer equipment and storage medium
CN110597490A (en) Software development demand distribution method and device
CN109710747B (en) Information processing method and device and electronic equipment
CN112184138A (en) RPA and AI combined power grid work order processing method and device and electronic equipment
CN114489561A (en) Intelligent audio volume adjusting method and device, electronic equipment and storage medium
CN114386853A (en) Data auditing processing method, device and equipment based on universal auditing model
CN115167785B (en) Label-based network disk file management method and device, network disk and storage medium
CN114943517A (en) Electronic recruitment matching method and system based on Internet of things and storage medium
CN114090911A (en) Interface processing method and device, computer equipment and computer readable storage medium
CN113064895A (en) Incremental updating method, device and system for map
CN113641908B (en) Course pushing method, course pushing device, server and computer storage medium
CN110674119A (en) Data processing method, system and computer readable storage medium
CN117076542B (en) Data processing method and related device
US11995584B2 (en) Training assignment tool
CN115439094A (en) Third-party service management method, device, equipment and medium
CN113741930A (en) Application upgrading method and device, electronic equipment and computer readable storage medium
JP2018101250A (en) Knowledge information management system, knowledge information management method, and program
CN113643000A (en) Enterprise internal course management method, system, terminal and storage medium
CN116860948A (en) Dialogue record processing method and related device
CN115982458A (en) Data pushing method and device based on interests, electronic 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