[go: up one dir, main page]

CN111858596A - Data acquisition method, device, computer equipment and storage medium - Google Patents

Data acquisition method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN111858596A
CN111858596A CN202010709690.3A CN202010709690A CN111858596A CN 111858596 A CN111858596 A CN 111858596A CN 202010709690 A CN202010709690 A CN 202010709690A CN 111858596 A CN111858596 A CN 111858596A
Authority
CN
China
Prior art keywords
data
information
display information
query
date
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
CN202010709690.3A
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.)
Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid 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 Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202010709690.3A priority Critical patent/CN111858596A/en
Publication of CN111858596A publication Critical patent/CN111858596A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Marketing (AREA)
  • Public Health (AREA)
  • Water Supply & Treatment (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Computational Linguistics (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请涉及一种数据获取方法、装置、计算机设备和存储介质。所述方法包括:获取电网信息展示页面中第一展示信息的第一标识;根据第一标识查询预设的电网信息映射表,获取与第一展示信息对应的多个第二展示信息以及各个第二展示信息对应的数据查询接口;电网信息映射表记录有多个数据查询接口,每个数据查询接口对应有多个第二展示信息;获取目标展示信息的第二标识,根据第二标识从各第二展示信息对应的数据查询接口中确定出目标展示信息对应的数据查询接口;通过数据查询接口,获取目标展示信息的信息数据。采用本方法,使得每个电网信息展示页面均可调用该数据查询接口,无需再针对每个展示页面的展示信息分别编写对应的数据查询接口。

Figure 202010709690

The present application relates to a data acquisition method, apparatus, computer equipment and storage medium. The method includes: acquiring a first identifier of the first display information in the power grid information display page; querying a preset power grid information mapping table according to the first identifier, and acquiring a plurality of second display information corresponding to the first display information and each first display information. 2. The data query interface corresponding to the display information; the power grid information mapping table records multiple data query interfaces, and each data query interface corresponds to multiple second display information; obtain the second identifier of the target display information, according to the second identifier from each A data query interface corresponding to the target display information is determined in the data query interface corresponding to the second display information; information data of the target display information is obtained through the data query interface. By adopting the method, each power grid information display page can call the data query interface, and there is no need to separately write a corresponding data query interface for the display information of each display page.

Figure 202010709690

Description

数据获取方法、装置、计算机设备和存储介质Data acquisition method, device, computer equipment and storage medium

技术领域technical field

本申请涉及电网数据管控的技术领域,特别是涉及一种数据获取方法、装置、计算机设备和存储介质。The present application relates to the technical field of power grid data management and control, and in particular, to a data acquisition method, apparatus, computer equipment and storage medium.

背景技术Background technique

电力行业数据复杂,种类繁多,为满足对电网运营监控可视化的需求,越来越多的企业开始采用大屏建设的方式,对电力行业各类数据进行24小时的即时预警、监测分析,实现对企业、营销、各业务领域全方位的管控。大屏建设是由单套投影显示单元组合拼接而成的高亮度、高分辨率、色彩还原准确的电视墙,一般具有多个展示页面,每个展示页面可展示有不同的信息,而不同展示信息的展示需求不同,因此,每个展示页面需要调用的数据查询接口也不相同。The power industry data is complex and various. In order to meet the demand for visualization of power grid operation monitoring, more and more enterprises have begun to adopt the method of large-screen construction to conduct 24-hour real-time early warning, monitoring and analysis of various data in the power industry, so as to realize the monitoring and analysis of various types of data in the power industry. Comprehensive management and control of enterprise, marketing and various business fields. Large-screen construction is a high-brightness, high-resolution, and accurate color reproduction TV wall composed of a single set of projection display units. Generally, there are multiple display pages. Each display page can display different information, and different display pages. The display requirements of information are different, so each display page needs to call different data query interfaces.

传统的展示页面的数据调用方式是:根据每个展示页面中不同展示信息的展示需求,为每个展示页面分别编写对应的数据查询接口,每个展示页面可通过调用其对应的数据查询接口获取信息数据,进而展示所接收的信息数据。The data calling method of the traditional display page is: according to the display requirements of different display information in each display page, a corresponding data query interface is written for each display page, and each display page can be obtained by calling its corresponding data query interface. information data, and then display the received information data.

然而,目前的数据调用方法,需要为每个页面都编写一个或多个数据查询接口,极大地增加了系统开发的工作量,造成代码冗余。However, in the current data calling method, one or more data query interfaces need to be written for each page, which greatly increases the workload of system development and causes code redundancy.

发明内容SUMMARY OF THE INVENTION

基于此,有必要针对上述数据调用方法存在的增加了系统开发的工作量、造成代码冗余的技术问题,提供一种数据获取方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a data acquisition method, device, computer equipment and storage medium for the technical problems of increasing the workload of system development and causing code redundancy in the above data calling method.

一种数据获取方法,所述方法包括:A data acquisition method, the method comprising:

获取电网信息展示页面中第一展示信息的第一标识;Obtain the first identifier of the first display information on the power grid information display page;

根据所述第一标识查询预设的电网信息映射表,获取与所述第一展示信息对应的多个第二展示信息以及各个第二展示信息对应的数据查询接口;其中,所述电网信息映射表记录有多个数据查询接口,每个数据查询接口对应有多个第二展示信息;Query a preset grid information mapping table according to the first identifier, and obtain a plurality of second presentation information corresponding to the first presentation information and a data query interface corresponding to each second presentation information; wherein, the grid information mapping The table record has multiple data query interfaces, and each data query interface corresponds to multiple second display information;

获取目标展示信息的第二标识,根据所述第二标识从各所述第二展示信息对应的数据查询接口中确定出所述目标展示信息对应的数据查询接口;obtaining a second identifier of the target display information, and determining a data query interface corresponding to the target display information from the data query interfaces corresponding to each of the second display information according to the second identifier;

通过所述数据查询接口,获取所述目标展示信息的信息数据。Through the data query interface, the information data of the target display information is acquired.

在其中一个实施例中,在获取所述目标展示信息的信息数据之前,还包括:In one embodiment, before acquiring the information data of the target display information, the method further includes:

获取所述目标展示信息的数据查询参数和属性标识;Obtain the data query parameters and attribute identifiers of the target display information;

根据所述数据查询参数和所述属性标识,获取所述目标展示信息的信息数据。According to the data query parameter and the attribute identifier, the information data of the target display information is acquired.

在其中一个实施例中,所述数据查询参数包括查询日期;若所述数据查询接口为月度查询接口;In one embodiment, the data query parameter includes a query date; if the data query interface is a monthly query interface;

所述根据所述数据查询参数和所述属性标识,获取所述目标展示信息的信息数据,包括:The obtaining the information data of the target display information according to the data query parameter and the attribute identifier includes:

若所述目标展示信息的属性标识为月度展示信息,则获取所述查询日期内的信息数据,作为所述目标展示信息的信息数据。If the attribute identification of the target display information is monthly display information, the information data within the query date is acquired as the information data of the target display information.

在其中一个实施例中,所述根据所述数据查询参数和所述属性标识,获取所述目标展示信息的信息数据,还包括:In one embodiment, acquiring the information data of the target display information according to the data query parameter and the attribute identifier further includes:

若所述目标展示信息的属性标识为季度展示信息,则将所述查询日期与预设的多个季度日期进行匹配,当所述查询日期与任一所述季度日期匹配时,则获取与所述查询日期相匹配的季度日期对应的信息数据,作为所述目标展示信息的信息数据;If the attribute of the target display information is identified as quarterly display information, the query date is matched with a plurality of preset quarterly dates, and when the query date matches any of the quarterly dates, the query date is obtained with all the quarterly dates. The information data corresponding to the quarterly date that matches the query date, as the information data of the target display information;

当所述查询日期与各所述季度日期均不匹配时,则获取所述查询日期对应的前一季度日期对应的信息数据,作为所述目标展示信息的信息数据。When the query date does not match each of the quarterly dates, the information data corresponding to the previous quarterly date corresponding to the query date is acquired as the information data of the target display information.

在其中一个实施例中,所述根据所述数据查询参数和所述属性标识,获取所述目标展示信息的信息数据,还包括:In one embodiment, acquiring the information data of the target display information according to the data query parameter and the attribute identifier further includes:

若所述目标展示信息的属性标识为年度展示信息,则将所述查询日期与预设年度日期进行匹配,当所述查询日期与所述年度日期匹配时,则获取与所述年度日期对应的信息数据,作为所述目标展示信息的信息数据;If the attribute of the target display information is identified as annual display information, the query date is matched with a preset annual date, and when the query date matches the annual date, the data corresponding to the annual date is obtained. Information data, as the information data of the target display information;

当所述查询日期与所述年度日期不匹配时,则获取所述查询日期对应的前一年度日期对应的信息数据,作为所述目标展示信息的信息数据。When the query date does not match the annual date, the information data corresponding to the previous year date corresponding to the query date is acquired as the information data of the target display information.

在其中一个实施例中,在获取所述目标展示信息的信息数据之后,还包括:In one embodiment, after acquiring the information data of the target display information, the method further includes:

将所述信息数据导入预设的与所述数据查询接口对应的数据模板中,得到设定格式的信息数据;importing the information data into a preset data template corresponding to the data query interface to obtain information data in a set format;

通过所述数据查询接口,将所述设定格式的信息数据发送至前端,以供前端根据所述设定格式的信息数据对所述电网信息展示页面进行渲染。Through the data query interface, the information data in the set format is sent to the front end, so that the front end can render the power grid information display page according to the information data in the set format.

一种数据获取装置,所述装置包括:A data acquisition device, the device includes:

第一标识获取模块,用于获取电网信息展示页面中第一展示信息的第一标识;a first identification obtaining module, configured to obtain the first identification of the first display information in the power grid information display page;

展示信息获取模块,用于根据所述第一标识查询预设的电网信息映射表,获取与所述第一展示信息对应的多个第二展示信息以及各个第二展示信息对应的数据查询接口;所述电网信息映射表记录有多个数据查询接口,每个数据查询接口对应有多个第二展示信息;a display information acquisition module, configured to query a preset grid information mapping table according to the first identifier, and acquire a plurality of second display information corresponding to the first display information and a data query interface corresponding to each second display information; The grid information mapping table records a plurality of data query interfaces, and each data query interface corresponds to a plurality of second display information;

筛选模块,用于获取目标展示信息的第二标识,根据所述第二标识从各所述第二展示信息对应的数据查询接口中确定出所述目标展示信息对应的数据查询接口;a screening module, configured to obtain a second identifier of the target display information, and determine a data query interface corresponding to the target display information from the data query interfaces corresponding to each of the second display information according to the second identifier;

信息数据获取模块,用于通过所述数据查询接口,获取所述目标展示信息的信息数据。The information data acquisition module is configured to acquire the information data of the target display information through the data query interface.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

获取电网信息展示页面中第一展示信息的第一标识;Obtain the first identifier of the first display information on the power grid information display page;

根据所述第一标识查询预设的电网信息映射表,获取与所述第一展示信息对应的多个第二展示信息以及各个第二展示信息对应的数据查询接口;其中,所述电网信息映射表记录有多个数据查询接口,每个数据查询接口对应有多个第二展示信息;Query a preset grid information mapping table according to the first identifier, and obtain a plurality of second presentation information corresponding to the first presentation information and a data query interface corresponding to each second presentation information; wherein, the grid information mapping The table record has multiple data query interfaces, and each data query interface corresponds to multiple second display information;

获取目标展示信息的第二标识,根据所述第二标识从各所述第二展示信息对应的数据查询接口中确定出所述目标展示信息对应的数据查询接口;obtaining a second identifier of the target display information, and determining a data query interface corresponding to the target display information from the data query interfaces corresponding to each of the second display information according to the second identifier;

通过所述数据查询接口,获取所述目标展示信息的信息数据。Through the data query interface, the information data of the target display information is acquired.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

获取电网信息展示页面中第一展示信息的第一标识;Obtain the first identifier of the first display information on the power grid information display page;

根据所述第一标识查询预设的电网信息映射表,获取与所述第一展示信息对应的多个第二展示信息以及各个第二展示信息对应的数据查询接口;其中,所述电网信息映射表记录有多个数据查询接口,每个数据查询接口对应有多个第二展示信息;Query a preset grid information mapping table according to the first identifier, and obtain a plurality of second presentation information corresponding to the first presentation information and a data query interface corresponding to each second presentation information; wherein, the grid information mapping The table record has multiple data query interfaces, and each data query interface corresponds to multiple second display information;

获取目标展示信息的第二标识,根据所述第二标识从各所述第二展示信息对应的数据查询接口中确定出所述目标展示信息对应的数据查询接口;obtaining a second identifier of the target display information, and determining a data query interface corresponding to the target display information from the data query interfaces corresponding to each of the second display information according to the second identifier;

通过所述数据查询接口,获取所述目标展示信息的信息数据。Through the data query interface, the information data of the target display information is acquired.

上述数据获取方法、装置、计算机设备和存储介质,通过电网信息映射表构建第一展示信息与第二展示信息的对应关系,以及第二展示信息与数据查询接口的对应关系,使得在获取电网信息展示页面中第一展示信息的第一标识后,可根据第一标识获取与第一展示信息对应的多个第二展示信息,以及获取各个第二展示信息对应的数据查询接口。进一步,在获取目标展示信息的第二标识后,根据第二标识从各第二展示信息对应的数据查询接口中,确定出与目标展示信息对应的数据查询接口,最后通过数据查询接口,获取目标展示信息的信息数据,本方案采用构建目标展示信息与数据查询接口对应关系的方式,适用于任意电网信息展示页面,每个电网信息展示页面均可调用该数据查询接口,无需再针对每个展示页面的展示信息分别编写对应的数据查询接口,从而,减少了系统开发的工作量,解决了传统方法存在的开发量较大、代码冗余的技术问题。The above data acquisition method, device, computer equipment and storage medium, the corresponding relationship between the first display information and the second display information, and the corresponding relationship between the second display information and the data query interface are constructed through the grid information mapping table, so that the grid information is obtained when the grid information is obtained. After displaying the first identifier of the first display information on the page, a plurality of second display information corresponding to the first display information can be acquired according to the first identifier, and a data query interface corresponding to each second display information can be acquired. Further, after obtaining the second identifier of the target display information, determine the data query interface corresponding to the target display information from the data query interfaces corresponding to each second display information according to the second identifier, and finally obtain the target through the data query interface. The information data of the display information, this solution adopts the method of constructing the corresponding relationship between the target display information and the data query interface, which is suitable for any grid information display page. Each grid information display page can call the data query interface, and there is no need for each display. The corresponding data query interface is written for the display information of the page, thereby reducing the workload of system development and solving the technical problems of large development volume and redundant code existing in the traditional method.

附图说明Description of drawings

图1为一个实施例中数据获取方法的应用场景图;Fig. 1 is the application scene diagram of the data acquisition method in one embodiment;

图2为一个实施例中数据获取方法的流程示意图;2 is a schematic flowchart of a data acquisition method in one embodiment;

图3为一个实施例中目标展示信息的信息数据获取步骤的流程示意图;3 is a schematic flowchart of an information data acquisition step of target display information in one embodiment;

图4为一个应用实施例中数据获取方法的流程示意图;4 is a schematic flowchart of a data acquisition method in an application embodiment;

图5为一个实施例中指标管理体系的页面示意图;5 is a schematic page diagram of an indicator management system in one embodiment;

图6为一个实施例中数据获取装置的结构框图;6 is a structural block diagram of a data acquisition device in one embodiment;

图7为一个实施例中计算机设备的内部结构图。FIG. 7 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

本申请提供的数据获取方法,可以应用于如图1所示的应用环境中。其中,前端102与服务器104通过网络进行通信。其中,不同前端102的展示页面可显示不同的电网信息,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。在本申请提供的数据获取方法的应用场景中,服务器104获取任一前端102的电网信息展示页面中第一展示信息的第一标识;根据第一标识查询预设的电网信息映射表,获取与第一展示信息对应的多个第二展示信息以及各个第二展示信息对应的数据查询接口;电网信息映射表记录有多个数据查询接口,每个数据查询接口对应有多个目标展示信息;电网信息映射表记录有多个数据查询接口,每个数据查询接口对应有多个第二展示信息;获取目标展示信息的第二标识,根据第二标识从各第二展示信息对应的数据查询接口中确定出目标展示信息对应的数据查询接口;通过数据查询接口,获取目标展示信息的信息数据,最后通过数据查询接口将目标展示信息的信息数据,将目标展示信息的信息数据发送给前端102,以使前端102根据目标展示信息的信息数据对电网信息展示页面进行渲染。The data acquisition method provided in this application can be applied to the application environment shown in FIG. 1 . The front end 102 communicates with the server 104 through a network. The display pages of different front ends 102 can display different power grid information, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers. In the application scenario of the data acquisition method provided by the present application, the server 104 acquires the first identifier of the first displayed information in the power grid information display page of any front end 102; according to the first identifier, the preset power grid information mapping table is queried, and the A plurality of second display information corresponding to the first display information and a data query interface corresponding to each second display information; the grid information mapping table records a plurality of data query interfaces, and each data query interface corresponds to a plurality of target display information; The information mapping table records a plurality of data query interfaces, and each data query interface corresponds to a plurality of second display information; the second identifier of the target display information is obtained, and the second identifier is obtained from the data query interface corresponding to each second display information according to the second identifier. Determine the data query interface corresponding to the target display information; obtain the information data of the target display information through the data query interface, and finally send the information data of the target display information to the front end 102 through the data query interface to send the information data of the target display information to the front end 102 to The front end 102 is caused to render the power grid information display page according to the information data of the target display information.

在一个实施例中,如图2所示,提供了一种数据获取方法,以该方法应用于图1中的服务器104为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a data acquisition method is provided, which is described by taking the method applied to the server 104 in FIG. 1 as an example, including the following steps:

步骤S202,获取电网信息展示页面中第一展示信息的第一标识。Step S202, acquiring the first identifier of the first display information in the power grid information display page.

其中,第一展示信息可表示电力行业中各类业务场景对应的业务模块的信息,例如,第一展示信息可包括运营总览、企业概况、电网运行、审计、产业优化、依法治企、客服服务、可靠供电、安全管理和职能电网建设等业务模块的信息。The first display information may represent information of business modules corresponding to various business scenarios in the power industry. For example, the first display information may include operation overview, enterprise profile, power grid operation, auditing, industry optimization, corporate governance according to law, and customer service. , reliable power supply, safety management and functional power grid construction and other business modules.

其中,第一标识为表示第一展示信息唯一性的标识,可以为第一展示信息的编码、ID或名称。The first identifier is an identifier representing the uniqueness of the first display information, which may be a code, an ID or a name of the first display information.

具体实现中,在用户需要查询或更新任一前端102的展示页面中第一展示信息的信息数据时,可通过触发前端102生成针对第一展示信息的数据获取请求,并将数据获取请求发送至服务器104,同时,前端102还将第一展示信息的第一标识作为传入参数,与数据获取请求一起发送至服务器104,服务器104接收前端102发送的数据获取请求以及第一展示信息的第一标识。In specific implementation, when the user needs to query or update the information data of the first display information on the display page of any front end 102, the front end 102 can be triggered to generate a data acquisition request for the first display information, and the data acquisition request can be sent to The server 104, at the same time, the front end 102 also uses the first identifier of the first display information as an incoming parameter, and sends it to the server 104 together with the data acquisition request, and the server 104 receives the data acquisition request sent by the front end 102 and the first display information. logo.

步骤S204,根据第一标识查询预设的电网信息映射表,获取与第一展示信息对应的多个第二展示信息以及各个第二展示信息对应的数据查询接口;电网信息映射表记录有多个数据查询接口,每个数据查询接口对应有多个第二展示信息。Step S204, query the preset grid information mapping table according to the first identifier, and obtain a plurality of second presentation information corresponding to the first presentation information and a data query interface corresponding to each second presentation information; the grid information mapping table records multiple Data query interfaces, each of which corresponds to a plurality of second display information.

其中,电网信息映射表记录有第一展示信息与第二展示信息的对应关系以及第二展示信息与数据查询接口的对应关系。The power grid information mapping table records the correspondence between the first display information and the second display information and the correspondence between the second display information and the data query interface.

其中,第二展示信息可表示第一展示信息对应的各类管控指标的信息,例如,若第一展示信息为电网运行业务模块,第二展示信息可以为统调负荷和西电负荷等指标的信息,若第一展示信息为可靠供电业务模块,第二展示信息可以为综合电压合格率和城镇居民综合电压合格率等指标的信息。Wherein, the second display information may represent information of various management and control indicators corresponding to the first display information. For example, if the first display information is a power grid operation business module, the second display information may be indicators such as the unified load and the western power load. information, if the first display information is the reliable power supply service module, the second display information may be information on indicators such as the comprehensive voltage qualification rate and the comprehensive voltage qualification rate of urban residents.

其中,数据查询接口表示前端102与服务器104进行数据传输时向数据连接线输出数据的接口,包括实时查询接口、日度查询接口和月度查询接口。The data query interface refers to an interface for outputting data to the data connection line when the front end 102 and the server 104 transmit data, including a real-time query interface, a daily query interface, and a monthly query interface.

具体实现中,服务器104在获取第一展示信息的第一标识后,便可根据第一展示信息的第一标识查询预设的电网信息映射表,根据电网信息映射表中记录的第一展示信息与第二展示信息的对应关系以及第二展示信息与数据查询接口的对应关系,得到与第一展示信息对应的多个第二展示信息以及各个第二展示信息对应的数据查询接口。In a specific implementation, after acquiring the first identifier of the first display information, the server 104 may query the preset grid information mapping table according to the first identifier of the first display information, and then according to the first display information recorded in the grid information mapping table The corresponding relationship with the second display information and the corresponding relationship between the second display information and the data query interface, a plurality of second display information corresponding to the first display information and a data query interface corresponding to each second display information are obtained.

步骤S206,获取目标展示信息的第二标识,根据第二标识从各第二展示信息对应的数据查询接口中确定出目标展示信息对应的数据查询接口。Step S206: Acquire a second identifier of the target display information, and determine a data query interface corresponding to the target display information from the data query interfaces corresponding to each second display information according to the second identifier.

其中,第二标识为表示目标展示信息唯一性的标识,例如,第二标识可以为目标展示信息的信息名称、信息编码或信息ID等。The second identifier is an identifier representing the uniqueness of the target display information, for example, the second identifier may be the information name, information code, or information ID of the target display information.

具体实现中,传入参数还包括目标展示信息的第二标识,服务器104在获取前端102传入的目标展示信息的第二标识后,可根据第二标识从各个第二展示信息对应的数据查询接口中确定出与目标展示信息对应的数据查询接口。In a specific implementation, the incoming parameters also include the second identifier of the target display information. After acquiring the second identifier of the target display information passed in by the front end 102, the server 104 can query the data corresponding to each second display information according to the second identifier. A data query interface corresponding to the target display information is determined in the interface.

步骤S208,通过数据查询接口,获取目标展示信息的信息数据。In step S208, the information data of the target display information is acquired through the data query interface.

具体实现中,服务器104在获取目标展示信息的数据查询接口后,便可通过数据查询接口从与目标展示信息对应的数据库中获取目标展示信息的信息数据。并通过数据查询接口将获取的目标展示信息的信息数据发送至前端102,以使前端102根据目标展示信息的信息数据对电网信息展示页面进行渲染。In a specific implementation, after obtaining the data query interface of the target display information, the server 104 can obtain the information data of the target display information from the database corresponding to the target display information through the data query interface. The acquired information data of the target display information is sent to the front end 102 through the data query interface, so that the front end 102 renders the power grid information display page according to the information data of the target display information.

上述数据获取方法中,通过电网信息映射表构建第一展示信息与第二展示信息的对应关系,以及第二展示信息与数据查询接口的对应关系,使得在获取电网信息展示页面中第一展示信息的第一标识后,可根据第一标识获取与第一展示信息对应的多个第二展示信息,以及获取各个第二展示信息对应的数据查询接口。进一步,在获取目标展示信息的第二标识后,根据第二标识从各第二展示信息对应的数据查询接口中,确定出与目标展示信息对应的数据查询接口,最后通过数据查询接口,获取目标展示信息的信息数据,采用构建目标展示信息与数据查询接口对应关系的方式,使得本方案适用于任意电网信息展示页面,每个电网信息展示页面均可调用该数据查询接口,实现了数据查询接口的灵活调用,无需再针对每个展示页面的展示信息分别编写对应的数据查询接口,减少系统开发的工作量,并且解决了单个页面调用多个数据查询接口查询数据,影响系统和数据库性能,导致系统数据更新卡顿,无法及时展示数据的情况。此外,采用该方法在后期对接口维护的时候也无需对所有接口逐个调整,克服了后续系统维护工作量较大的问题。In the above data acquisition method, the corresponding relationship between the first display information and the second display information, and the corresponding relationship between the second display information and the data query interface are constructed through the grid information mapping table, so that the first display information is obtained in the grid information display page. After the first identifier is obtained, a plurality of second display information corresponding to the first display information can be acquired according to the first identifier, and a data query interface corresponding to each second display information can be acquired. Further, after obtaining the second identifier of the target display information, determine the data query interface corresponding to the target display information from the data query interfaces corresponding to each second display information according to the second identifier, and finally obtain the target through the data query interface. The information data of the displayed information adopts the method of constructing the corresponding relationship between the target display information and the data query interface, so that this solution is suitable for any grid information display page. Each grid information display page can call the data query interface, realizing the data query interface. The flexible invocation of the system eliminates the need to write a corresponding data query interface for the display information of each display page, reduces the workload of system development, and solves the problem that a single page calls multiple data query interfaces to query data, which affects the performance of the system and database, resulting in The system data update is stuck, and the data cannot be displayed in time. In addition, adopting this method does not need to adjust all the interfaces one by one when maintaining the interfaces in the later stage, which overcomes the problem that the subsequent system maintenance workload is relatively large.

在一个实施例中,如图3所示,在上述步骤S208之前,还包括:In one embodiment, as shown in FIG. 3, before the above step S208, the method further includes:

步骤S302,获取目标展示信息的数据查询参数和属性标识;Step S302, obtaining data query parameters and attribute identifiers of the target display information;

步骤S304,根据数据查询参数和属性标识,获取目标展示信息的信息数据。Step S304: Acquire information data of the target display information according to the data query parameter and the attribute identifier.

其中,数据查询参数表示查询的信息数据筛选条件参数,例如,查询日期。Wherein, the data query parameter represents the information data filter condition parameter of the query, for example, the query date.

其中,属性标识表示目标展示信息在电网信息展示页面中的更新标识,可预先根据各个第二展示信息的展示需求确定,并可建立属性标识与各个第二展示信息的对应关系。其中,属性标识可以为实时展示信息(例如,每小时或每分钟等)、日度展示信息、月度展示信息、季度展示信息和年度展示信息。例如,目标展示信息为统调负荷和西电负荷时,统调负荷和西电负荷需要每日更新,则可将目标展示信息标识为日度展示信息。The attribute identifier represents the update identifier of the target display information on the grid information display page, which can be determined in advance according to the display requirements of each second display information, and a corresponding relationship between the attribute identifier and each second display information can be established. The attribute identifier may be real-time display information (for example, hourly or every minute, etc.), daily display information, monthly display information, quarterly display information, and annual display information. For example, when the target display information is the unified regulation load and the western power load, and the unified regulation load and the western power load need to be updated daily, the target display information can be identified as the daily display information.

具体实现中,传入参数还包括目标展示信息的数据查询参数,服务器104可先根据目标展示信息的第二标识确定与目标展示信息对应的数据库以及目标展示信息的属性标识,进一步根据目标展示信息的数据查询参数和属性标识,从目标展示信息对应的数据库中获取目标展示信息的信息数据。In a specific implementation, the incoming parameters also include data query parameters of the target display information. The server 104 may first determine the database corresponding to the target display information and the attribute identifier of the target display information according to the second identifier of the target display information, and further according to the target display information The information data of the target display information is obtained from the database corresponding to the target display information.

本实施例中,通过获取目标展示信息的数据查询参数和属性标识,从目标展示信息对应的数据库中获取目标展示信息的信息数据,以便于进一步用目标展示信息的信息数据渲染电网信息页面,使维护人员可实时监控电网运行情况。In this embodiment, by obtaining the data query parameters and attribute identifiers of the target display information, the information data of the target display information is obtained from the database corresponding to the target display information, so as to further use the information data of the target display information to render the power grid information page, so that Maintenance personnel can monitor the operation of the grid in real time.

进一步地,在一个实施例中,上述数据查询参数包括查询日期;上述步骤S304还包括:Further, in one embodiment, the above-mentioned data query parameters include a query date; the above-mentioned step S304 further includes:

当目标展示信息对应的数据查询接口为实时查询接口时,则目标展示信息对应的属性标识为实时展示信息,获取目标展示信息在查询日期之前的所有信息数据,作为目标展示信息的信息数据。When the data query interface corresponding to the target display information is a real-time query interface, the attribute corresponding to the target display information is identified as real-time display information, and all information data of the target display information before the query date is obtained as the information data of the target display information.

当目标展示信息对应的数据查询接口为日度查询接口时,则目标展示信息对应的属性标识为日度展示信息,获取目标展示信息在查询日期的最新记录的信息数据,作为目标展示信息的信息数据。When the data query interface corresponding to the target display information is a daily query interface, the attribute corresponding to the target display information is identified as daily display information, and the latest recorded information data of the target display information on the query date is obtained as the information of the target display information data.

当目标展示信息对应的数据查询接口为月度查询接口时,目标展示信息对应的属性标识可以为月度展示信息、季度展示信息和年度展示信息,则上述步骤S304还包括:When the data query interface corresponding to the target display information is a monthly query interface, the attribute identifiers corresponding to the target display information may be monthly display information, quarterly display information and annual display information, and the above step S304 further includes:

若目标展示信息的属性标识为月度展示信息,则获取查询日期对应的信息数据,作为目标展示信息的信息数据。If the attribute identifier of the target display information is monthly display information, the information data corresponding to the query date is obtained as the information data of the target display information.

具体地,月度展示信息、季度展示信息和年度展示信息均调用月度查询接口获取信息数据,其中,月度展示信息获取当月的信息数据,例如,查询日期为2019年3月,则获取2019年3月的信息数据。Specifically, the monthly display information, quarterly display information and annual display information all call the monthly query interface to obtain information data, wherein the monthly display information obtains the information data of the current month, for example, if the query date is March 2019, then obtain the information data of March 2019 information data.

在一个实施例中,若目标展示信息的属性标识为季度展示信息,则将查询日期与预设的多个季度日期进行匹配,当查询日期与任一季度日期匹配时,则获取与查询日期相匹配的季度日期对应的信息数据,作为目标展示信息的信息数据;当查询日期与各个季度日期均不匹配时,则获取查询日期对应的前一季度日期对应的信息数据,作为目标展示信息的信息数据。In one embodiment, if the attribute of the target display information is identified as quarterly display information, the query date is matched with a plurality of preset quarterly dates, and when the query date matches any quarterly date, the query date is obtained. The information data corresponding to the matching quarterly date is used as the information data of the target display information; when the query date does not match the dates of each quarter, the information data corresponding to the previous quarter date corresponding to the query date is obtained as the information of the target display information data.

其中,季度日期可以为每季度的最后一个月份,例如,季度日期可以为某一年3月、某一年6月、某一年9月和某一年12月。其中,季度日期为某一年3月时,获取该年份第一季度(即1月至3月)内的信息数据;季度日期为某一年6月时,获取该年份第二季度(即4月至6月)内的信息数据;季度日期为某一年9月时,获取该年份第三季度(即7月至9月)内的信息数据;季度日期为某一年12月时,获取该年份第四季度(即10月至12月)内的信息数据。The quarter date may be the last month of each quarter, for example, the quarter date may be March of a certain year, June of a certain year, September of a certain year, and December of a certain year. Among them, when the quarterly date is March of a certain year, obtain the information data in the first quarter of the year (ie, January to March); when the quarterly date is June of a certain year, obtain the second quarter of the year (ie, 4 information data within the month to June); when the quarter date is September of a certain year, obtain the information data in the third quarter of the year (ie, July to September); when the quarter date is December of a certain year, obtain the information data Information data for the fourth quarter of the year (i.e. October to December).

具体地,若目标展示信息为季度展示信息,则将查询日期与各个季度日期进行匹配,根据匹配结果获取对应时间的信息数据,当查询日期与任一季度日期相匹配时,则获取与该查询日期相匹配的季度日期对应的信息数据,作为目标展示信息的信息数据,例如,若查询日期为2019年3月,与2019年第一季度的季度日期相匹配,则获取2019年1月至3月的信息数据,作为目标展示信息的信息数据。反之,当查询日期与各个季度日期均不匹配时,则可先确定查询日期对应的当前季度日期,进而确定当前季度日期的前一季度日期,最后获取前一季度日期对应的信息数据,作为目标展示信息的信息数据,例如,若查询日期为2019年7月,与各个季度日期均不匹配,则先确定查询日期对应的当前季度日期为2019年9月,进一步确定查询日期对应的前一季度日期为2019年6月,则获取季度日期为2019年6月对应的信息数据,即获取目标展示信息在2019年4月至6月内的信息数据,作为目标展示信息的信息数据。Specifically, if the target display information is quarterly display information, the query date is matched with each quarterly date, and the information data of the corresponding time is obtained according to the matching result. When the query date matches any quarterly date, the query date is obtained. The information data corresponding to the quarterly date that matches the date is used as the information data of the target display information. For example, if the query date is March 2019 and matches the quarterly date of the first quarter of 2019, the period from January to March 2019 will be obtained. The information data of the month, as the information data of the target display information. Conversely, when the query date does not match the dates of each quarter, the current quarter date corresponding to the query date can be determined first, then the date of the previous quarter of the current quarter date can be determined, and finally the information data corresponding to the date of the previous quarter can be obtained as the target. The information data of the displayed information. For example, if the query date is July 2019 and does not match the dates of each quarter, first determine the date of the current quarter corresponding to the query date is September 2019, and further determine the previous quarter corresponding to the query date. If the date is June 2019, the information data corresponding to the quarterly date of June 2019 is obtained, that is, the information data of the target display information from April to June 2019 is obtained as the information data of the target display information.

在一个实施例中,若目标展示信息的属性标识为年度展示信息,则将查询日期与预设年度日期进行匹配,当查询日期与年度日期匹配时,则获取与年度日期对应的信息数据,作为目标展示信息的信息数据;当查询日期与年度日期不匹配时,则获取查询日期对应的前一年度日期对应的信息数据,作为目标展示信息的信息数据。In one embodiment, if the attribute of the target display information is identified as annual display information, the query date is matched with the preset annual date, and when the query date matches the annual date, the information data corresponding to the annual date is obtained as The information data of the target display information; when the query date does not match the annual date, the information data corresponding to the previous year date corresponding to the query date is obtained as the information data of the target display information.

其中,年度日期可以为每年度的最后一个月份,即某一年12月。当查询日期为年度日期时,则获取查询日期所在年份1月至12月内的信息数据。Among them, the annual date can be the last month of each year, that is, December of a certain year. When the query date is an annual date, the information data from January to December of the year in which the query date is located is obtained.

具体地,若目标展示信息为年度展示信息,则将查询日期与年度日期进行匹配,根据匹配结果获取对应时间的信息数据,即当查询日期与年度日期相匹配时,则获取与该年度日期对应的信息数据,例如,若查询日期为2019年12月,与年度日期相匹配,则获取与2019年1月至12月的信息数据,作为目标展示信息的信息数据。反之,当查询日期与年度日期不匹配时,则获取查询日期所在年份的前一年度日期对应的信息数据,例如,若查询日期为2019年7月,与年度日期不匹配,则确定查询日期当前对应的年度日期为2019年12月,进一步确定前一年度日期为2018年12月,从而获取年度日期为2018年1月至12月内的信息数据,作为目标展示信息的信息数据。Specifically, if the target display information is annual display information, the query date is matched with the annual date, and the information data of the corresponding time is obtained according to the matching result, that is, when the query date matches the annual date, the corresponding date of the year is obtained. For example, if the query date is December 2019 and matches the annual date, the information data from January to December 2019 will be obtained as the information data of the target display information. Conversely, when the query date does not match the annual date, the information data corresponding to the date of the previous year of the year in which the query date is located is obtained. The corresponding annual date is December 2019, and the date of the previous year is further determined to be December 2018, so as to obtain the information data with the annual date from January to December 2018, as the information data of the target display information.

上述实施例中,通过对目标展示信息的各类属性标识与各类属性标识所需获取的信息数据之间对应关系的确定,便于在获取目标展示信息的属性标识后,可快速确定所需获取的信息数据,减少前端与服务器之间的交互时间。In the above embodiment, by determining the correspondence between the various attribute identifiers of the target display information and the information data to be acquired by the various attribute identifiers, it is convenient to quickly determine the required acquisition after acquiring the attribute identifiers of the target display information. information data, reducing the interaction time between the front end and the server.

在一个实施例中,在步骤S208之后,还包括:将信息数据导入预设的与数据查询接口对应的数据模板中,得到设定格式的信息数据;通过数据查询接口,将设定格式的信息数据发送至前端,以供前端根据设定格式的信息数据对电网信息展示页面进行渲染。In one embodiment, after step S208, the method further includes: importing the information data into a preset data template corresponding to the data query interface to obtain information data in a set format; The data is sent to the front end for the front end to render the grid information display page according to the information data in the set format.

具体实现中,每类数据查询接口均预先设定有对应的数据模板,服务器104在得到目标展示信息的信息数据后,可将目标展示信息的信息数据导入与目标展示信息对应的数据查询接口的数据模板中,生成如“key-value”格式的信息数据,例如,若目标展示信息为平均停电时间,对应的数据查询接口为实时查询接口和月度查询接口,则返回目标信息编码+类型形式的数据:KK02000Month-返回数据、KK02000Time-返回数据,最后通过目标展示信息对应的数据查询接口,将设定格式的信息数据返回至前端,以供前端根据设定格式的信息数据对电网信息展示页面进行渲染。也可以将设定格式的信息数据返回至一个数据块,供前端统一调用。In the specific implementation, each type of data query interface is preset with a corresponding data template. After obtaining the information data of the target display information, the server 104 can import the information data of the target display information into the data query interface corresponding to the target display information. In the data template, information data such as "key-value" format is generated. For example, if the target display information is the average power outage time, and the corresponding data query interface is the real-time query interface and the monthly query interface, the target information code + type format is returned. Data: KK02000Month-return data, KK02000Time-return data, and finally return the formatted information data to the front end through the data query interface corresponding to the target display information, so that the front end can perform the grid information display page according to the information data in the set format. render. It is also possible to return the formatted information data to a data block for the front-end to call uniformly.

本实施例中,通过为每类数据查询接口设置对应的数据模板,可设置统一的数据格式,以减少前端开发人员对返回的信息数据的格式进行处理的时间,提高开发效率,从而,克服不同数据查询接口返回数据格式不一致的情况下,增加前端工作量的技术问题。In this embodiment, by setting a corresponding data template for each type of data query interface, a unified data format can be set, so as to reduce the time for front-end developers to process the format of the returned information data, improve development efficiency, and thus overcome different When the data format returned by the data query interface is inconsistent, it is a technical problem that increases the workload of the front-end.

为了更清晰阐明本申请实施例提供的技术方案,以下将结合图4对该方案进行说明,图4为一个应用实例中数据获取方法的流程示意图,该方法的具体流程如下:In order to clarify the technical solution provided by the embodiments of the present application, the solution will be described below with reference to FIG. 4 , which is a schematic flowchart of a data acquisition method in an application example. The specific process of the method is as follows:

1、定制各业务场景页面的数据传送机制。由于不同展示页面对应的第二展示信息不同,第二展示信息的展示需求也不同,因此,根据系统业务的展示需求,在前端展示页面上定制不同业务场景的页面下各个指标(即第二展示信息)的数据传送机制,展示页面即可根据传送机制刷新所展示的指标数据。例如,在电网运行的业务场景下,统调负荷、西电负荷等实时指标,可设定每天或每15分钟调用统一数据分发功能,查询一次数据,每15分钟或每天刷新一次展示页面;在可靠供电业务场景下,综合电压合格率、城镇居民综合电压合格率等月度指标,则可设定每月某个时间调用一次统一数据分发功能,查询一次数据,每月刷新一次展示页面。1. Customize the data transmission mechanism of each business scenario page. Since the second display information corresponding to different display pages is different, the display requirements of the second display information are also different. Therefore, according to the display requirements of the system business, each indicator under the page of different business scenarios (that is, the second display page) is customized on the front-end display page. Information) data transmission mechanism, the display page can refresh the displayed indicator data according to the transmission mechanism. For example, in the business scenario of power grid operation, the unified data distribution function can be set to call the unified data distribution function every day or every 15 minutes, and the display page is refreshed every 15 minutes or every day. In the reliable power supply business scenario, monthly indicators such as the comprehensive voltage qualification rate and the comprehensive voltage qualification rate of urban residents can be set to call the unified data distribution function once a month, query the data once, and refresh the display page once a month.

2、设置定制接口。可将数据查询接口分为月度查询接口、日度查询接口和实时查询接口三类,其中,实时查询接口,用于实时更新指标(即实时展示信息)的调用。日度查询接口,用于日度更新指标(即日度展示信息)的调用。月度查询接口,用于月度更新指标(即月度展示信息)、季度更新指标(即季度展示信息)和年度更新指标(即年度展示信息)的调用。数据查询接口根据对应指标的报送方式(如人工填报和系统直采等),匹配数据库中相应报送方式的信息数据,同时,根据对应指标设定的数值类型(如累计值和当期值等)和计划值类型(如月度计划和年度计划)分别匹配数据库中对应结果表和计划值表中相应类型的信息数据。2. Set custom interface. The data query interface can be divided into three types: monthly query interface, daily query interface, and real-time query interface. Among them, the real-time query interface is used to update indicators in real time (ie, display information in real time). The daily query interface is used to call the daily update indicator (that is, the daily display information). The monthly query interface is used to call the monthly update indicator (that is, the monthly display information), the quarterly update indicator (that is, the quarterly display information) and the annual update indicator (that is, the annual display information). The data query interface matches the information data of the corresponding reporting method in the database according to the reporting method of the corresponding indicator (such as manual filling and system direct mining, etc.) ) and plan value types (such as monthly plan and annual plan) match the corresponding types of information data in the corresponding result table and plan value table in the database, respectively.

