Data acquisition method and device, equipment, medium and product

By generating XML files, the problem of low data acquisition efficiency and low accuracy in the existing technology is solved, and more efficient and accurate data filling and acquisition is achieved.

CN119539729APending Publication Date: 2025-02-28CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411611231.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the prior art, the data obtained by the regulatory indicators that need to be collected regularly in the regulatory business is inefficient and the data accuracy is not high. This is mainly because the form format set in advance in the target equipment is single, which is inconvenient for users to fill in, which can easily lead to data filling incorrectly.

Method used

By generating XML files, the indicators required by the business are collected together at levels, the XML business template is generated, and the XML business template is sent to the target device, so that users can fill in the indicator data.

Benefits of technology

It improves the accuracy of data and the efficiency of data acquisition, facilitates users to fill in indicator data, and reduces the possibility of data filling incorrectly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119539729A_ABST
    Figure CN119539729A_ABST
Patent Text Reader

Abstract

The invention discloses a data acquisition method and device, equipment, a medium and a product, and relates to the technical field of data processing. The method comprises the following steps: acquiring a plurality of indexes corresponding to a target service identifier and a hierarchical relationship of the plurality of indexes; generating an index tree of a plurality of indexes according to the hierarchical relationship; correspondingly writing each index in the index tree into the initial XML file based on a set membership between the nodes to obtain an XML service template; sending an XML service template to the target equipment, so that the target equipment writes the index data into the XML service template to obtain an XML service data file under the condition that the target equipment receives first input of the index data corresponding to each index, and storing the XML service data file to a preset position; and when it is detected that the preset position comprises the XML business data file, reading index data corresponding to each index from the XML business data file. And the data accuracy and the data acquisition efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular, relates to a method, device, equipment, medium and product for acquiring data. Background Art

[0002] Regulatory business is not only the key to maintaining market order and fair competition, but also an important guarantee for preventing risks. In some regulatory businesses, it is necessary to regularly collect indicator data of regulatory indicators corresponding to the business.

[0003] In the prior art, the data related to the regulatory indicators are usually read from the target table when the target table sent by the target device is received. The target table is obtained by the target device receiving the editing input of the user to the pre-set table, and the editing input includes input such as adding, modifying and deleting. However, the pre-set table format in the target device is single, which is not convenient for users to fill in, and it is easy to fill in the data incorrectly, resulting in low efficiency of data acquisition, and the indicator data of the regulatory indicators finally obtained is also inaccurate. Summary of the invention

[0004] The embodiments of the present application provide a data acquisition method, apparatus, device, medium and product, which acquire indicator data by generating an XML file, hierarchically group the indicators required for the business, generate an XML business template, and send the XML business template to the target device, so as to facilitate users to fill in the indicator data and improve the accuracy of the data and the efficiency of data acquisition.

[0005] In a first aspect, an embodiment of the present application provides a method for acquiring data, including:

[0006] Obtain multiple indicators corresponding to the target business identifier and the hierarchical relationship between the multiple indicators;

[0007] Generate an indicator tree corresponding to multiple indicators according to the hierarchical relationship, the indicator tree includes nodes corresponding to the multiple indicators and parent-child relationships between the nodes;

[0008] Based on the parent-child relationship between nodes, each indicator in the indicator tree is written into the initial XML file to obtain an XML business template;

[0009] Sending an XML service template to a target device, so that when the target device receives a first input of indicator data corresponding to each indicator, the indicator data is written into the XML service template to obtain an XML service data file, and the XML service data file is saved to a preset location;

[0010] When it is detected that the preset location includes an XML service data file, acquiring the XML service data file;

[0011] Read the indicator data corresponding to each indicator from the XML business data file.

[0012] In a possible implementation, before acquiring the multiple indicators corresponding to the target service identifier and the hierarchical relationship between the multiple indicators, the method further includes:

[0013] receiving a second input of a target business identifier of the target business, a plurality of indicators in the target business, and a hierarchical relationship of the plurality of indicators;

[0014] The target business identifier, multiple indicators and the hierarchical relationship of the multiple indicators are saved in a database;