3、建立大屏指标管理体系。根据大屏端各类业务场景,在指标基础信息表(如下表1)新建大屏各个业务模块:运营总览、企业概况、电网运行、审计、产业优化、依法治企、客服服务、可靠供电、安全管理和职能电网建设,将这些模块归类为指标分类模块(indicator_type:1),即第一展示信息。之后配置大屏需要展示的指标的基础信息,将这些指标归类为指标或指标细分项(indicator_type:1/2),即第二展示信息。在总的大屏端模块下通过指标配置表(如下表2)绑定所有业务模块,并在各个业务模块下分别绑定该业务模块需要展示的指标,还可根据不同业务场景下各个指标的展示需求配置该指标需要调用的数据查询接口,实现大屏端的指标管理体系的建立。如图5所示,为建立指标管理体系的页面图,大屏端包括上述各个业务模块,每个业务模块对应有多个指标,在对应模块的指标下,可设置调用的数据查询接口,例如,在电网运行的业务场景下,绑定统调负荷、西电负荷等实时指标至指标体系中,绑定完成后从指标体系的电网运行模块下找到该实时指标,并绑定该实时指标对应需要调用的实时查询接口。在可靠供电业务场景下绑定综合电压合格率、城镇居民综合电压合格率等月度指标,绑定完成后从指标体系供电可靠模块下找到该月度指标,并绑定该月度指标对应需要调用的月度查询接口。在可靠供电业务场景下还可绑定用户平均停电时间的指标,该指标展示需求为实时数据和月度数据,因此,从指标体系供电可靠模块下找到该指标后,可同时绑定实时查询接口和月度查询接口。3. Establish a large-screen indicator management system. According to various business scenarios on the large screen, create new business modules on the large screen in the basic indicator information table (see Table 1 below): operation overview, enterprise profile, power grid operation, auditing, industry optimization, corporate governance by law, customer service, reliable power supply, For safety management and functional power grid construction, these modules are classified as indicator classification modules (indicator_type: 1), that is, the first display information. Then configure the basic information of the indicators to be displayed on the large screen, and classify these indicators as indicators or indicator subdivisions (indicator_type: 1/2), that is, the second display information. Bind all business modules through the indicator configuration table (see Table 2 below) under the general large-screen module, and bind the indicators that the business module needs to display under each business module. Displaying requirements configure the data query interface that the indicator needs to call, and realize the establishment of the indicator management system on the large screen. As shown in Figure 5, in order to establish the page diagram of the indicator management system, the large screen includes the above business modules, each business module corresponds to multiple indicators, and under the indicators of the corresponding module, the data query interface for calling can be set, for example , in the business scenario of power grid operation, bind the real-time indicators such as the unified load and western power load to the indicator system. After the binding is completed, find the real-time indicator from the grid operation module of the indicator system, and bind the real-time indicator corresponding to the The real-time query interface that needs to be called. In the reliable power supply business scenario, bind the monthly indicators such as the comprehensive voltage qualification rate and the comprehensive voltage qualification rate of urban residents. After the binding is completed, find the monthly indicators under the reliable power supply module of the indicator system, and bind the monthly indicators corresponding to the month that needs to be called. query interface. In the reliable power supply business scenario, the indicator of the user's average power outage time can also be bound. This indicator needs to display real-time data and monthly data. Therefore, after finding this indicator from the reliable power supply module of the indicator system, you can bind the real-time query interface and Monthly query interface.

如下表1所示,为指标基础信息表,包括指标的定义主键、指标编码、指标名称、完成值报送周期、完成值数据来源和指标类型等指标信息。As shown in Table 1 below, it is an indicator basic information table, including indicator definition primary key, indicator code, indicator name, completion value reporting period, completion value data source, indicator type and other indicator information.

表1Table 1

Figure BDA0002596084200000121
Figure BDA0002596084200000121

Figure BDA0002596084200000131
Figure BDA0002596084200000131

如下表2所示,为指标配置表,可配置指标的ID,对应的父指标ID(即该指标对应的业务模块的ID),以及指标对应的数据查询接口。其中,每个指标对应的数据查询接口可以为一个或多个。As shown in Table 2 below, it is an indicator configuration table, which can configure the ID of the indicator, the corresponding parent indicator ID (that is, the ID of the business module corresponding to the indicator), and the data query interface corresponding to the indicator. There may be one or more data query interfaces corresponding to each indicator.

表2Table 2

Figure BDA0002596084200000141
Figure BDA0002596084200000141

4、根据指标体系指标属性查询数据。在查询指标数据时,前端通过数据查询接口传入需要查询的业务模块编码和传递数据查询接口对应的指标编码数组、组织数组、月份数组和年份数组等数据查询参数,调用统一数据分发功能,该分发功能将根据传入的业务模块编码(即第一展示信息的第一标识)先查询出对应业务模块下的所有指标或指标细分项(即第二展示信息)以及各指标或指标细分项对应的数据查询接口,再根据传入的指标编码数组(即目标展示信息的第二标识)筛选出对应需要查询的目标指标(即目标展示信息),以及目标指标对应的数据查询接口(即目标展示信息对应的数据查询接口),将目标指标匹配到目标指标对应的数据查询接口,最后根据其他传入的参数,如组织数组、月份数组和年份数组(即数据查询参数),获取与数据查询参数相对应的信息数据。4. Query data according to the index attributes of the index system. When querying indicator data, the front end passes in the code of the business module to be queried through the data query interface, and transmits data query parameters such as the indicator code array, organization array, month array, and year array corresponding to the data query interface, and calls the unified data distribution function. The distribution function will first query all indicators or indicator subdivisions (i.e. the second presentation information) and each indicator or indicator subdivision under the corresponding business module according to the incoming business module code (that is, the first identifier of the first display information). The data query interface corresponding to the item, and then filter out the corresponding target indicator (that is, the target display information) that needs to be queried according to the incoming indicator encoding array (that is, the second identifier of the target display information), and the data query interface corresponding to the target indicator (that is, the target display information). The data query interface corresponding to the target display information), match the target indicator to the data query interface corresponding to the target indicator, and finally obtain and data according to other incoming parameters, such as organization array, month array and year array (that is, data query parameters). Information data corresponding to the query parameter.