[0015] Get multiple indicators corresponding to the target business identifier and the hierarchical relationship between multiple indicators, including:

[0016] When the target business identifier is queried from the database, multiple indicators corresponding to the target business identifier and the hierarchical relationship between the multiple indicators are obtained.

[0017] In a possible implementation, receiving a target business identifier of a target business, a plurality of indicators in the target business, and a second input of a hierarchical relationship of the plurality of indicators includes:

[0018] receiving a third input of a target business identifier of the target business, a plurality of indicators in the target business, and a parent indicator of the plurality of indicators;

[0019] Based on the parent indicators of multiple indicators, a hierarchical relationship of multiple indicators is generated.

[0020] In a possible implementation, after reading the indicator data corresponding to each indicator from the XML business data file, the method further includes:

[0021] Save the XML business data file, and save each indicator and the indicator data corresponding to each indicator into the database.

[0022] In one possible implementation, after saving the XML business data file and saving each indicator and the indicator data corresponding to each indicator in a database, the method further includes:

[0023] Upon receiving a first query request, obtaining multiple indicators and indicator data corresponding to each indicator from a database, wherein the first query request includes a target business identifier;

[0024] According to the hierarchical relationship, multiple indicators and the indicator data corresponding to each indicator are displayed.

[0025] In one possible implementation, after saving the XML business data file and saving each indicator and the indicator data corresponding to each indicator in a database, the method further includes:

[0026] When a second query request is received, the XML service data file is displayed, and the second query request includes a target service identifier.

[0027] In a possible implementation, sending an XML service template to a target device includes:

[0028] Generate page information corresponding to the XML business template, which includes multiple indicators;

[0029] An XML business template and page information are sent to the target device so that the target device displays a page corresponding to the page information. When the page is used and a fourth input of indicator data corresponding to each indicator in the page is received, the indicator data is written into the XML business template to obtain an XML business data file.

[0030] In a second aspect, an embodiment of the present application provides a data acquisition device, including:

[0031] An acquisition module, used to acquire multiple indicators corresponding to a target business identifier and a hierarchical relationship between the multiple indicators;

[0032] A generation module, used to generate an indicator tree corresponding to multiple indicators according to a hierarchical relationship, wherein the indicator tree includes nodes corresponding to the multiple indicators and parent-child relationships between the nodes;

[0033] A writing module is used to write each indicator in the indicator tree into the initial XML file based on the parent-child relationship between nodes to obtain an XML business template;

[0034] A sending module, used to send an XML business template to a target device, so that when the target device receives a first input of indicator data corresponding to each indicator, the indicator data is written into the XML business template to obtain an XML business data file, and the XML business data file is saved to a preset location;

[0035] The acquisition module is further used to acquire the XML business data file when it is detected that the preset location includes the XML business data file;

[0036] The reading module is used to read the indicator data corresponding to each indicator from the XML business data file.

[0037] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising:

[0038] a processor and a memory storing computer program instructions;

[0039] The method for acquiring data of any one of the above items is implemented when the processor executes computer program instructions.

[0040] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, any of the above-mentioned methods for acquiring data is implemented.

[0041] In a fifth aspect, an embodiment of the present application provides a computer program product, characterized in that when the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute any of the above-mentioned methods for acquiring data.

[0042] The data acquisition method, device, equipment, medium and product of the embodiment of the present application include: acquiring multiple indicators corresponding to the target business identifier and the hierarchical relationship of the multiple indicators; generating an indicator tree corresponding to the multiple indicators according to the hierarchical relationship, the indicator tree including nodes corresponding to the multiple indicators and the parent-child relationship between the nodes; based on the parent-child relationship between the nodes, writing each indicator in the indicator tree into an initial XML file to obtain an XML business template; sending the XML business template to the target device, so that the target device writes the indicator data into the XML business template when receiving the first input of the indicator data corresponding to each indicator, obtains the XML business data file, and saves the XML business data file to a preset location; when it is detected that the preset location includes the XML business data file, the XML business data file is obtained; and the indicator data corresponding to each indicator is read from the XML business data file. In this way, the indicator data is obtained by generating an XML file, the indicators required by the business are hierarchically gathered together, the XML business template is generated, and the XML business template is sent to the target device, which is convenient for users to fill in the indicator data, and improves the accuracy of the data and the efficiency of data acquisition. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0044] Figure 1 It is a flowchart of a method for acquiring data provided by an embodiment of the present application;

[0045] Figure 2 is a flowchart of a method for acquiring data provided by another embodiment of the present application;

[0046] Figure 3 is a flowchart of a method for acquiring data provided by yet another embodiment of the present application;

[0047] Figure 4 is a flowchart of a method for acquiring data provided in yet another embodiment of the present application;

[0048] Figure 5 is a flowchart of a method for acquiring data provided in yet another embodiment of the present application;

[0049] Figure 6 is a schematic diagram of the structure of a data acquisition device provided in yet another embodiment of the present application;

[0050] Figure 7 It is a structural diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0051] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0052] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0053] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.

[0054] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0055] Regulatory business is not only the key to maintaining market order and fair competition, but also an important guarantee for preventing risks. In some regulatory businesses, it is necessary to regularly collect indicator data of regulatory indicators corresponding to the business.

[0056] In the prior art, the data related to the regulatory indicators are usually read from the target table when the target table sent by the target device is received. The target table is obtained by the target device receiving the editing input of the user to the pre-set table, and the editing input includes input such as adding, modifying and deleting. However, the pre-set table format in the target device is single, which is not convenient for users to fill in, and it is easy to fill in the data incorrectly, resulting in low efficiency of data acquisition, and the indicator data of the regulatory indicators finally obtained is also inaccurate.

[0057] In order to solve the problems of the prior art, the embodiments of the present application provide a method, device, equipment, medium and product for obtaining data. The method for obtaining data provided by the embodiments of the present application is applied to the data collection end, obtains indicator data by generating an XML file, collects the indicators required for the business together by level, generates an XML business template, and sends the XML business template to the target device, so as to facilitate users to fill in the indicator data, thereby improving the accuracy of the data and the efficiency of data acquisition.

[0058] Among them, XML (eXtensible Markup Language) is a markup language used to describe data. XML is a markup language with a hierarchical structure, including multiple layers of nesting. XML is a standard universal markup language with the advantages of good scalability, separation of content and form, strict grammatical requirements, and good value preservation.

[0059] The following first introduces the data acquisition method provided in the embodiment of the present application. Figure 1 As shown, the data acquisition method provided in the embodiment of the present application includes the following steps.

[0060] S110: Acquire multiple indicators corresponding to the target business identifier and the hierarchical relationship between the multiple indicators.

[0061] Here, the target business identifier and the indicator are set in advance. The target business identifier includes the business identifier of the regulatory business. The indicator includes the regulatory indicator. The hierarchical relationship of multiple indicators is the superior-subordinate relationship of multiple indicators.

[0062] In some embodiments, the multiple indicators and the hierarchical relationship between the multiple indicators may be input by a user or obtained from a database.

[0063] In some embodiments, an indicator may refer to an indicator name, an indicator number, or an indicator ID. For example, an indicator name may include, but is not limited to, business volume, resource change volume, user name, and account number, etc., and a hierarchical relationship includes a user name as the upper level of business volume. In addition to obtaining an indicator, the value type of the indicator data corresponding to the indicator may also be obtained for use in standardizing the type.

[0064] S120 . Generate an indicator tree corresponding to the multiple indicators according to the hierarchical relationship. The indicator tree includes nodes corresponding to the multiple indicators and parent-child relationships between the nodes.

[0065] Here, the indicator tree is a tree-shaped data body.

[0066] In some embodiments, according to the hierarchical relationship of multiple indicators, an indicator tree corresponding to multiple indicators is generated in sequence through a recursive algorithm. Among them, the indicator tree includes nodes corresponding to multiple indicators and parent-child relationships between nodes. The relationship between nodes may include a parent-child relationship, and a node may be a child node, a grandchild node, or a parent node of another node. For example, the node corresponding to the user name is the parent node of the node corresponding to the business volume.