如下表3所示,为日度查询接口对应的传入参数表,包括参数名称/字段、参数说明、参数是否必须、以及各个传入参数对应的数据类型,其中,传入参数包括组织编码、排序方式(指定传入字符串)、指标编码和实施指标传入时间格式。例如,参数名称为orgMrids,即组织编码的传入参数为一个非必须传入的参数,其对应的数据类型为array。As shown in Table 3 below, it is the incoming parameter table corresponding to the daily query interface, including parameter name/field, parameter description, whether the parameter is required, and the data type corresponding to each incoming parameter. The incoming parameter includes the organization code, Sort method (specify incoming string), indicator encoding and implement indicator incoming time format. For example, the parameter name is orgMrids, that is, the incoming parameter of the organization code is an optional parameter, and its corresponding data type is array.

如下表4所示,为日度查询接口的返回数据表,包括返回参数名称/字段、返回参数说明以及各个返回参数对应的数据类型,其中,返回参数包括指标Id、计划完成进度、计划值等,例如,返回参数名称为jhzxpcl,即计划执行偏差率的返回参数对应的数据类型为string。As shown in Table 4 below, it is the return data table of the daily query interface, including the name/field of the return parameter, the description of the return parameter, and the data type corresponding to each return parameter. , for example, the return parameter name is jhzxpcl, that is, the data type corresponding to the return parameter of the planned execution deviation rate is string.