[0067] In some embodiments, the target service identifier is used as the root node of the indicator tree, that is, the top-level parent node.

[0068] S130 . Based on the parent-child relationship between nodes, each indicator in the indicator tree is written into the initial XML file to obtain an XML business template.

[0069] Here, the initial XML file is pre-set, which does not include indicators and indicator data.

[0070] In some embodiments, based on the parent-child relationship between nodes, a recursive algorithm is used to crawl the indicator on each node from the indicator tree in a top-to-bottom order and write it into an initial XML file.

[0071] It is understandable that the XML business template can retain the parent-child relationship between nodes. Each parent node of the indicator tree becomes the parent node of the XML business template, followed by child nodes, grandchild nodes, and so on, and the cycle recursively reaches the last leaf node of the indicator tree. All indicators in the indicator tree are written into the initial XML file, and the XML file is exported to obtain the XML business template.

[0072] S140. Send an XML business template to the target device, so that when the target device receives a first input of indicator data corresponding to each indicator, the indicator data is written into the XML business template to obtain an XML business data file, and the XML business data file is saved to a preset location.

[0073] Here, the target device serves as a reporting end for data, and the preset location includes a location in the target device.

[0074] In some embodiments, after the target device receives the XML business template, the XML business template is displayed, a first input of indicator data corresponding to each indicator in the XML business template is received from the user, and in response to the first input, the indicator data is written into the XML business template to obtain an XML business data file. Here, the indicator data satisfies the value type of the indicator data. If not, a prompt message is displayed to prompt the user to enter the indicator data of the correct value type.

[0075] In some embodiments, the preset location may also be a location in other devices or a location in a database or a location of a data collection terminal.

[0076] As an example, the target device includes a temporary folder, which includes an XML business template. The user enters the indicator data through the XML business template in the temporary folder, which is only saved but not reported. For example, if the organization has not determined whether the final indicator data needs to be changed, it can be saved first, and can be checked and modified multiple times to ensure the correctness of the data. After receiving the user's confirmation input, the final XML business data file is saved to the preset location.

[0077] It is understandable that the XML business template is a data carrier, which only contains the indicator hierarchy structure, that is, the XML parent-child node combination string (a string composed of each of the root node to the smallest leaf node), corresponding to a target business.

[0078] S150: When it is detected that the preset location includes an XML service data file, obtain the XML service data file.

[0079] In some embodiments, the preset location is a location in the target device. Real-time detection or periodic detection is performed to determine whether the preset location includes an XML service data file. If it is detected that the preset location includes an XML service data file, the XML service data file is obtained from the target device.

[0080] In some embodiments, the preset location is a location in the target device. The target device is used to detect in real time or periodically whether the preset location includes an XML service data file. When the preset location is detected to include an XML service data file using the target device, the XML service data file sent by the target device is received.

[0081] In some embodiments, the preset location may also be a location in other devices or a location in a database. Real-time detection or periodic detection is performed to determine whether the preset location includes an XML service data file. When it is detected that the preset location includes an XML service data file, the XML service data file is obtained from other devices or a database.

[0082] In some embodiments, the preset location may also be the location of the acquisition end. Real-time detection or periodic detection is performed to determine whether the preset location includes an XML service data file. If it is detected that the preset location includes an XML service data file, the XML service data file is acquired from the preset location.

[0083] S160. Read indicator data corresponding to each indicator from the XML business data file.

[0084] In some embodiments, the indicator data corresponding to each indicator is read from the XML business data file using a parsing algorithm corresponding to the target business identifier.

[0085] In this way, indicator data is obtained by generating XML files, the indicators required for the business are hierarchically grouped together, an XML business template is generated, and the XML business template is sent to the target device, making it convenient for users to fill in indicator data, thereby improving data accuracy and data acquisition efficiency.

[0086] Based on this, in some embodiments, Figure 2 As shown, before the above S110, the method may further include:

[0087] S101, receiving a target business identifier of a target business, a plurality of indicators in the target business, and a second input of a hierarchical relationship between the plurality of indicators;