表3table 3

Figure BDA0002596084200000151
Figure BDA0002596084200000151

表4Table 4

Figure BDA0002596084200000152
Figure BDA0002596084200000152

Figure BDA0002596084200000161
Figure BDA0002596084200000161

如下表5所示,为实时查询接口的传入参数表,包括参数名称、参数说明、参数是否必须、以及各个传入参数对应的数据类型,其中,传入参数包括组织编码、排序方式(指定传入字符串)、指标编码和实施指标传入时间格式。例如,参数名称为orgMrids,即组织编码的传入参数为必须传入的参数,其对应的数据类型为array。As shown in Table 5 below, it is the incoming parameter table of the real-time query interface, including parameter name, parameter description, whether the parameter is required, and the data type corresponding to each incoming parameter. Incoming string), indicator encoding and implementing indicator incoming time format. For example, the parameter name is orgMrids, that is, the incoming parameter of the organization code is a parameter that must be passed in, and its corresponding data type is array.

表5table 5

Figure BDA0002596084200000162
Figure BDA0002596084200000162

其中,实时查询接口的返回数据表与日度查询接口的返回数据表相同,在此不再赘述。The returned data table of the real-time query interface is the same as the returned data table of the daily query interface, and details are not repeated here.

如下表6所示,为月度查询接口的传入参数表,包括参数名称/字段、参数说明、参数是否必须、以及各个传入参数对应的数据类型,其中,传入参数包括指标编码区间、所选查询月份区间、排序方式(指定传入字符串)、组织编码区间、所选查询年份区间和查询状态。例如,参数名称为indicatorCodes,即指标编码区间的传入参数为必须传入的参数,其对应的数据类型为array。As shown in Table 6 below, it is the incoming parameter table of the monthly query interface, including the parameter name/field, parameter description, whether the parameter is required, and the data type corresponding to each incoming parameter. Select the query month range, the sorting method (specify the incoming string), the organization code range, the selected query year range and the query status. For example, the parameter name is indicatorCodes, that is, the incoming parameter of the indicator coding interval is a parameter that must be passed in, and its corresponding data type is array.