[0088] S102, saving the target business identifier, multiple indicators, and the hierarchical relationship of the multiple indicators into a database;

[0089] The above S110 may specifically include:

[0090] S111. When a target business identifier is found from a database, a plurality of indicators corresponding to the target business identifier and a hierarchical relationship between the plurality of indicators are obtained.

[0091] Here, the target business identifier, multiple indicators, and the hierarchical relationship of multiple indicators are bound together and all correspond to the target business.

[0092] In some embodiments, the ElementUI front-end program page is used to receive a second input of a target business identifier of a target business, multiple indicators in the target business, and a hierarchical relationship among the multiple indicators. The target business identifier, multiple indicators, and a hierarchical relationship among the multiple indicators are saved in a database.

[0093] It should be noted that ElementUI is an open source user interface (UI) component library based on Vue.js.

[0094] In some embodiments, the target service identifier is queried from the database periodically or in real time. When the target service identifier is queried from the database, multiple indicators corresponding to the target service identifier and the hierarchical relationship of the multiple indicators are obtained.

[0095] In some embodiments, after the target business identifier, multiple indicators, and the hierarchical relationship of the multiple indicators are saved in the database, it is also possible to receive inputs for adding, modifying, or deleting the indicators corresponding to the target business identifier, and then adjust the indicators corresponding to the target business identifier saved in the database to suit the regulatory requirements of the target business.

[0096] In this way, the target business identifier of the target business, multiple indicators in the target business, and the hierarchical relationship between the multiple indicators are saved in the database in advance. When the target business identifier is queried from the database, the multiple indicators corresponding to the target business identifier and the hierarchical relationship between the multiple indicators are obtained, and the indicator data is obtained by generating an XML business template. There is no need to manually enter the indicator every time to obtain the indicator data, which improves the efficiency of data acquisition and saves labor costs.

[0097] Based on this, in some embodiments, the above S101 may specifically include:

[0098] receiving a third input of a target business identifier of the target business, a plurality of indicators in the target business, and a parent indicator of the plurality of indicators;

[0099] Based on the parent indicators of multiple indicators, a hierarchical relationship of multiple indicators is generated.

[0100] In some embodiments, the hierarchical relationship of indicators is set through the tree-shaped folding table function of ElementUI, such as the child indicator is mounted under the indicator of the parent indicator.

[0101] In this way, you only need to input the relationship between every two indicators to determine the hierarchical relationship between all indicators, so as to avoid missing the hierarchical relationship between indicators and improve the accuracy of indicator data.

[0102] Based on this, in some embodiments, Figure 3 As shown, after the above S160, the method may further include:

[0103] S170. Save the XML business data file, and save each indicator and the indicator data corresponding to each indicator into a database.

[0104] Here, the hierarchical relationship between multiple indicators must also be preserved.

[0105] In some embodiments, the XML business data file obtained from the target device, as well as each indicator and indicator data corresponding to each indicator read from the XML business data file are saved in a database, wherein the XML business data file is saved in a cache module.

[0106] In this way, the original data and the read data are saved at the same time, so that when there is an error in the data, they can be used for verification and comparison, thereby improving the accuracy of the data.

[0107] Based on this, in some embodiments, such as Figure 4 As shown, after the above S170, the method may further include:

[0108] S180: upon receiving a first query request, obtaining multiple indicators and indicator data corresponding to each indicator from a database, wherein the first query request includes a target service identifier;

[0109] S190. Display multiple indicators and indicator data corresponding to each indicator according to a hierarchical relationship.

[0110] Here, the first query request refers to a query request for data in the database. The hierarchical relationship is a hierarchical relationship of multiple indicators corresponding to the target business identifier.

[0111] In some embodiments, since the target business identifier, multiple indicators and the hierarchical relationship of multiple indicators are bound together and all correspond to the target business, when a first query request including the target business identifier is received, multiple indicators corresponding to the target business identifier and indicator data corresponding to each indicator can be obtained from the database.

[0112] In some embodiments, after the data is stored in the database, the data is recombined into tree-like data through a recursive algorithm, and the tree table function of ElementUI can be used in the front-end program page to display the data more intuitively.