表6Table 6

Figure BDA0002596084200000171
Figure BDA0002596084200000171

其中,月度查询接口的返回数据表,除了上述日度查询接口的返回数据表中的内容外,还包括如下表7所示的内容,即还包括当期值、当期同比和当期同比颜色三个传入参数,以及三个传入参数对应的数据类型。Among them, the returned data table of the monthly query interface, in addition to the content in the returned data table of the above daily query interface, also includes the content shown in Table 7 below, that is, it also includes the current value, the current period year-on-year and the current period year-on-year color. Incoming parameters, and the data types corresponding to the three incoming parameters.

表7Table 7

参数名称/字段parameter name/field 说明illustrate 类型type dqIndicatorValuedqIndicatorValue 当期值current value stringstring dqTbdqTb 当期同比year-on-year stringstring dqTbColordqTbColor 当前同比颜色Current YoY Color stringstring

5、按照设定数据模板生成数据。按照不同数据查询接口的既定的数据模板,将得到的信息数据组装成各种格式的业务数据,如单个数据对象、数据列表等,再以key—value形式返回数据块,如客户平均停电时间调用实时查询接口和月度查询接口,则返回其编码+类型的形式:KK02000Month-返回数据、数据和KK02000Time-返回数据,供前端统一调用。5. Generate data according to the set data template. According to the established data templates of different data query interfaces, the obtained information data is assembled into business data in various formats, such as a single data object, data list, etc., and then the data block is returned in the form of key-value, such as the average power outage time of customers. The real-time query interface and monthly query interface return the code + type: KK02000Month-returns data, data and KK02000Time-returns data for the front-end unified call.