[0113] In this way, when the first query request is received, the data in the database can be displayed to the user more intuitively, which is convenient for the user to analyze and verify, thereby improving the user experience.

[0114] Based on this, in some embodiments, such as Figure 5 As shown, after the above S170, the method may further include:

[0115] S210: When a second query request is received, display the XML service data file, where the second query request includes a target service identifier.

[0116] Here, the second query request refers to a query request for data in the cache module.

[0117] In some embodiments, since the root node of the indicator tree is the target business identifier, the root node of the XML business data file is also the target business identifier. When a second query request including the target business identifier is received, the XML business data file including the target business identifier is displayed, or data in the XML business data file including the target business identifier is displayed.

[0118] In this way, when the second query request is received, the original data is displayed to facilitate user analysis and verification to prevent data errors and ensure the accuracy of the data in the database.

[0119] Based on this, in some embodiments, the above S140 may specifically include:

[0120] Generate page information corresponding to the XML business template, which includes multiple indicators;

[0121] An XML business template and page information are sent to the target device so that the target device displays a page corresponding to the page information. When the page is used and a fourth input of indicator data corresponding to each indicator in the page is received, the indicator data is written into the XML business template to obtain an XML business data file.

[0122] In some embodiments, the page information may also include input box information for receiving indicator data input by a user.

[0123] In this way, users do not need to input indicator data corresponding to the XML business template, but can input indicator data through a set page. Compared with directly inputting indicator data from the XML business template, it is more convenient for users to fill in and further improves the accuracy of the data.

[0124] In the embodiment provided by the present application, the data collection end customizes different XML business templates and sends them to the data reporting end, and the user fills in the corresponding indicator data through the reporting end. The reporting end transmits the indicator data back to the data collection end in the form of an XML file. The data collection end captures the reporting file of the reporting end, reads the data, extracts, stores and displays the data, and ensures a certain degree of efficiency. The data security is also guaranteed by physically isolating the reporting end and the collection end. Specifically, the data collection end and the reporting end are physically isolated, and data transmission is carried out by periodically capturing XML files across servers.

[0125] The parent-child indicator relationship is defined through the tree table function of ElementUI. Through the advantages of XML file hierarchy, strong hierarchy readability and good scalability, and program algorithms matching the business, the hierarchical relationship of complex indicators can be obtained. Some indicator data can be set in a circular form, which can realize the variable length function of business supervision indicators and have a certain degree of efficiency.

[0126] XML business templates are used to fill in indicator data and transmit data, and data is obtained by parsing XML business data files. The original XML business data files are retained while data is entered into the database. When data errors occur, the original XML business data files can be searched for data comparison and the cause of the error, thereby improving data accuracy.

[0127] Based on the data acquisition method provided in the above embodiment, the present application also provides a specific implementation of a data acquisition device. Please refer to the following embodiment.

[0128] See also Figure 6 , the data acquisition device 300 provided in the embodiment of the present application includes:

[0129] An acquisition module 310 is used to acquire multiple indicators corresponding to the target business identifier and the hierarchical relationship between the multiple indicators;

[0130] A generating module 320, configured to generate an indicator tree corresponding to the multiple indicators according to a hierarchical relationship, wherein the indicator tree includes nodes corresponding to the multiple indicators and parent-child relationships between the nodes;

[0131] A writing module 330 is used to write each indicator in the indicator tree into the initial XML file based on the parent-child relationship between nodes to obtain an XML business template;

[0132] The sending module 340 is used to send the XML service template to the target device, so that when the target device receives the first input of the indicator data corresponding to each indicator, the indicator data is written into the XML service template to obtain the XML service data file, and the XML service data file is saved to a preset location;

[0133] The acquisition module 310 is further configured to acquire the XML service data file when it is detected that the preset location includes the XML service data file;

[0134] The reading module 350 is used to read the indicator data corresponding to each indicator from the XML business data file.

[0135] Based on this, in some embodiments, the apparatus 300 may further include:

[0136] A receiving module, used for receiving a second input of a target business identifier of a target business, a plurality of indicators in the target business, and a hierarchical relationship between the plurality of indicators before acquiring the plurality of indicators corresponding to the target business identifier and the hierarchical relationship between the plurality of indicators;

[0137] A saving module, used to save the target business identifier, multiple indicators and the hierarchical relationship of the multiple indicators into a database;

[0138] The acquisition module 310 may be specifically used for:

[0139] When the target business identifier is queried from the database, multiple indicators corresponding to the target business identifier and the hierarchical relationship between the multiple indicators are obtained.

[0140] Based on this, in some embodiments, the receiving module can be specifically used for:

[0141] receiving a third input of a target business identifier of the target business, a plurality of indicators in the target business, and a parent indicator of the plurality of indicators;

[0142] Based on the parent indicators of multiple indicators, a hierarchical relationship of multiple indicators is generated.

[0143] Based on this, in some embodiments, the apparatus 300 may further include:

[0144] The saving module is used to save the XML business data file after reading the indicator data corresponding to each indicator from the XML business data file, and save each indicator and the indicator data corresponding to each indicator into the database.

[0145] Based on this, in some embodiments, the apparatus 300 may further include:

[0146] The acquisition module 310 is further configured to, after saving the XML business data file and saving each indicator and the indicator data corresponding to each indicator in the database, acquire multiple indicators and the indicator data corresponding to each indicator from the database upon receiving a first query request, wherein the first query request includes a target business identifier;

[0147] The display module is used to display multiple indicators and the indicator data corresponding to each indicator according to the hierarchical relationship.

[0148] Based on this, in some embodiments, the apparatus 300 may further include:

[0149] The display module is used to display the XML business data file after saving the XML business data file and saving each indicator and the indicator data corresponding to each indicator in the database, when receiving a second query request, the second query request includes a target business identifier.

[0150] Based on this, in some embodiments, the sending module 340 may be specifically used for:

[0151] Generate page information corresponding to the XML business template, which includes multiple indicators;

[0152] An XML business template and page information are sent to the target device so that the target device displays a page corresponding to the page information. When the page is used and a fourth input of indicator data corresponding to each indicator in the page is received, the indicator data is written into the XML business template to obtain an XML business data file.

[0153] The various modules of the data acquisition device provided in the embodiment of the present application can realize the functions of the various steps of the data acquisition method provided above and achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.

[0154] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.

[0155] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0156] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.

[0157] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0158] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an integrated gateway disaster recovery device. In a specific embodiment, memory 402 is a non-volatile solid-state memory.

[0159] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0160] The processor 401 implements any one of the data acquisition methods in the above embodiments by reading and executing computer program instructions stored in the memory 402 .

[0161] In one example, the electronic device may further include a communication interface 403 and a bus 410. Figure 7 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.

[0162] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0163] The bus 410 includes hardware, software or both, coupling the components of the electronic device to each other. For example, but not limitation, the bus may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, a front side bus (Front Side Bus, FSB), a hypertransport (Hyper Transport, HT) interconnection, an industry standard architecture (Industry Standard Architecture, ISA) bus, an infinite bandwidth interconnection, a low pin count (Linear Predictive Coding, LPC) bus, a memory bus, a micro channel architecture (MicroChannel Architecture, MCA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, a PCI-Express (Peripheral Component Interconnect-X, PCI-X) bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) bus, a video electronics standard association local (VESA Local Bus, VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 410 may include one or more buses. Although the embodiments of the present application describe and illustrate a specific bus, the present application considers any suitable bus or interconnection. The electronic device can execute the data acquisition method in the embodiments of the present invention, thereby realizing the above-mentioned data acquisition method.

[0164] In addition, in combination with the data acquisition method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data acquisition methods in the above embodiment is implemented.

[0165] The present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes each process of implementing any one of the above-mentioned data acquisition method embodiments.

[0166] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0167] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0168] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0169] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0170] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for acquiring data, characterized in that: include: Acquire multiple indicators corresponding to the target business identifier and the hierarchical relationship of the multiple indicators; Generate an indicator tree corresponding to the multiple indicators according to the hierarchical relationship, the indicator tree including nodes corresponding to the multiple indicators and parent-child relationships between the nodes; Based on the parent-child relationship between the nodes, each indicator in the indicator tree is written into the initial XML file to obtain an XML business template; Sending the XML service template to the target device, so that when the target device receives a first input of the indicator data corresponding to each of the indicators, the indicator data is written into the XML service template to obtain an XML service data file, and the XML service data file is saved to a preset location; In the case where it is detected that the preset location includes the XML service data file, acquiring the XML service data file; The indicator data corresponding to each of the indicators is read from the XML business data file.