本实施例提供的数据获取方法,通过定制数据传送方式并统一返回数据的方法,简化了大屏系统的开发手段,降低了系统维护的工作量,业务人员能根据需求快速的获取所需展示的数据,并且返回统一的数据格式能让前端开发人员在处理返回数据上更加得心应手,从而加快大屏系统的版本迭代,更加快速的相应业务的扩展和变更。采用该方法可以根据业务需求,定制返回数据,灵活的查询需要的数据,与固定的业务接口不同,不拘谨于单单一个业务模块,各个业务模块都可灵活调用,以应对复杂的业务需求。The data acquisition method provided in this embodiment simplifies the development method of the large-screen system and reduces the workload of system maintenance by customizing the data transmission method and returning the data uniformly, so that business personnel can quickly acquire the required display according to requirements. Data, and returning to a unified data format can make front-end developers more handy in processing returned data, thereby speeding up the version iteration of the large-screen system and enabling faster expansion and changes of the corresponding business. Using this method, the returned data can be customized according to business requirements, and the required data can be flexibly queried. Different from the fixed business interface, it is not restricted to a single business module, and each business module can be flexibly called to meet complex business requirements.

应该理解的是,虽然图2-4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 2-4 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and the steps may be executed in other orders. Moreover, at least a part of the steps in FIGS. 2-4 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps or stages are not necessarily completed at the same time. The order of execution of the steps is not necessarily sequential, but may be performed alternately or alternately with other steps or at least part of sub-steps or stages of other steps.

在一个实施例中,如图6所示,提供了一种数据获取装置,包括:第一标识获取模块602、展示信息获取模块604、筛选模块606和信息数据获取模块608,其中:In one embodiment, as shown in FIG. 6, a data acquisition device is provided, including: a first identification acquisition module 602, a display information acquisition module 604, a screening module 606 and an information data acquisition module 608, wherein:

第一标识获取模块602,用于获取电网信息展示页面中第一展示信息的第一标识;The first identification obtaining module 602 is used for obtaining the first identification of the first display information in the power grid information display page;

展示信息获取模块604,用于根据第一标识查询预设的电网信息映射表,获取与第一展示信息对应的多个第二展示信息以及各个第二展示信息的数据查询接口;电网信息映射表记录有多个数据查询接口,每个数据查询接口对应有多个第二展示信息;The display information acquisition module 604 is configured to query a preset grid information mapping table according to the first identifier, and acquire a plurality of second display information corresponding to the first display information and a data query interface for each second display information; the grid information mapping table The record has multiple data query interfaces, and each data query interface corresponds to multiple second display information;

筛选模块606,用于获取目标展示信息的第二标识,根据第二标识从各第二展示信息对应的数据查询接口中确定出目标展示信息对应的数据查询接口;A screening module 606, configured to obtain a second identifier of the target display information, and determine a data query interface corresponding to the target display information from the data query interfaces corresponding to each second display information according to the second identifier;

信息数据获取模块608,用于通过数据查询接口,获取目标展示信息的信息数据。The information data acquisition module 608 is configured to acquire the information data of the target display information through the data query interface.

在一个实施例中,上述装置还包括参数和标识获取模块,用于获取目标展示信息的数据查询参数和属性标识;上述信息数据获取模块608,还用于根据数据查询参数和属性标识,获取目标展示信息的信息数据。In one embodiment, the above-mentioned apparatus further includes a parameter and identifier acquisition module for acquiring data query parameters and attribute identifiers of the target display information; the above-mentioned information data acquisition module 608 is further configured to acquire the target display parameters and attribute identifiers according to the data query parameters and attribute identifiers. Information data that displays information.

在一个实施例中,数据查询参数包括查询日期;若数据查询接口为月度查询接口;上述信息数据获取模块608,还用于若目标展示信息的属性标识为月度展示信息,则获取查询日期内的信息数据,作为目标展示信息的信息数据。In one embodiment, the data query parameter includes a query date; if the data query interface is a monthly query interface; the above-mentioned information data acquisition module 608 is further configured to obtain the information within the query date if the attribute identifier of the target display information is monthly display information. Information data, which is the information data for displaying information as a target.

在一个实施例中,上述信息数据获取模块608,还用于若目标展示信息的属性标识为季度展示信息,则将查询日期与预设的多个季度日期进行匹配,当查询日期与任一季度日期匹配时,则获取与查询日期相匹配的季度日期对应的信息数据,作为目标展示信息的信息数据;当查询日期与各季度日期均不匹配时,则获取查询日期对应的前一季度日期对应的信息数据,作为目标展示信息的信息数据。In one embodiment, the above-mentioned information data acquisition module 608 is further configured to match the query date with a plurality of preset quarterly dates if the attribute of the target display information is identified as quarterly display information. When the date matches, the information data corresponding to the quarterly date that matches the query date is obtained as the information data of the target display information; when the query date does not match the dates of each quarter, the corresponding date of the previous quarter corresponding to the query date is obtained. The information data, as the information data of the target display information.

在一个实施例中,上述信息数据获取模块608,还用于若目标展示信息的属性标识为年度展示信息,则将查询日期与预设年度日期进行匹配,当查询日期与年度日期匹配时,则获取与年度日期对应的信息数据,作为目标展示信息的信息数据;当查询日期与年度日期不匹配时,则获取查询日期对应的前一年度日期对应的信息数据,作为目标展示信息的信息数据。In one embodiment, the above-mentioned information data acquisition module 608 is further configured to match the query date with the preset annual date if the attribute of the target display information is identified as annual display information, and when the query date matches the annual date, then The information data corresponding to the annual date is obtained as the information data of the target display information; when the query date does not match the annual date, the information data corresponding to the previous year date corresponding to the query date is obtained as the information data of the target display information.

在一个实施例中,上述装置还包括:In one embodiment, the above-mentioned apparatus further comprises:

数据导入模块,用于将信息数据导入预设的与数据查询接口对应的数据模板中,得到设定格式的信息数据;The data import module is used to import the information data into the preset data template corresponding to the data query interface, and obtain the information data in the set format;

数据发送模块,通过数据查询接口,将设定格式的信息数据发送至前端,以供前端根据设定格式的信息数据对电网信息展示页面进行渲染。The data sending module sends the information data in the set format to the front end through the data query interface, so that the front end can render the grid information display page according to the information data in the set format.

需要说明的是,本申请的数据获取装置与本申请的数据获取方法一一对应,在上述数据获取方法的实施例阐述的技术特征及其有益效果均适用于数据获取装置的实施例中,具体内容可参见本申请方法实施例中的叙述,此处不再赘述,特此声明。It should be noted that the data acquisition device of the present application corresponds to the data acquisition method of the present application one by one, and the technical features and beneficial effects described in the embodiments of the above data acquisition method are applicable to the embodiments of the data acquisition device. For the content, please refer to the description in the method embodiment of the present application, which will not be repeated here, but is hereby declared.

此外,上述数据获取装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。In addition, each module in the above-mentioned data acquisition device may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图7所示。该计算机设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储数据获取过程产生的数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种数据获取方法。In one embodiment, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in FIG. 7 . The computer device includes a processor, memory, and a network interface connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store the data generated by the data acquisition process. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by a processor, implements a data acquisition method.

本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 7 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, a computer device is also provided, including a memory and a processor, where a computer program is stored in the memory, and the processor implements the steps in the foregoing method embodiments when the processor executes the computer program.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, implements the steps in the foregoing method embodiments.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium , when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the various embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, or optical memory, and the like. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, the RAM may be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, all It is considered to be the range described in this specification.

以上实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1. A method for data acquisition, the method comprising:
acquiring a first identifier of first display information in a power grid information display page;
inquiring a preset power grid information mapping table according to the first identifier, and acquiring a plurality of pieces of second display information corresponding to the first display information and data inquiry interfaces corresponding to the second display information; the power grid information mapping table records a plurality of data query interfaces, and each data query interface corresponds to a plurality of second display information;
Acquiring second identifiers of target display information, and determining data query interfaces corresponding to the target display information from data query interfaces corresponding to each second display information according to the second identifiers;
and acquiring the information data of the target display information through the data query interface.
2. The method according to claim 1, further comprising, before obtaining the information data of the target presentation information:
acquiring data query parameters and attribute identification of the target display information;
and acquiring the information data of the target display information according to the data query parameters and the attribute identification.
3. The method of claim 2, wherein the data query parameters include a query date; if the data query interface is a monthly query interface;
the acquiring information data of the target display information according to the data query parameter and the attribute identifier includes:
and if the attribute identification of the target display information is monthly display information, acquiring information data in the query date as the information data of the target display information.
4. The method according to claim 3, wherein the obtaining information data of the target display information according to the data query parameter and the attribute identifier further comprises:
If the attribute identification of the target display information is quarterly display information, matching the query date with a plurality of preset quarterly dates, and acquiring information data corresponding to the quarterly date matched with the query date as the information data of the target display information when the query date is matched with any one of the quarterly dates;
and when the query date is not matched with each quarter date, acquiring information data corresponding to a previous quarter date corresponding to the query date as the information data of the target display information.
5. The method according to claim 3, wherein the obtaining information data of the target display information according to the data query parameter and the attribute identifier further comprises:
if the attribute identifier of the target display information is annual display information, matching the query date with a preset annual date, and when the query date is matched with the annual date, acquiring information data corresponding to the annual date as the information data of the target display information;
and when the query date is not matched with the annual date, acquiring information data corresponding to the previous annual date corresponding to the query date as the information data of the target display information.
6. The method according to claim 1, further comprising, after obtaining the information data of the target presentation information:
importing the information data into a preset data template corresponding to the data query interface to obtain information data in a set format;
and sending the information data in the set format to a front end through the data query interface so that the front end can render the power grid information display page according to the information data in the set format.
7. A data acquisition apparatus, characterized in that the apparatus comprises:
the first identifier acquisition module is used for acquiring a first identifier of first display information in the power grid information display page;
the display information acquisition module is used for inquiring a preset power grid information mapping table according to the first identifier, and acquiring a plurality of pieces of second display information corresponding to the first display information and data inquiry interfaces corresponding to the second display information; the power grid information mapping table records a plurality of data query interfaces, and each data query interface corresponds to a plurality of second display information;
the screening module is used for acquiring second identifiers of the target display information and determining data query interfaces corresponding to the target display information from the data query interfaces corresponding to the second display information according to the second identifiers;
And the information data acquisition module is used for acquiring the information data of the target display information through the data query interface.
8. The apparatus according to claim 7, further comprising a parameter and identifier obtaining module, configured to obtain a data query parameter and an attribute identifier of the target display information; the information data acquisition module is further configured to acquire the information data of the target display information according to the data query parameter and the attribute identifier.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010709690.3A 2020-07-22 2020-07-22 Data acquisition method, device, computer equipment and storage medium Pending CN111858596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010709690.3A CN111858596A (en) 2020-07-22 2020-07-22 Data acquisition method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010709690.3A CN111858596A (en) 2020-07-22 2020-07-22 Data acquisition method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111858596A true CN111858596A (en) 2020-10-30

Family

ID=73000839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010709690.3A Pending CN111858596A (en) 2020-07-22 2020-07-22 Data acquisition method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111858596A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342860A (en) * 2021-06-30 2021-09-03 平安资产管理有限责任公司 Index calculation method, device, equipment and storage medium based on universal interface
CN114047990A (en) * 2021-11-15 2022-02-15 国网山东省电力公司青岛供电公司 Large-screen visual dynamic display method and system
CN114722314A (en) * 2021-01-04 2022-07-08 腾讯科技(深圳)有限公司 Navigation bar data processing method and device, storage medium and electronic equipment
CN115914507A (en) * 2021-08-16 2023-04-04 广州视源电子科技股份有限公司 A device binding method and device based on video matrix

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471931A (en) * 2014-08-06 2016-04-06 腾讯科技(北京)有限公司 Method, device and system for querying service data
CN105760532A (en) * 2016-03-03 2016-07-13 江苏物联网研究发展中心 Resource sharing system based on Web Service and resource sharing method based on Web Service
CN107480268A (en) * 2017-08-17 2017-12-15 北京奇虎科技有限公司 Data query method and device
CN107943547A (en) * 2016-10-13 2018-04-20 阿里巴巴集团控股有限公司 More service integration methods, device, intelligent terminal, server and operating system
CN108287923A (en) * 2018-02-28 2018-07-17 山东汇贸电子口岸有限公司 A kind of visualization interface data intelligence extraction system and its design method
CN108874926A (en) * 2018-05-31 2018-11-23 康键信息技术(深圳)有限公司 Mass data inquiry method, device, computer equipment and storage medium
CN109871381A (en) * 2019-01-22 2019-06-11 积成电子股份有限公司 The method that grid operation data is adaptively stored and inquired
CN110569064A (en) * 2019-09-03 2019-12-13 北京达佳互联信息技术有限公司 interface identifier generation method, device, equipment and storage medium
CN110858209A (en) * 2018-08-23 2020-03-03 阿里巴巴集团控股有限公司 Business object access/release method, device, system and electronic equipment
CN111428464A (en) * 2020-03-27 2020-07-17 平安不动产有限公司 Report file generation method, apparatus, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471931A (en) * 2014-08-06 2016-04-06 腾讯科技(北京)有限公司 Method, device and system for querying service data
CN105760532A (en) * 2016-03-03 2016-07-13 江苏物联网研究发展中心 Resource sharing system based on Web Service and resource sharing method based on Web Service
CN107943547A (en) * 2016-10-13 2018-04-20 阿里巴巴集团控股有限公司 More service integration methods, device, intelligent terminal, server and operating system
CN107480268A (en) * 2017-08-17 2017-12-15 北京奇虎科技有限公司 Data query method and device
CN108287923A (en) * 2018-02-28 2018-07-17 山东汇贸电子口岸有限公司 A kind of visualization interface data intelligence extraction system and its design method
CN108874926A (en) * 2018-05-31 2018-11-23 康键信息技术(深圳)有限公司 Mass data inquiry method, device, computer equipment and storage medium
CN110858209A (en) * 2018-08-23 2020-03-03 阿里巴巴集团控股有限公司 Business object access/release method, device, system and electronic equipment
CN109871381A (en) * 2019-01-22 2019-06-11 积成电子股份有限公司 The method that grid operation data is adaptively stored and inquired
CN110569064A (en) * 2019-09-03 2019-12-13 北京达佳互联信息技术有限公司 interface identifier generation method, device, equipment and storage medium
CN111428464A (en) * 2020-03-27 2020-07-17 平安不动产有限公司 Report file generation method, apparatus, computer equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114722314A (en) * 2021-01-04 2022-07-08 腾讯科技(深圳)有限公司 Navigation bar data processing method and device, storage medium and electronic equipment
CN113342860A (en) * 2021-06-30 2021-09-03 平安资产管理有限责任公司 Index calculation method, device, equipment and storage medium based on universal interface
CN115914507A (en) * 2021-08-16 2023-04-04 广州视源电子科技股份有限公司 A device binding method and device based on video matrix
CN114047990A (en) * 2021-11-15 2022-02-15 国网山东省电力公司青岛供电公司 Large-screen visual dynamic display method and system

Similar Documents

Publication Publication Date Title
CN108536761B (en) Report data query method and server
CN111858596A (en) Data acquisition method, device, computer equipment and storage medium
US9710536B2 (en) Method and system for validating data
US9218408B2 (en) Method for automatically creating a data mart by aggregated data extracted from a business intelligence server
CN111061733B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110046337B (en) Financial data acquisition method and system
US11704340B2 (en) Linking discrete dimensions to enhance dimensional analysis
US11327957B2 (en) Data model for emissions analysis
CN114997109B (en) Document conversion method, device, computer equipment and storage medium
US10423639B1 (en) Automated customization preservation
US20230081212A1 (en) System and method for providing multi-hub datasets for use with data analytics environments
CN116662448A (en) Data automatic synchronization method, device, electronic equipment and storage medium
EP4399614A1 (en) System and method for generating automatic insights of analytics data
CN115293685A (en) Logistics order state tracking method, device, equipment and storage medium
CN114444478A (en) A credential visualization method, device, electronic device and storage medium
CN117493377A (en) Financial index report configuration method, device, equipment and storage medium
CN117689265A (en) Method, device, equipment and storage medium for configuring index multi-dimensional target value
CN117592757A (en) Report data processing method, device, computer equipment and storage medium
CN109992573A (en) A method and system for realizing automatic monitoring of HDFS file occupancy rate
CN117422398A (en) A project material management method, device, equipment and storage medium
CN117893235B (en) Data analysis method, device, computer equipment and storage medium
US12386851B2 (en) System and method for automatically enriching datasets with system knowledge data
US20250355895A1 (en) System and method for automatically enriching datasets with system knowledge data
CN119415005A (en) Document management method, device, computer equipment and storage medium
CN118195809A (en) General ledger system data processing method, device, computer 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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20220701

AD01 Patent right deemed abandoned