2. The method for acquiring data according to claim 1, characterized in that: Before acquiring the multiple indicators corresponding to the target service identifier and the hierarchical relationship between the multiple indicators, the method further includes: Receiving a second input of the target business identifier of the target business, the multiple indicators in the target business, and the hierarchical relationship of the multiple indicators; Saving the target business identifier, the multiple indicators, and the hierarchical relationship of the multiple indicators in a database; The acquiring of multiple indicators corresponding to the target business identifier and the hierarchical relationship of the multiple indicators includes: When the target service identifier is found from the database, a plurality of indicators corresponding to the target service identifier and a hierarchical relationship between the plurality of indicators are obtained.

3. The method for acquiring data according to claim 2, characterized in that: The receiving of the target service identifier of the target service, the multiple indicators in the target service, and the second input of the hierarchical relationship of the multiple indicators includes: Receiving a third input of the target business identifier of the target business, the multiple indicators in the target business, and the parent indicators of the multiple indicators; Based on the parent indicators of the multiple indicators, a hierarchical relationship of the multiple indicators is generated.

4. The method for acquiring data according to claim 1, characterized in that: After reading the indicator data corresponding to each of the indicators from the XML business data file, the method further includes: The XML business data file is saved, and each of the indicators and the indicator data corresponding to each of the indicators are saved in a database.

5. The method for acquiring data according to claim 4, characterized in that: After saving the XML business data file and saving each of the indicators and the indicator data corresponding to each of the indicators in a database, the method further includes: Upon receiving a first query request, acquiring the multiple indicators and indicator data corresponding to each of the indicators from the database, wherein the first query request includes the target service identifier; According to the hierarchical relationship, the multiple indicators and the indicator data corresponding to each of the indicators are displayed.

6. The method for acquiring data according to claim 4, characterized in that: After saving the XML business data file and saving each of the indicators and the indicator data corresponding to each of the indicators in a database, the method further includes: In case of receiving a second query request, the XML service data file is displayed, wherein the second query request includes the target service identifier.

7. The method for acquiring data according to claim 1, characterized in that: The sending the XML service template to the target device includes: Generate page information corresponding to the XML business template, the page information including the multiple indicators; The XML business template and the page information are sent to the target device so that the target device displays the page corresponding to the page information. When the fourth input of indicator data corresponding to each indicator in the page is received using the page, the indicator data is written into the XML business template to obtain an XML business data file.

8. A data acquisition device, characterized in that: include: An acquisition module, used to acquire multiple indicators corresponding to the target business identifier and the hierarchical relationship of the multiple indicators; A generating module, configured to generate an indicator tree corresponding to the multiple indicators according to the hierarchical relationship, wherein the indicator tree includes nodes corresponding to the multiple indicators and parent-child relationships between the nodes; A writing module, used for writing each indicator in the indicator tree into an initial XML file based on the parent-child relationship between the nodes to obtain an XML business template; a sending module, configured to send the XML service template to a target device, so that when the target device receives a first input of indicator data corresponding to each indicator, the indicator data is written into the XML service template to obtain an XML service data file, and the XML service data file is saved to a preset location; The acquisition module is further configured to acquire the XML service data file when it is detected that the preset location includes the XML service data file; The reading module is used to read the indicator data corresponding to each indicator from the XML business data file.

9. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for acquiring data according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the method for acquiring data according to any one of claims 1 to 7 is implemented.

11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the data acquisition method as described in any one of claims 1 to 7.