CN115544077A - Data determination method, device, equipment and computer storage medium - Google Patents

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

Info

Publication number
CN115544077A
CN115544077A CN202110730187.0A CN202110730187A CN115544077A CN 115544077 A CN115544077 A CN 115544077A CN 202110730187 A CN202110730187 A CN 202110730187A CN 115544077 A CN115544077 A CN 115544077A
Authority
CN
China
Prior art keywords
data
data information
time period
correction
control table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110730187.0A
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.)
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing 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 China Mobile Communications Group Co Ltd, China Mobile Group Chongqing Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110730187.0A priority Critical patent/CN115544077A/en
Publication of CN115544077A publication Critical patent/CN115544077A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06Q30/00Commerce
    • G06Q30/01Customer relationship services
    • G06Q30/015Providing customer assistance, e.g. assisting a customer within a business location or via helpdesk
    • G06Q30/016After-sales

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • Strategic Management (AREA)
  • Computational Linguistics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a data determination method, a device, equipment and a computer storage medium, wherein the data determination method comprises the following steps: responding to a data query request sent by a user terminal, and performing data information query operation on a filtering control table; under the condition that the data information exists in the filtering control table, matching the first data information with the data information in the filtering control table; under the condition that second data information matched with the first data information exists in the filtering control table, if correction data corresponding to the second data information is cached in the cache table, the correction data is acquired; based on the correction data, feedback data for transmission to the user terminal is generated. According to the method, during the correction processing of the error data batch data, the correction data can be acquired from the cache table for inquiring the error data, and a user is prevented from inquiring the error data during the correction processing of the error data batch data.

Description

数据确定方法、装置、设备及计算机存储介质Data determining method, device, equipment and computer storage medium

技术领域technical field

本申请涉及数据安全技术领域,具体涉及一种数据确定方法、装置、设备及计算机存储介质。The present application relates to the technical field of data security, in particular to a method, device, equipment and computer storage medium for determining data.

背景技术Background technique

在业务服务平台为用户提供业务服务(如通信业务服务等)的过程中,会产生大量的业务数据。其中,业务服务平台产生的业务数据中可能存在错误数据,故需要对错误数据进行批量处理,以实现将错误数据更新为正确的业务数据。In the process of providing business services (such as communication business services, etc.) to users by the business service platform, a large amount of business data will be generated. Among them, there may be wrong data in the business data generated by the business service platform, so the wrong data needs to be processed in batches to update the wrong data into correct business data.

但是,由于对错误数据进行批量处理需要耗费较长的时间,在此期间,业务服务平台可能接收到用户发起的数据查询请求,这样会导致用户所请求的错误数据被展示,容易造成用户因看到展示的错误数据而产生投诉,从而使得业务服务平台的投诉率较高。However, because it takes a long time to batch process wrong data, during this period, the business service platform may receive data query requests initiated by users, which will cause the wrong data requested by users to be displayed, which may easily cause users to look at Complaints are generated due to incorrect data displayed, which makes the complaint rate of the business service platform relatively high.

发明内容Contents of the invention

本发明实施例提供一种数据确定方法,以解决在批量错误数据处理期间,因向用户展示错误数据而导致业务服务平台的投诉率高的技术问题。The embodiment of the present invention provides a data determination method to solve the technical problem of high complaint rate on the business service platform caused by displaying wrong data to users during batch wrong data processing.

第一方面,本发明实施例提供了一种数据确定方法,方法包括:In a first aspect, an embodiment of the present invention provides a method for determining data, the method including:

响应于用户终端发送的数据查询请求,对过滤控制表进行数据信息查询操作,所述数据查询请求用于请求查询生产表中与第一数据信息对应的业务数据,所述过滤控制表用于:对所述生产表中处于批量数据校正处理中的错误数据的数据信息进行记录;In response to the data query request sent by the user terminal, perform a data information query operation on the filtering control table, the data query request is used to request querying the business data corresponding to the first data information in the production table, and the filtering control table is used for: Recording the data information of the erroneous data in the batch data correction process in the production table;

在查询到所述过滤控制表中存在数据信息的情况下,将所述第一数据信息与所述过滤控制表中的数据信息进行匹配;matching the first data information with the data information in the filtering control table when it is found that there is data information in the filtering control table;

在所述过滤控制表中存在与所述第一数据信息匹配的第二数据信息的情况下,若所述缓存表中缓存有与所述第二数据信息对应的校正数据,则获取所述校正数据,所述第二数据信息为所述第一数据信息的部分或者全部,所述缓存表用于:在批量数据校正处理中,缓存与已完成校正处理的错误数据对应的校正数据;In the case where there is second data information matching the first data information in the filtering control table, if correction data corresponding to the second data information is cached in the buffer table, acquiring the correction data, the second data information is part or all of the first data information, and the cache table is used to: in batch data correction processing, cache correction data corresponding to error data that has completed correction processing;

基于所述校正数据,生成用于向所述用户终端发送的反馈数据;generating feedback data for transmission to the user terminal based on the correction data;

其中,若所述缓存表中未缓存有与所述第二数据信息对应的校正数据,则不向所述用户终端发送业务数据。Wherein, if the correction data corresponding to the second data information is not cached in the cache table, no service data is sent to the user terminal.

第二方面,本发明实施例提供了一种数据确定装置,装置包括:In a second aspect, an embodiment of the present invention provides a device for determining data, including:

查询模块,用于响应于用户终端发送的数据查询请求,对过滤控制表进行数据信息查询操作,所述数据查询请求用于请求查询生产表中与第一数据信息对应的业务数据,所述过滤控制表用于:对所述生产表中处于批量数据校正处理中的错误数据的数据信息进行记录;The query module is configured to perform a data information query operation on the filtering control table in response to a data query request sent by the user terminal, the data query request is used to request querying the business data corresponding to the first data information in the production table, and the filtering The control table is used to: record the data information of the erroneous data in the batch data correction process in the production table;

匹配模块,用于在查询到所述过滤控制表中存在数据信息的情况下,将所述第一数据信息与所述过滤控制表中的数据信息进行匹配;A matching module, configured to match the first data information with the data information in the filtering control table when it is found that there is data information in the filtering control table;

第一获取模块,用于在所述过滤控制表中存在与所述第一数据信息匹配的第二数据信息的情况下,若所述缓存表中缓存有与所述第二数据信息对应的校正数据,则获取所述校正数据,所述第二数据信息为所述第一数据信息的部分或者全部,所述缓存表用于:在批量数据校正处理中,缓存与已完成校正处理的错误数据对应的校正数据;The first obtaining module is configured to: if there is second data information matching the first data information in the filtering control table, if the cache table has cached corrections corresponding to the second data information data, the corrected data is obtained, the second data information is part or all of the first data information, and the cache table is used for: in batch data correction processing, buffering error data that has been corrected Corresponding calibration data;

生成模块,用于基于所述校正数据,生成用于向所述用户终端发送的反馈数据;A generating module, configured to generate feedback data for sending to the user terminal based on the correction data;

其中,若所述缓存表中未缓存有与所述第二数据信息对应的校正数据,则不向所述用户终端发送业务数据。Wherein, if the correction data corresponding to the second data information is not cached in the cache table, no service data is sent to the user terminal.

第三方面,本申请实施例提供了一种电子设备,设备包括:In a third aspect, an embodiment of the present application provides an electronic device, including:

至少一个处理器、至少一个存储器以及存储在所述存储器中的计算机程序指令,当所述计算机程序指令被所述处理器执行时实现上述的数据确定方法。At least one processor, at least one memory, and computer program instructions stored in the memory. When the computer program instructions are executed by the processor, the above data determination method is implemented.

第四方面,本申请实施例提供了一种计算机存储介质,所述计算机存储介质上存储有计算机程序指令,所述计算机程序指令被处理器执行时实现上述的数据确定方法。In a fourth aspect, an embodiment of the present application provides a computer storage medium, where computer program instructions are stored on the computer storage medium, and when the computer program instructions are executed by a processor, the above data determination method is implemented.

相较于现有技术,本申请具有以下有益效果:Compared with the prior art, the present application has the following beneficial effects:

本申请可以在电子设备对错误数据进行批量数据校正处理的过程中,创建缓存表缓存对错误数据校正处理后的校正数据,通过过滤控制表判断出用户终端请求查询的业务数据是否是正在校正处理中的错误数据,若请求查询的数据是正在校正处理的错误数据,则通过缓存表获取错误数据对应的校正数据反馈至用户终端;而若请求查询的数据是未完成校正处理的错误数据,则不向用户终端发送业务数据。因此,在错误数据批量校正处理期间,对于错误数据的访问可以从缓存表中获取校正数据反馈至用户终端进行展示,解决了因向用户展示错误数据而导致业务服务平台的投诉率高的技术问题。This application can create a cache table to cache the corrected data after correcting the wrong data during the batch data correction processing of the wrong data by the electronic device, and judge whether the business data requested by the user terminal is being corrected through the filtering control table erroneous data in , if the requested query data is erroneous data that is being corrected and processed, the corrected data corresponding to the erroneous data will be obtained through the cache table and fed back to the user terminal; and if the requested queryed data is erroneous data that has not been corrected and processed, then No service data is sent to the user terminal. Therefore, during the error data batch correction process, the access to the error data can obtain the correction data from the cache table and feed it back to the user terminal for display, which solves the technical problem of high complaint rate on the business service platform due to displaying error data to users .

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例中所需要使用的附图作简单的介绍,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments of the present application. Additional figures can be derived from these figures.

图1是一示例性实施例示出的一种数据确定的流程示意图;Fig. 1 is a schematic flow chart of data determination shown in an exemplary embodiment;

图2是一示例性实施例示出的一种数据确定的流程示意图;Fig. 2 is a schematic flow chart of data determination shown in an exemplary embodiment;

图3是一示例性实施例示出的一种批量数据校正处理的流程示意图;Fig. 3 is a schematic flowchart of batch data correction processing shown in an exemplary embodiment;

图4是一示例性实施例示出的请求查询的数据区段示意图;Fig. 4 is a schematic diagram of a data section of a request query shown in an exemplary embodiment;

图5是一示例性实施例示出的一种数据查询的流程示意图Fig. 5 is a schematic flow chart of a data query shown in an exemplary embodiment

图6是一示例性实施例示出的一种数据确定装置的结构示意图;Fig. 6 is a schematic structural diagram of a data determination device shown in an exemplary embodiment;

图7是一示例性实施例示出的一种电子设备的结构示意图。Fig. 7 is a schematic structural diagram of an electronic device shown in an exemplary embodiment.

具体实施方式detailed description

下面将详细描述本申请的各个方面的特征和示例性实施例,为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及具体实施例,对本申请进行进一步详细描述。应理解,此处所描述的具体实施例仅意在解释本申请,而不是限定本申请。对于本领域技术人员来说,本申请可以在不需要这些具体细节中的一些细节的情况下实施。下面对实施例的描述仅仅是为了通过示出本申请的示例来提供对本申请更好的理解。The characteristics and exemplary embodiments of various aspects of the application will be described in detail below. In order to make the purpose, technical solution and advantages of the application clearer, the 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 here are only intended to explain the present application rather than limit the present application. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the statement "comprising..." does not exclude the presence of additional same elements in the process, method, article or device comprising said element.

为了解决现有技术问题,本申请实施例提供了一种数据确定方法、装置、设备及计算机存储介质。下面首先对本申请实施例所提供的数据确定方法进行介绍。In order to solve the problems in the prior art, the embodiments of the present application provide a data determination method, device, equipment, and computer storage medium. The data determination method provided by the embodiment of the present application is firstly introduced below.

如图1所示,本实施例提供的一种数据确定方法,应用于电子设备,该电子设备可以是服务器等,该数据确定方法包括如下步骤:As shown in Figure 1, a data determination method provided by this embodiment is applied to an electronic device, and the electronic device may be a server or the like. The data determination method includes the following steps:

步骤S101,响应于用户终端发送的数据查询请求,对过滤控制表进行数据信息查询操作;数据查询请求用于请求查询生产表中与第一数据信息对应的业务数据,过滤控制表用于:对生产表中处于批量数据校正处理中的错误数据的数据信息进行记录;Step S101, in response to the data query request sent by the user terminal, perform a data information query operation on the filter control table; the data query request is used to query the business data corresponding to the first data information in the production table, and the filter control table is used to: Record the data information of the wrong data in the batch data correction process in the production table;

步骤S102,在查询到过滤控制表中存在数据信息的情况下,将第一数据信息与过滤控制表中的数据信息进行匹配;Step S102, matching the first data information with the data information in the filtering control table when it is found that there is data information in the filtering control table;

步骤S103,在过滤控制表中存在与第一数据信息匹配的第二数据信息的情况下,若缓存表中缓存有与第二数据信息对应的校正数据,则获取校正数据,第二数据信息为第一数据信息的部分或者全部,缓存表用于:在批量数据校正处理中,缓存与已完成校正处理的错误数据对应的校正数据;Step S103, if there is second data information matching the first data information in the filter control table, if the correction data corresponding to the second data information is cached in the cache table, then the correction data is obtained, and the second data information is Part or all of the first data information, the cache table is used to: in the batch data correction process, cache the correction data corresponding to the error data that has completed the correction process;

步骤S104,基于校正数据,生成用于向用户终端发送的反馈数据;Step S104, based on the correction data, generate feedback data for sending to the user terminal;

其中,若缓存表中未缓存有与第二数据信息对应的校正数据,则不向所述用户终端发送业务数据。Wherein, if the correction data corresponding to the second data information is not cached in the cache table, no service data is sent to the user terminal.

上述各步骤的具体实现方式将在下文中进行详细描述。The specific implementation of the above steps will be described in detail below.

本申请实施例可以在电子设备对错误数据进行批量数据校正处理的过程中,创建缓存表缓存对错误数据校正处理后的校正数据,通过过滤控制表判断出用户终端请求查询的业务数据是否是正在校正处理中的错误数据,若请求查询的数据是正在批量数据校正处理中的错误数据,则通过缓存表获取错误数据对应的校正数据反馈至用户终端;而若请求查询的数据是未完成校正处理的错误数据,则不向用户终端发送业务数据。如此,在长时间的批量错误数据处理期间,可以避免将错误数据反馈至用户终端进行展示,从而可以有效降低业务服务平台的投诉率。The embodiment of the present application can create a cache table to cache the corrected data after correcting the wrong data in the process of batch data correction processing of the wrong data by the electronic device, and judge whether the service data requested by the user terminal to be queried is in progress through the filtering control table. Error data in correction processing, if the requested query data is error data in batch data correction processing, the correction data corresponding to the error data is obtained through the cache table and fed back to the user terminal; and if the requested query data is not completed correction processing erroneous data, the service data will not be sent to the user terminal. In this way, during the long period of batch error data processing, the error data can be avoided from being fed back to the user terminal for display, thereby effectively reducing the complaint rate of the business service platform.

下面介绍上述各个步骤的具体实现方式。The specific implementation of each of the above steps is introduced below.

在上述步骤S101中,在电子设备对生产表进行批量数据校正处理的过程中,若用户终端向电子设备发送数据查询请求,电子设备响应于接收到的数据查询请求,对过滤控制表进行数据信息查询操作。In the above step S101, when the electronic device performs batch data correction processing on the production table, if the user terminal sends a data query request to the electronic device, the electronic device responds to the received data query request and performs data information on the filter control table. Query operations.

其中,上述数据查询请求可以用于请求查询生产表中与第一数据信息对应的业务数据,具体地,上述数据查询请求可以是携带有上述第一数据信息的请求,且该第一数据信息可以是由用户终端根据用户的操作生成的数据信息。Wherein, the above-mentioned data query request can be used to request to query the business data corresponding to the first data information in the production table, specifically, the above-mentioned data query request can be a request carrying the above-mentioned first data information, and the first data information can be It is the data information generated by the user terminal according to the user's operation.

例如,该第一数据信息可以是在用户终端接收到用户输入的一段时间段的情况下,将该段时间段确定为第一数据信息,并通过数据查询请求携带该第一数据信息发送至上述电子设备。For example, the first data information may be when the user terminal receives a period of time input by the user, determine the period of time as the first data information, and send the first data information to the above-mentioned Electronic equipment.

在一些实施例中,用户终端可以是智能手机(Android手机、iOS手机等)、平板电脑、智能手表、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、电脑等。In some embodiments, the user terminal may be a smart phone (Android phone, iOS phone, etc.), a tablet computer, a smart watch, a handheld computer, a mobile Internet device (Mobile Internet Devices, MID), a computer, and the like.

其中,上述电子设备响应于用户终端发送接收到的数据查询请求,对过滤控制表进行数据信息查询操作,具体地,上述电子设备根据接收到的用户终端发送的数据查询请求,获取数据查询请求携带的第一数据信息,查询过滤控制表中是否存在与第一数据信息相匹配的数据信息。上述数据信息可以包括:数据所属的生产表的表名、数据标识、错误数据的处理状态等等。Wherein, the above-mentioned electronic device performs a data information query operation on the filtering control table in response to the data query request sent and received by the user terminal. Specifically, the above-mentioned electronic device obtains the the first data information, and query whether there is data information matching the first data information in the filtering control table. The above data information may include: the table name of the production table to which the data belongs, the data identifier, the processing status of the error data, and the like.

这里,获取数据查询请求携带的第一数据信息,可以是电子设备对数据查询请求进行解析获得第一数据信息。例如,数据查询请求为SQL语句,则电子设备通过对SQL语句进行解析,可以获得数据查询指令中携带的数据信息。具体的业务数据信息获取方式为现有技术,本申请不做限定,可以根据实际需要选择。Here, obtaining the first data information carried in the data query request may be that the electronic device parses the data query request to obtain the first data information. For example, if the data query request is an SQL statement, the electronic device can obtain the data information carried in the data query instruction by parsing the SQL statement. The specific acquisition method of service data information is an existing technology, which is not limited in this application and can be selected according to actual needs.

另外,上述过滤控制表可以是用于:对生产表中处于批量数据校正处理中的错误数据的数据信息进行记录。批量数据校正处理是指,针对业务数据中大数据量的错误数据进行集中校正处理。In addition, the above filtering control table may be used to: record the data information of the erroneous data in the batch data correction process in the production table. Batch data correction processing refers to centralized correction processing for large amount of error data in business data.

例如,假设生产表包括在时间段1内产生的业务数据,且时间段1包括时间段11、时间段12、……、以及时间段1N,N为大于2的整数,在时间段12以及时间段13内的业务数据为错误数据且处于批量数据校正处理中的情况下,则上述过滤控制表记录时间段12和时间段13。For example, assuming that the production table includes business data generated in time period 1, and time period 1 includes time period 11, time period 12, ..., and time period 1N, where N is an integer greater than 2, in time period 12 and time period In the case that the business data in segment 13 is error data and is in batch data correction processing, the filtering control table records time segment 12 and time segment 13.

其中,校正处理可以是将生产表中的错误数据进行处理,修正成正确数据。例如,对于用户清单数据批价错误,可以根据正确的用户数据重新计算,获得正确的数据;还可以是将录入错误的数据替换成正确的数据。Wherein, the correction processing may be to process the erroneous data in the production table and correct them into correct data. For example, for user list data approval errors, it can be recalculated based on correct user data to obtain correct data; it can also replace incorrectly entered data with correct data.

可选的,在一些实施例中,在步骤S101之前,还可以包括以下步骤:Optionally, in some embodiments, before step S101, the following steps may also be included:

在获取到生产表的情况下,确定生产表中的错误数据;In the case of obtaining the production table, determine the wrong data in the production table;

在过滤控制表中记录生产表中的错误数据的数据信息;Record the data information of the wrong data in the production table in the filter control table;

对过滤控制表中记录的数据信息对应的错误数据进行批量数据校正处理;Perform batch data correction processing on the error data corresponding to the data information recorded in the filter control table;

其中,在批量数据校正处理中,已完成校正处理的错误数据对应的校正数据缓存于缓存表中。Wherein, in the batch data correction process, the correction data corresponding to the erroneous data that has completed the correction process is cached in the cache table.

在本申请实施例中,首先确定生产表中的错误数据,获取错误数据的数据信息,在过滤控制表中记录错误数据的数据信息;然后,创建缓存表,对错误数据开始进行批量数据校正处理后,将已完成校正处理的错误数据对应的校正数据缓存于缓存表中。使用户终端查询正在批量数据校正处理中的错误数据时,可以从缓存表中获取校正数据反馈至用户终端。In the embodiment of the present application, first determine the erroneous data in the production table, obtain the data information of the erroneous data, and record the data information of the erroneous data in the filter control table; then, create a cache table, and start batch data correction processing for the erroneous data Afterwards, the corrected data corresponding to the erroneous data that has been corrected is cached in the cache table. When the user terminal queries the erroneous data in batch data correction processing, the correction data can be obtained from the cache table and fed back to the user terminal.

在一些实施例中,确定生产表中的错误数据,可以是通过人工确定,也可以是现有技术中其他确定错误数据的技术手段,本申请不作限定。In some embodiments, determining the error data in the production table may be manually determined, or other technical means for determining error data in the prior art, which is not limited in this application.

其中,上述缓存表用于在批量数据校正处理中,缓存与已完成校正处理的错误数据对应的校正数据。Wherein, the cache table is used for caching corrected data corresponding to error data that has been corrected during batch data correction processing.

例如,假设确定生产表中包括在时间段1内产生的业务数据为错误数据,且时间段1内的错误数据包括,错误数据11、错误数据12、……、以及错误数据1N,N为大于2的整数;创建缓存表,开始对时间段1内的错误数据进行批量校正处理批量数据校正处理:对错误数据11进行校正处理生成对应的校正数据11,将校正数据11存储至缓存表,然后继续处理错误数据12、……、以及错误数据1N,在批量数据校正处理过程中不断将新生成的校正数据存储至缓存表中。For example, suppose it is determined that the business data generated in the production table included in time period 1 is error data, and the error data in time period 1 includes error data 11, error data 12, ..., and error data 1N, where N is greater than An integer of 2; create a cache table, and start batch correction processing on the error data in time period 1 Batch data correction processing: perform correction processing on error data 11 to generate corresponding correction data 11, store the correction data 11 in the cache table, and then Continue to process the error data 12, .

可选的,在一些实施例中,当错误数据全部经过校正处理后,可以将过滤控制表中错误数据的数据信息和缓存表删除。Optionally, in some embodiments, after all the erroneous data has been corrected, the data information and cache table of the erroneous data in the filter control table may be deleted.

当存在多个时间段的错误数据需要批量数据校正处理时,为了实现同时对多个时间段的错误数据进行批量数据校正处理,在一些实施例中,上述对过滤控制表中记录的数据信息对应的错误数据进行批量数据校正处理,可以包括:When there are multiple time periods of erroneous data that require batch data correction processing, in order to implement batch data correction processing on multiple time period erroneous data at the same time, in some embodiments, the above-mentioned corresponding to the data information recorded in the filter control table Perform batch data correction processing on erroneous data, which can include:

确定过滤控制表中记录的数据信息包括N个时间段,其中,所述N为大于1的整数;Determine that the data information recorded in the filtering control table includes N time periods, where N is an integer greater than 1;

通过N条处理线程同时分别对与N个时间段的错误数据进行数据校正处理。Data correction processing is performed on the error data of N time periods through N processing threads at the same time.

在本申请实施例中,过滤控制表记录的数据信息可以包括批量错误数据的入库时间段,在需要对N个时间段的错误数据进行批量数据校正处理时,将这N个时间段录入过滤控制表,可以通过N条处理线程同时对与N个时间段的错误数据进行批量数据校正处理。具体的,对N个时间段的错误数据,分别创建对应的N个缓存表,可以对N个时间段的错误数据同时进行批量数据校正处理,并将错误数据经过校正处理后得到的校正数据缓存至错误数据所属的时间段对应的缓存表中。In this embodiment of the application, the data information recorded in the filter control table may include the storage time period of batch error data. When it is necessary to perform batch data correction processing on the error data of N time periods, these N time periods are entered into the filter The control table can perform batch data correction processing on the error data of N time periods through N processing threads at the same time. Specifically, for the erroneous data of N time periods, corresponding N cache tables are respectively created, batch data correction processing can be performed on the erroneous data of N time periods at the same time, and the corrected data obtained after the error data is corrected is cached to the cache table corresponding to the time period to which the error data belongs.

例如,假设生产表包括在时间段1内产生的业务数据,且时间段1包括时间段11、时间段12、……、以及时间段1N,N为大于2的整数,若过滤控制表里记录了时间段11和时间段12,针对时间段11和时间段12内的错误数据分别创建对应的缓存表11和缓存表12;同时对时间段11和时间段12内的错误数据进行批量数据校正处理;将对时间段11内的错误数据完成校正处理后对应的校正数据缓存至缓存表11,将对时间段12内的错误数据完成校正处理后对应的校正数据缓存至缓存表12。其中,可以根据错误数据的入库时间戳确定需要批量数据校正处理的错误数据的所属的时间段。For example, assuming that the production table includes business data generated in time period 1, and time period 1 includes time period 11, time period 12, ..., and time period 1N, where N is an integer greater than 2, if the records in the filter control table After time period 11 and time period 12, corresponding cache table 11 and cache table 12 are created for the error data in time period 11 and time period 12 respectively; at the same time, batch data correction is performed on the error data in time period 11 and time period 12 Processing: cache the corrected data corresponding to the error data in the time period 11 in the cache table 11 , and cache the corrected data corresponding to the error data in the time period 12 in the cache table 12 . Wherein, the time period to which the erroneous data that needs batch data correction processing belongs can be determined according to the warehousing time stamp of the erroneous data.

可选的,在一些实施例中,在一个时间段的错误数据全部经过校正处理后,将过滤控制表中该时间段的数据信息和与该时间段对应片段表删除。Optionally, in some embodiments, after all the erroneous data of a time period have been corrected, the data information of the time period and the segment table corresponding to the time period in the filter control table are deleted.

上述实施例,可以将批量数据校正处理过程中生成的错误数据的校正数据缓存至缓存表中,以便于用户终端查询正在批量数据校正处理中的错误数据时,可以从缓存表中获取校正数据反馈至用户终端。In the above embodiment, the correction data of the error data generated during the batch data correction process can be cached in the cache table, so that when the user terminal inquires about the error data that is being processed in the batch data correction process, it can obtain correction data feedback from the cache table to the user terminal.

可选的,在上述本步骤S101中对过滤控制表进行数据信息查询操作之后,还可以包括:Optionally, after the data information query operation is performed on the filter control table in the above step S101, it may also include:

在查询到过滤控制表中不存在数据信息,或者,过滤控制表中不存在与第一数据信息匹配的数据信息的情况下,将生产表中与第一数据信息对应的业务数据作为反馈数据。When it is found that there is no data information in the filter control table, or there is no data information matching the first data information in the filter control table, the business data corresponding to the first data information in the production table is used as feedback data.

在本申请实施例中,若查询到过滤控制表中不存在数据信息,则说明生产表中不存在错误数据,因此可以直接从生产表中获取请求查询的数据。若过滤控制表中不存在与第一数据信息匹配的数据信息,则说明请求查询的业务数据中不存在错误数据,因此也可以直接根据查询条件从生产表中获取业务数据。In the embodiment of the present application, if there is no data information in the filtering control table, it means that there is no wrong data in the production table, so the requested data can be obtained directly from the production table. If there is no data information matching the first data information in the filtering control table, it means that there is no wrong data in the requested business data, so the business data can also be obtained directly from the production table according to the query conditions.

在步骤S102中,在查询到过滤控制表中存在数据信息的情况下,将第一数据信息与过滤控制表中的数据信息进行匹配。In step S102, if it is found that there is data information in the filtering control table, the first data information is matched with the data information in the filtering control table.

本申请实施例中,若过滤控制表中存在数据信息则说明生产表中存在错误数据,此时将第一数据信息即请求查询的业务数据的数据信息与过滤控制表的数据信息进行匹配,通过数据信息的匹配可以判断出请求查询的业务数据中是否存在错误数据,并且确定第一数据信息中存在的错误数据的数据信息。In the embodiment of the present application, if there is data information in the filter control table, it means that there is erroneous data in the production table. At this time, the first data information, that is, the data information of the business data requested to be queried is matched with the data information of the filter control table. The matching of the data information can determine whether there is erroneous data in the requested service data, and determine the data information of the erroneous data in the first data information.

例如,假设过滤控制表中记录的正在批量数据校正处理的错误数据的数据信息是时间段1,若第一数据信息是时间段2,则说明所要查询的业务数据中没有正在校正处理的错误数据。因此可以直接从生产表中获取第一数据对应的业务数据。For example, assuming that the data information of the erroneous data being corrected in the batch data recorded in the filter control table is time period 1, if the first data information is time period 2, it means that there is no erroneous data being corrected in the business data to be queried . Therefore, the service data corresponding to the first data can be obtained directly from the production table.

可选的,在一些实施例中,若第一数据信息为目标时间段,所述方法还可以包括:Optionally, in some embodiments, if the first data information is the target time period, the method may further include:

查询所述目标时间段是否处于N个时间段内;Query whether the target time period is within N time periods;

若目标时间段中至少部分时间段处于上述N个时间段,则确定过滤控制表中存在与第一数据信息匹配的第二数据信息,第二数据信息包括:N个时间段中,与目标时间段重合的第一时间段。If at least part of the time periods in the target time period are in the above N time periods, then it is determined that there is second data information matching the first data information in the filtering control table, and the second data information includes: in the N time periods, the time period corresponding to the target time The first time period where the segments overlap.

其中,第一数据信息为目标时间段,即第一数据信息为请求查询的业务数据所属的时间段。第二数据信息是指在过滤控制表中与第一数据信息相匹配的数据信息。第一时间段是指当第一数据信息为目标时间段时,过滤控制表中记录的数据信息中与目标时间段重合的时间段。Wherein, the first data information is the target time period, that is, the first data information is the time period to which the service data requested to be queried belongs. The second data information refers to the data information that matches the first data information in the filtering control table. The first time period refers to a time period that overlaps with the target time period in the data information recorded in the filtering control table when the first data information is the target time period.

在本申请实施例中,在过滤控制表中记录了有N个时间段的错误数据正在批量数据校正处理中,若第一数据信息所属的时间段与过滤控制表中记录的N个时间段存在重合的时间段,则可以确定过滤控制表中存在与第一数据信息匹配的第二数据信息,并且重合的时间段为第二数据信息。In the embodiment of the present application, it is recorded in the filter control table that the wrong data with N time periods is being corrected in batch data, if the time period to which the first data information belongs and the N time periods recorded in the filter control table exist If the time periods overlap, it can be determined that there is second data information matching the first data information in the filtering control table, and the overlapping time periods are the second data information.

例如,假设过滤控制表中记录了正在批量数据校正处理中的错误数据的时间段为10:00-11:00和12:00-13:00,若第一数据信息为10:30-12:30,则第一数据信息与过滤控制表中记录的数据信息存在重合部分,第二数据信息为10:30-11:00和12:00-12:30。For example, assuming that the time periods during which the batch data correction process is recorded in the filtering control table are 10:00-11:00 and 12:00-13:00, if the first data information is 10:30-12: 30, the first data information overlaps with the data information recorded in the filtering control table, and the second data information is 10:30-11:00 and 12:00-12:30.

可选的,在一些实施例中,在一个时间段的错误数据开始校正处理之前,将错误数据的处理状态记录为处理中,在错误数据全部校正处理完之后,将错误数据的状态记录为已处理。若过滤控制表中的数据信息中数据处理状态为处理中,则将第一数据信息与过滤控制表中的数据信息进行匹配;若过滤控制表中的数据信息中数据处理状态为已处理,则不将第一数据信息与标记为已处理的数据信息进行匹配。Optionally, in some embodiments, before the error data of a time period starts to be corrected, the processing state of the error data is recorded as being processed, and after all the error data is corrected and processed, the state of the error data is recorded as completed. deal with. If the data processing state in the data information in the filtering control table is processing, then the first data information is matched with the data information in the filtering control table; if the data processing state in the data information in the filtering control table is processed, then The first data message is not matched with the data message marked as processed.

例如,假设确定生产表中在时间段11和时间段12内产生的业务数据为错误数据,若时间段11内的错误数据在过滤控制表中标记为已处理,时间段12内的错误数据标记为处理中,则只将第一数据信息与时间段12进行匹配。For example, suppose it is determined that the business data generated in time period 11 and time period 12 in the production table is error data, if the error data in time period 11 is marked as processed in the filter control table, the error data in time period 12 is marked as processed. If it is not being processed, then only the first data information is matched with the time period 12 .

在上述实施例中将第一数据信息与的过滤控制表中记录的数据信息进行匹配可以确定第二数据信息。In the above embodiment, matching the first data information with the data information recorded in the filter control table can determine the second data information.

在步骤S103中,在过滤控制表中存在与第一数据信息匹配的第二数据信息的情况下,若缓存表中缓存有与第二数据信息对应的校正数据,则获取校正数据,第二数据信息为第一数据信息的部分或者全部。In step S103, if there is second data information matching the first data information in the filter control table, if the correction data corresponding to the second data information is cached in the cache table, the correction data is obtained, and the second data information is The information is part or all of the first data information.

其中,第二数据信息为第一数据信息的部分或者全部,即第二数据信息为第一数据信息的部分数据信息的情况是指:请求查询的业务数据只有部分数据是属于过滤控制表中记录的批量校正处理中的错误数据。第二数据为第一数据信息的全部的数据信息的情况是指:请求查询的业务数据全部是属于过滤控制表中记录的批量数据校正处理中的错误数据。Wherein, the second data information is part or all of the first data information, that is, the case where the second data information is part of the first data information refers to: only part of the business data requested to be queried belongs to the records in the filtering control table erroneous data in batch correction processing. The situation that the second data is all the data information of the first data information means that all the business data requested for query are error data in the batch data correction process recorded in the filtering control table.

例如,过滤控制表中记录的数据信息是正在批量数据校正处理中的错误数据的时间段为10:00-11:00,若第一数据信息为10:30-10:50,则第二数据信息为10:30-10:50:00,从缓存表中获取与第二数据信息对应的业务数据;若第一数据信息为10:30-12:30,则第二数据信息为10:30-11:00。For example, the time period for the data information recorded in the filtering control table is 10:00-11:00 for error data in batch data correction processing, if the first data information is 10:30-10:50, then the second data information The information is 10:30-10:50:00, and the service data corresponding to the second data information is obtained from the cache table; if the first data information is 10:30-12:30, the second data information is 10:30 -11:00.

本申请实施例中,电子设备可以根据在步骤S102中确定的第二数据信息,判断若缓存表中缓存有与第二数据信息对应的校正数据,则获取校正数据,具体的,电子设备通过将第一数据信息与过滤控制表记录的数据信息匹配,获得第二数据信息,根据第二数据信息判断缓存表中是否存在与第二数据信息对应的校正数据,若缓存表中存在与第二数据信息对应的校正数据,从缓存表中获取与第二数据信息对应的校正数据。In this embodiment of the present application, the electronic device may determine, based on the second data information determined in step S102, that if there is correction data corresponding to the second data information cached in the cache table, then obtain the correction data. Specifically, the electronic device obtains the correction data by setting The first data information is matched with the data information recorded in the filter control table to obtain the second data information, and judge whether there is correction data corresponding to the second data information in the cache table according to the second data information, if there is correction data corresponding to the second data information in the cache table The correction data corresponding to the information is obtained from the buffer table and the correction data corresponding to the second data information.

例如,假设过滤控制表中记录了正在批量数据校正处理中的错误数据所属的时间段为9:00-10:00,在处理过程中对应的缓存表中存储了9:00-9:30内错误数据对应的校正数据,若第二数据信息为9:00-9:10,则从缓存表中获取9:00-9:10内的校正数据。For example, assuming that the filtering control table records that the time period of the erroneous data being processed in the batch data correction process is 9:00-10:00, the corresponding cache table stores the time period between 9:00-9:30 during the processing. For the correction data corresponding to the erroneous data, if the second data information is 9:00-9:10, the correction data within 9:00-9:10 is obtained from the cache table.

在步骤S104中,基于校正数据,生成用于向用户终端发送的反馈数据;其中,若缓存表中未缓存有与第二数据信息对应的校正数据,则不向用户终端发送业务数据。In step S104, based on the correction data, feedback data for sending to the user terminal is generated; wherein, if the correction data corresponding to the second data information is not cached in the cache table, no service data is sent to the user terminal.

其中,基于校正数据,生成用于向用户终端发送的反馈数据,即电子设备根据在步骤S103中获取的校正数据,生成发送至用户终端的反馈数据,用户终端在接收到反馈数据后,在用户终端显示反馈数据。Wherein, based on the correction data, the feedback data for sending to the user terminal is generated, that is, the electronic device generates the feedback data to be sent to the user terminal according to the correction data acquired in step S103, and the user terminal, after receiving the feedback data, the user The terminal displays the feedback data.

在一些实施例中,若缓存表中未缓存与第二数据信息对应的校正数据,则说明请求访问的与第二数据信息对应的业务数据是还没有经过校正处理的错误数据,此时将不向用户终端发送与第二数据信息对应的业务数据。In some embodiments, if the corrected data corresponding to the second data information is not cached in the cache table, it means that the service data corresponding to the second data information requested for access is erroneous data that has not been corrected. Send the service data corresponding to the second data information to the user terminal.

例如,假设过滤控制表中记录了正在批量数据校正处理中的错误数据所属的时间段为9:00-10:00,在处理过程中对应的缓存表中存储了9:00-9:30内错误数据对应的校正数据,若第二数据信息为9:40-9:50,此时缓存表中没有缓存9:40-9:50对应的校正数据,则不将第二数据信息对应的业务数据反馈给用户终端。For example, assuming that the filtering control table records that the time period of the erroneous data being processed in the batch data correction process is 9:00-10:00, the corresponding cache table stores the time period between 9:00-9:30 during the processing. For the correction data corresponding to the error data, if the second data information is 9:40-9:50, and the correction data corresponding to 9:40-9:50 is not cached in the cache table at this time, the service corresponding to the second data information will not be The data is fed back to the user terminal.

在一些实施例中,在第二数据信息为第一数据信息的全部数据信息的情况下,直接从缓存表中获取第二数据信息对应的校正数据,根据获得的校正数据生成反馈数据。In some embodiments, when the second data information is all data information of the first data information, the correction data corresponding to the second data information is directly obtained from the buffer table, and the feedback data is generated according to the obtained correction data.

在一些实施例中,在第二数据信息为第一数据信息的部分数据信息的情况下从缓存表中获取第二数据信息对应的校正数据,从生产表中获取第一数据信息中除了第二数据信息以外的其他数据信息对应的业务数据,将获得的校正数据和业务数据合并生成反馈数据。In some embodiments, when the second data information is part of the first data information, the correction data corresponding to the second data information is obtained from the cache table, and the correction data corresponding to the second data information is obtained from the production table except the second For business data corresponding to data information other than data information, the obtained correction data and business data are combined to generate feedback data.

可选的,第一时间段为目标时间段位于N个时间段内的部分时间段,且校正数据包括缓存表中位于第一时间段的业务数据;Optionally, the first time period is a part of the target time period within the N time periods, and the correction data includes the service data in the cache table located in the first time period;

将第一数据信息与过滤控制表中的数据信息进行匹配之后,还可以包括:After matching the first data information with the data information in the filtering control table, it may further include:

获取生产表中位于第二时间段内的业务数据,其中,第二时间段为目标时间段中除第一时间段之外的时间段;Obtain the business data in the production table within the second time period, where the second time period is a time period other than the first time period in the target time period;

基于校正数据,生成用于向用户终端发送的反馈数据,包括:将校正数据以及与位于第二时间段内的业务数据合并,形成用于向用户终端发送的反馈数据。Based on the correction data, generating feedback data for sending to the user terminal includes: combining the correction data and service data within the second time period to form feedback data for sending to the user terminal.

在本申请实施例中,在第一时间段为目标时间段位于N个时间段内的部分时间段,且校正数据包括缓存表中位于第一时间段的业务数据的情况下,从缓存表中获取位于第一时间段内的校正数据,从生产表中获取位于第二时间段内的业务数据,然后将校正数据以及与位于第二时间段内的业务数据合并,生成用于向用户终端发送的反馈数据。In the embodiment of the present application, when the first time period is a part of the target time period within N time periods, and the correction data includes the service data in the first time period in the cache table, from the cache table Obtain the correction data in the first time period, obtain the business data in the second time period from the production table, and then combine the correction data and the business data in the second time period to generate a feedback data.

其中,第一时间段为目标时间段位于N个时间段内的部分时间段,是指请求查询的业务数据所属的时间段与过滤控制表中记录的N个时间段重合部分的时间段。第二时间段为目标时间段中除第一时间段之外的时间段是指请求查询的业务数据所属的时间段中不与过滤控制表中Wherein, the first time period is a part of the time period in which the target time period is located within the N time periods, and refers to the time period in which the time period to which the requested service data belongs overlaps with the N time periods recorded in the filtering control table. The second time period is the time period other than the first time period in the target time period, which means that the time period to which the business data requested to be queried belongs is not the same as that in the filter control table

例如,假设过滤控制表中记录了正在批量数据校正处理中的错误数据的时间段为10:00-11:00和12:00-13:00,若目标时间段(即第一数据信息)为10:30-12:30,则目标时间段与过滤控制表中记录的数据信息存在重合部分,第一时间段(即第二数据信息)为10:30-11:00和12:00-12:30;第二时间段为11:00-12:00,则从缓存表中获取10:30-11:00和12:00-12:30对应的校正数据,从生产表中获取与11:00-12:00对应的业务数据,然后将校正数据以及业务数据合并,生成用于向用户终端发送的反馈数据。For example, assuming that the time period for recording the error data in the batch data correction process in the filtering control table is 10:00-11:00 and 12:00-13:00, if the target time period (i.e. the first data information) is 10:30-12:30, the target time period overlaps with the data information recorded in the filter control table, and the first time period (that is, the second data information) is 10:30-11:00 and 12:00-12 :30; the second time period is 11:00-12:00, then obtain the correction data corresponding to 10:30-11:00 and 12:00-12:30 from the cache table, and obtain the data corresponding to 11:00 from the production table service data corresponding to 00-12:00, and then combine the correction data and service data to generate feedback data for sending to the user terminal.

在本实施例中,电子设备在接收到用户终端发送的查询请求中既包含了正在进行批量数据校正处理的错误数据也包含了不需要进行批量数据校正处理的业务数据的情况下,从缓存表中获取错诶数据经过校正处理后的校正数据,从生产表中获取不需要进行批量数据校正处理的业务数据,从而实现将错误数据过滤,只反馈给用户终端正确的数据。In this embodiment, when the electronic device receives the query request sent by the user terminal that contains both erroneous data that is undergoing batch data correction processing and business data that does not need batch data correction processing, Obtain the corrected data after correcting the wrong data, and obtain the business data that does not require batch data correction processing from the production table, so as to filter the wrong data and only feed back the correct data to the user terminal.

以上为本申请实施例提供的数据确定方法的具体实现方式,可以在电子设备对错误数据进行批量数据校正处理的过程中,创建缓存表缓存对错误数据校正处理后的校正数据,通过过滤控制表判断出用户终端请求查询的业务数据是否是正在校正处理中的错误数据,若请求查询的数据是正在校正处理的错误数据,则通过缓存表获取校正数据反馈至用户终端。避免了在长时间的批量错误数据处理期间,将错误数据反馈至用户终端。The above is the specific implementation of the data determination method provided by the embodiment of the present application. During the batch data correction process of the error data by the electronic device, a cache table can be created to cache the correction data after the error data correction process, and the filter control table can It is determined whether the service data requested by the user terminal is error data being corrected and processed, and if the requested query data is error data being corrected, the corrected data is obtained through the cache table and fed back to the user terminal. It avoids feeding back the wrong data to the user terminal during the long period of batch wrong data processing.

另外,在批量数据校正处理过程中,不断将已完成校正处理的错误数据对应的校正数据缓存至缓存表中,直至错误数据处理完毕,所以用户终端可以在多次业务数据查询过程中,获取到不断更新的反馈数据。因此本申请的技术方案还可以实时监控到错误数据的处理情况。In addition, during the batch data correction process, the correction data corresponding to the error data that has been corrected is continuously cached in the cache table until the error data is processed, so the user terminal can obtain the Constantly updated feedback data. Therefore, the technical solution of the present application can also monitor the processing of error data in real time.

为了方便理解,下面以N等于1为例来进行说明。For the convenience of understanding, the description below takes N equal to 1 as an example.

在一些实施例中,如图2所示,以N=1为例,即当需要处理的错误数据为一个时间段内的数据。可以通过以下步骤来实现本申请技术方案:In some embodiments, as shown in FIG. 2 , taking N=1 as an example, that is, when the error data to be processed is data within a time period. The technical solution of this application can be realized through the following steps:

步骤21、问题数据处理开始时,数据处理程序在过滤控制表中插入一条控制信息,标识某类原始生产表中的某个区间段数据(通过入库时间戳标识)为错误数据,需要批量处理(即在过滤控制表中记录生产表中的错误数据的数据信息),期间相关数据的查询指向片段表(即对于请求查询正在批量数据处理的数据,从缓存表中获取处理后的校正数据),在完成批量数据处理后,修改过滤控制表对应记录为处理完成,通知查询展示程序无需过滤控制(即过滤控制表中不存在与第一数据信息匹配的数据信息的情况下,将生产表中与第一数据信息对应的业务数据作为反馈数据)。Step 21. When the problem data processing starts, the data processing program inserts a piece of control information into the filter control table, identifying a certain range of data in a certain type of original production table (identified by the storage time stamp) as error data, which needs to be processed in batches (that is, record the data information of the wrong data in the production table in the filter control table), and the query of the relevant data during the period points to the fragment table (that is, for the data that is being processed in batch data, the processed correction data is obtained from the cache table) , after the batch data processing is completed, modify the corresponding record in the filter control table as processing completed, and notify the query display program that no filter control is required (that is, if there is no data information matching the first data information in the filter control table, the The service data corresponding to the first data information is used as the feedback data).

步骤22、问题数据处理程序开始删除原始生产表中的问题数据,生成新的正确数据,并写入到原始生产表中(即对错误数据进行校正处理)。Step 22, the problem data processing program starts to delete the problem data in the original production table, generates new correct data, and writes it into the original production table (that is, corrects the wrong data).

步骤23、将新生成的正确数据写入片段表中(即在批量数据校正处理中,与已完成校正处理的错误数据对应的校正数据缓存至缓存表)。Step 23. Write the newly generated correct data into the segment table (that is, in the batch data correction process, the corrected data corresponding to the corrected error data is cached in the cache table).

步骤24、查询展示程序在接收前端用户请求后,先检查用户相关请求数据覆盖的区间是否落在过滤控制表中的时间区段(即响应于用户终端发送的数据查询请求,对过滤控制表进行数据信息查询操作)。Step 24, after receiving the front-end user request, the query display program first checks whether the interval covered by the user-related request data falls within the time zone in the filter control table (that is, in response to the data query request sent by the user terminal, the filter control table is processed data information query operation).

步骤25、若用户相关请求数据覆盖的区间落在过滤控制表中的时间区段之外,直接查询生产表返回(即过滤控制表中不存在与第一数据信息匹配的数据信息的情况下,将生产表中与第一数据信息对应的业务数据作为反馈数据)。Step 25. If the interval covered by the user-related request data falls outside the time zone in the filter control table, directly query the production table and return (that is, if there is no data information matching the first data information in the filter control table, The business data corresponding to the first data information in the production table is used as the feedback data).

步骤26、若用户相关请求数据覆盖的区间全部落在过滤控制表中的时间区段,则直接查询片段表返回(即在过滤控制表中存在与第一数据信息匹配的第二数据信息的情况下,若缓存表中缓存有与第二数据信息对应的校正数据,则获取所述校正数据)。Step 26. If the intervals covered by the user-related request data all fall within the time zone in the filter control table, then directly query the segment table and return (that is, there is a second data information matching the first data information in the filter control table Next, if the correction data corresponding to the second data information is cached in the cache table, the correction data is acquired).

步骤27、若用户相关请求数据覆盖的区间跨越了过滤控制表中的时间区段,则需要将用户的查询分成两部分,过滤区间段内的查询片段表,过滤区间段外的查询原始生产表,并将两个查询结果集进行合并返回用户(即获取缓存表中位于所述第一时间段的业务数据和生产表中位于所述第二时间段内的业务数据,将校正数据以及与位于第二时间段内的业务数据合并,形成用于向用户终端发送的反馈数据)。Step 27. If the interval covered by the user-related request data spans the time segment in the filter control table, the user query needs to be divided into two parts, filter the query fragment table within the interval segment, and filter the query original production table outside the interval segment , and combine the two query result sets to return to the user (that is, obtain the business data in the first time period in the cache table and the business data in the second time period in the production table, and combine the correction data and the The service data in the second time period are combined to form feedback data for sending to the user terminal).

当N采用其他值时,与上述N等于1时,采用相同的实施方式,为了简要起见,在此不再详细阐述。When N adopts other values, the same implementation manner as when N is equal to 1 is adopted, and for the sake of brevity, no detailed description is given here.

在一些实施例中,具体的错误数据处理过程可以由错误数据处理程序实现,错误数据处理程序主要实现在开始进行批量数据校正处理时,在过滤控制表中插入过滤控制记录,初始化片段表(即缓存表),同时把新的校正数据插入到生产表和片段表中,在批量数据校正处理完成后,更改过滤控制表对应记录状态标识。In some embodiments, the specific error data processing process can be realized by the error data processing program, and the error data processing program mainly realizes that when the batch data correction process is started, the filter control record is inserted in the filter control table, and the fragment table is initialized (i.e. cache table), and insert new correction data into the production table and fragment table at the same time, after the batch data correction processing is completed, change the corresponding record status identifier of the filter control table.

过滤控制表、生产表和片段表根据实际情况设计,本申请可以应用于类似话单存储类的静态数据表,关系数据库表示例,如表1、表2所示,表1为过滤控制数据库表,表2为生产表和片段表的信息结构:The filter control table, production table and segment table are designed according to the actual situation. This application can be applied to static data tables similar to bill storage, and relational database tables, as shown in Table 1 and Table 2. Table 1 is the filter control database table , Table 2 is the information structure of the production table and fragment table:

Figure BDA0003138999970000151
Figure BDA0003138999970000151

表1Table 1

Figure BDA0003138999970000152
Figure BDA0003138999970000152

Figure BDA0003138999970000161
Figure BDA0003138999970000161

表2Table 2

在一些实施例中,批量数据校正处理过程如图3所示,可以包括以下步骤:In some embodiments, the batch data correction processing process is shown in Figure 3, and may include the following steps:

步骤31、读取配置信息,得到要处理的生产表信息和需要处理的问题数据的数据信息(即在获取到生产表的情况下,确定生产表中的错误数据)。Step 31, read the configuration information, obtain the production table information to be processed and the data information of the problem data to be processed (that is, determine the wrong data in the production table when the production table is obtained).

步骤32、向过滤控制表中插入控制信息,标识生产表中需要到片段表查询的数据(即将问题数据的数据信息录入过滤控制表),同时将该条控制信息状态置为1,表示问题数据处理中。Step 32, insert control information into the filter control table, identify the data that needs to be queried in the fragment table in the production table (i.e. input the data information of the problem data into the filter control table), and set the state of the control information to 1 at the same time, indicating the problem data Processing.

步骤33、将正确信息入库到生产表和片段表,同时删除生产表中的错误信息(即对过滤控制表中记录的数据信息对应的错误数据进行批量数据校正处理,已完成校正处理的错误数据对应的校正数据缓存于缓存表中)。Step 33, store the correct information into the production table and the segment table, and delete the error information in the production table at the same time (that is, perform batch data correction processing on the error data corresponding to the data information recorded in the filter control table, and complete the error correction processing. The correction data corresponding to the data is cached in the cache table).

步骤34、判断问题数据是否处理完毕。若问题数据没有处理完毕,返回步骤3,若问题数据处理完毕,转到步骤35。Step 34, judging whether the problem data has been processed. If the problem data has not been processed, return to step 3; if the problem data has been processed, go to step 35.

步骤35、更改过滤控制表状态为0,表示问题数据处理完毕。Step 35. Change the status of the filter control table to 0, indicating that the problem data has been processed.

在一些实施例中,数据的具体查询展示过程可以通过查询展示程序实现,查询展示程序在收到用户的查询请求后,检查用户相关请求数据覆盖的区间是否落在过滤控制表中的时间区段,如果全在区间内,则直接查询片段表返回,如果在区间外,直接查询生产表返回,如果跨越了区间,如图4所示,则需要将用户的查询分成两部分,过滤区间段内的查询片段表,过滤区间段外的查询原始生产表,并将两个查询结果集进行合并返回用户,即,需要把用户的查询分成两段,上半段查询生产表,下半段查询片段表。In some embodiments, the specific query display process of the data can be realized by the query display program. After receiving the query request from the user, the query display program checks whether the interval covered by the user-related request data falls within the time segment in the filter control table , if it is all within the range, then directly query the segment table to return, if it is outside the range, directly query the production table to return, if it spans the range, as shown in Figure 4, you need to divide the user's query into two parts, and filter the range query fragment table, filter the query original production table outside the interval, and combine the two query result sets to return to the user, that is, the user's query needs to be divided into two segments, the first half queries the production table, and the second half queries the fragments surface.

在一些实施例中,具体的查询展示过程如图5所示,可以包括以下步骤:In some embodiments, the specific query presentation process is shown in Figure 5, which may include the following steps:

步骤51、收到查询请求后,查询过滤控制表是否有状态为1的过滤控制信息(即响应于用户终端发送的数据查询请求,对过滤控制表进行数据信息查询操作);若否,直接按条件查询生产表信息并给前台返回查询结果;若是,转到步骤52。Step 51, after receiving the query request, check whether the filtering control table has filtering control information with a state of 1 (that is, in response to the data query request sent by the user terminal, perform a data information query operation on the filtering control table); if not, directly press Query the production table information by condition and return the query result to the front desk; if yes, go to step 52.

步骤52,判断前台查询数据是否全在过滤区间内(即对过滤控制表进行数据信息查询操作);若是,直接到片段表中查询数据并返回结果(在过滤控制表中存在与第一数据信息匹配的第二数据信息的情况下,若缓存表中缓存有与第二数据信息对应的校正数据,则获取校正数据);若否,转到步骤53。Step 52, judge whether the foreground query data is all in the filter interval (i.e. carry out the data information query operation to the filter control table); In the case of matching second data information, if the correction data corresponding to the second data information is cached in the cache table, the correction data is obtained); if not, go to step 53.

步骤53,判断前台查询数据是否全在过滤区间外(即对过滤控制表进行数据信息查询操作);若是,直接查询生产表信息并给前台返回查询结果(即过滤控制表中不存在与第一数据信息匹配的数据信息的情况下,将生产表中与第一数据信息对应的业务数据作为反馈数据);若否,则将用户的查询分成两部分,过滤区间段内的查询片段表,过滤区间段外的查询原始生产表,并将两个查询结果集进行和合并并返回用户(即将第一时间段对应的校正数据以及与位于第二时间段内的业务数据合并,形成用于向用户终端发送的反馈数据)。Step 53, judge whether the foreground query data is all outside the filter interval (i.e. carry out the data information query operation to the filter control table); In the case of the data information matching the data information, the business data corresponding to the first data information in the production table is used as the feedback data); if not, the user's query is divided into two parts, and the query fragment table in the filtering interval segment is filtered, and the Query the original production table outside the interval, and combine the two query result sets and return to the user (that is, the correction data corresponding to the first time period and the business data in the second time period are merged to form a Feedback data sent by the terminal).

基于上述实施例提供的数据确定方法,相应地,本申请还提供了数据确定装置的具体实现方式。请参见以下实施例。Based on the data determination method provided in the foregoing embodiments, correspondingly, the present application also provides a specific implementation manner of a data determination device. See the examples below.

请参见图6,是本申请实施例提供的一种数据确定装置,如图6所示,装置包括:Please refer to FIG. 6, which is a data determination device provided by the embodiment of the present application. As shown in FIG. 6, the device includes:

查询模块601,用于响应于用户终端发送的数据查询请求,对过滤控制表进行数据信息查询操作,数据查询请求用于请求查询生产表中与第一数据信息对应的业务数据,过滤控制表用于:对生产表中处于批量数据校正处理中的错误数据的数据信息进行记录;The query module 601 is configured to perform a data information query operation on the filter control table in response to the data query request sent by the user terminal. The data query request is used to request to query the business data corresponding to the first data information in the production table, and the filter control table uses To: record the data information of the wrong data in the batch data correction process in the production table;

匹配模块602,用于在查询到过滤控制表中存在数据信息的情况下,将第一数据信息与过滤控制表中的数据信息进行匹配;A matching module 602, configured to match the first data information with the data information in the filtering control table when it is found that there is data information in the filtering control table;

第一获取模块603,用于在过滤控制表中存在与第一数据信息匹配的第二数据信息的情况下,若缓存表中缓存有与第二数据信息对应的校正数据,则获取校正数据,第二数据信息为第一数据信息的部分或者全部,缓存表用于:在批量数据校正处理中,缓存与已完成校正处理的错误数据对应的校正数据;The first acquisition module 603 is configured to acquire the correction data if there is correction data corresponding to the second data information cached in the cache table when there is second data information matching the first data information in the filtering control table, The second data information is a part or all of the first data information, and the cache table is used for: in the batch data correction process, cache the corrected data corresponding to the erroneous data that has been corrected;

生成模块604,用于基于校正数据,生成用于向用户终端发送的反馈数据;A generating module 604, configured to generate feedback data for sending to the user terminal based on the correction data;

其中,若缓存表中未缓存有与第二数据信息对应的校正数据,则不向用户终端发送业务数据。Wherein, if the correction data corresponding to the second data information is not cached in the cache table, no service data is sent to the user terminal.

本申请实施例提供的数据确定装置可以在对错误数据进行批量数据校正处理的过程中,创建缓存表缓存对错误数据校正处理后的校正数据,通过过滤控制表判断出用户终端请求查询的业务数据是否是正在校正处理中的错误数据,若请求查询的数据是正在校正处理的错误数据,则通过缓存表获取错误数据对应的校正数据反馈至用户终端;而若请求查询的数据是未完成校正处理的错误数据,则不向用户终端发送业务数据。因此,在错误数据批量校正处理期间,对于错误数据的访问可以从缓存表中获取校正数据反馈至用户终端进行展示,解决了因向用户展示错误数据而导致业务服务平台的投诉率高的技术问题。The data determination device provided by the embodiment of the present application can create a cache table to cache the corrected data after correcting the wrong data in the process of correcting the wrong data in batches, and judge the service data requested by the user terminal through the filtering control table Whether it is error data that is being corrected or not, if the requested query data is error data that is being corrected and processed, the correction data corresponding to the error data will be obtained through the cache table and fed back to the user terminal; and if the requested query data is not completed the correction process erroneous data, the service data will not be sent to the user terminal. Therefore, during the error data batch correction process, the access to the error data can obtain the correction data from the cache table and feed it back to the user terminal for display, which solves the technical problem of high complaint rate on the business service platform due to displaying error data to users .

可选地,响应于用户终端发送的数据查询请求,上述装置,还可以包括:Optionally, in response to the data query request sent by the user terminal, the above device may further include:

确定模块,用于在获取到生产表的情况下,确定生产表中的错误数据;A determination module is used to determine the error data in the production table when the production table is obtained;

控制模块,用于在过滤控制表中记录生产表中的错误数据的数据信息;The control module is used to record the data information of the erroneous data in the production table in the filter control table;

校正模块,用于对过滤控制表中记录的数据信息对应的错误数据进行批量数据校正处理;A correction module, configured to perform batch data correction processing on erroneous data corresponding to the data information recorded in the filter control table;

缓存模块,用于在批量数据校正处理中,已完成校正处理的错误数据对应的校正数据缓存于缓存表中。The caching module is used for caching the corrected data corresponding to the erroneous data that has completed the correction process in the cache table during the batch data correction process.

上述装置可以将批量数据校正处理过程中生成的错误数据的校正数据存储至缓存表中,以便于用户终端查询正在批量数据校正处理中的错误数据时,可以从缓存表中获取校正数据反馈至用户终端。The above device can store the correction data of the error data generated during the batch data correction process into the cache table, so that when the user terminal inquires about the error data that is being processed in the batch data correction process, the correction data can be obtained from the cache table and fed back to the user terminal.

可选地,上述校正模块,可以包括:Optionally, the above-mentioned correction module may include:

确定单元,用于确定过滤控制表中记录的数据信息包括N个时间段,其中,N为大于1的整数;A determining unit, configured to determine that the data information recorded in the filtering control table includes N time periods, where N is an integer greater than 1;

校正子单元,用于通过N条处理线程同时分别对与N个时间段的错误数据进行数据校正处理。The corrector unit is configured to perform data correction processing on the erroneous data of N time periods respectively through N processing threads at the same time.

上述装置可以实现对多个时间段的错误数据同时进行批量数据校正处理。The above device can implement batch data correction processing on error data in multiple time periods at the same time.

可选地,第一数据信息为目标时间段;上述装置还包括:Optionally, the first data information is a target time period; the above device also includes:

判断模块,用于查询目标时间段是否处于N个时间段内;A judging module, configured to inquire whether the target time period is within N time periods;

匹配结果确定模块,用于若目标时间段中至少部分时间段处于N个时间段,则确定过滤控制表中存在与第一数据信息匹配的第二数据信息,第二数据信息包括:N个时间段中,与目标时间段重合的第一时间段。A matching result determination module, configured to determine that there is second data information matching the first data information in the filter control table if at least part of the time period in the target time period is in N time periods, and the second data information includes: N time periods segment, the first time segment that coincides with the target time segment.

上述装置可以在过滤控制表中记录了N个时间段正在批量数据校正处理中的错误数据的数据信息的情况下,确定请求查询的业务数据与过滤控制表中的数据信息相匹配的数据信息。The above device can determine the data information that the business data requested to query matches the data information in the filter control table when the data information of the wrong data in the batch data correction process is recorded in the filter control table for N time periods.

可选地,第一时间段为目标时间段位于N个时间段内的部分时间段,且校正数据包括缓存表中位于第一时间段的业务数据,上述装置,还可以包括:Optionally, the first time period is a part of the time period in which the target time period is within the N time periods, and the correction data includes the service data in the first time period in the cache table. The above-mentioned device may also include:

第二获取模块,用于获取生产表中位于第二时间段内的业务数据,其中,第二时间段为目标时间段中除第一时间段之外的时间段;The second acquiring module is used to acquire the business data in the production table within the second time period, wherein the second time period is a time period other than the first time period in the target time period;

上述生成模块604,具体用于基于所述校正数据,生成用于向用户终端发送的反馈数据,包括:The above generation module 604 is specifically configured to generate feedback data for sending to the user terminal based on the correction data, including:

将校正数据以及与位于第二时间段内的业务数据合并,形成用于向用户终端发送的反馈数据。The correction data and the service data within the second time period are combined to form feedback data for sending to the user terminal.

上述装置可以在查询的业务数据即包括了批量数据校正处理中的错误数据也包括了批量数据校正处理中的错误数据以外的其他业务数据的情况下,从缓存表中获取错误数据对应的校正数据,从生产表中获取其他数据,从而实现将错误数据过滤,只在用户终端展示正确的数据。The above device can obtain the correction data corresponding to the error data from the cache table when the business data queried includes both the error data in the batch data correction process and other business data other than the error data in the batch data correction process , to obtain other data from the production table, so as to filter the wrong data and only display the correct data on the user terminal.

可选地,上述生成模块604,还可以用于:对过滤控制表进行数据信息查询操作之后,在查询到过滤控制表中不存在数据信息,或者,过滤控制表中不存在与第一数据信息匹配的数据信息的情况下,将生产表中与第一数据信息对应的业务数据作为反馈数据。Optionally, the above generating module 604 may also be used for: after performing data information query operation on the filter control table, it is found that there is no data information in the filter control table, or there is no data information related to the first data information in the filter control table. In the case of matching data information, the business data corresponding to the first data information in the production table is used as the feedback data.

需要说明的是,该数据确定装置是与上述数据确定方法对应的装置,上述方法实施例中所有实现方式均适用于该装置的实施例中,也能达到相同的技术效果。It should be noted that the device for determining data is a device corresponding to the method for determining data above, and all implementations in the above method embodiments are applicable to the embodiments of the device, and can also achieve the same technical effect.

图7示出了本申请实施例提供的电子设备的硬件结构示意图。FIG. 7 shows a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.

在电子设备可以包括处理器701以及存储有计算机程序指令的存储器702。The electronic device may include a processor 701 and a memory 702 storing computer program instructions.

具体地,上述处理器701可以包括中央处理器(CPU),或者特定集成电路(Application Specific Integrated Circuit,ASIC),或者可以被配置成实施本申请实施例的一个或多个集成电路。Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement one or more integrated circuits in the embodiments of the present application.

存储器702可以包括用于数据或指令的大容量存储器。举例来说而非限制,存储器702可包括硬盘驱动器(Hard Disk Drive,HDD)、软盘驱动器、闪存、光盘、磁光盘、磁带或通用串行总线(Universal Serial Bus,USB)驱动器或者两个或更多个以上这些的组合。在合适的情况下,存储器702可包括可移除或不可移除(或固定)的介质。在合适的情况下,存储器702可在综合网关容灾设备的内部或外部。在特定实施例中,存储器702是非易失性固态存储器。Memory 702 may include mass storage for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (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 (Universal Serial Bus, USB) drive or two or more Combinations of multiple of the above. Storage 702 may include removable or non-removable (or fixed) media, where appropriate. Under appropriate circumstances, the storage 702 can be inside or outside the comprehensive gateway disaster recovery device. In a particular embodiment, memory 702 is a non-volatile solid-state memory.

存储器可包括只读存储器(ROM),随机存取存储器(RAM),磁盘存储介质设备,光存储介质设备,闪存设备,电气、光学或其他物理/有形的存储器存储设备。因此,通常,存储器包括一个或多个编码有包括计算机可执行指令的软件的有形(非暂态)计算机可读存储介质(例如,存储器设备),并且当该软件被执行(例如,由一个或多个处理器)时,其可操作来执行参考根据本公开的方法所描述的操作。Memory may include read only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical, or other physical/tangible memory storage devices. Thus, in general, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software comprising computer-executable instructions, and when the software is executed (e.g., by one or multiple processors) operable to perform the operations described with reference to the method according to the present disclosure.

处理器701通过读取并执行存储器702中存储的计算机程序指令,以实现上述实施例中的任意一种数据确定方法。The processor 701 reads and executes the computer program instructions stored in the memory 702 to implement any one of the data determination methods in the foregoing embodiments.

在一个示例中,电子设备还可包括通信接口703和总线704。其中,如图7所示,处理器701、存储器702、通信接口703通过总线704连接并完成相互间的通信。In an example, the electronic device may further include a communication interface 703 and a bus 704 . Wherein, as shown in FIG. 7 , a processor 701 , a memory 702 , and a communication interface 703 are connected through a bus 704 to complete mutual communication.

通信接口703,主要用于实现本申请实施例中各模块、装置、单元和/或设备之间的通信。The communication interface 703 is mainly used to realize the communication between various modules, devices, units and/or devices in the embodiments of the present application.

总线704包括硬件、软件或两者,将在线数据流量计费设备的部件彼此耦接在一起。举例来说而非限制,总线可包括加速图形端口(AGP)或其他图形总线、增强工业标准架构(EISA)总线、前端总线(FSB)、超传输(HT)互连、工业标准架构(ISA)总线、无限带宽互连、低引脚数(LPC)总线、存储器总线、微信道架构(MCA)总线、外围组件互连(PCI)总线、PCI-Express(PCI-X)总线、串行高级技术附件(SATA)总线、视频电子标准协会局部(VLB)总线或其他合适的总线或者两个或更多个以上这些的组合。在合适的情况下,总线704可包括一个或多个总线。尽管本申请实施例描述和示出了特定的总线,但本申请考虑任何合适的总线或互连。The bus 704 includes hardware, software or both, and couples the components of the online data traffic charging device to each other. By way of example and not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), HyperTransport (HT) interconnect, Industry Standard Architecture (ISA) Bus, Infiniband Interconnect, Low Pin Count (LPC) Bus, Memory Bus, Micro Channel Architecture (MCA) Bus, Peripheral Component Interconnect (PCI) Bus, PCI-Express (PCI-X) Bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or a combination of two or more of these. Bus 704 may comprise one or more buses, where appropriate. Although the embodiments of this application describe and illustrate a particular bus, this application contemplates any suitable bus or interconnect.

另外,结合上述实施例中的数据确定方法,本申请实施例可提供一种计算机存储介质来实现。该计算机存储介质上存储有计算机程序指令;该计算机程序指令被处理器执行时实现上述实施例中的任意一种数据确定方法。In addition, in combination with the data determining method in the foregoing embodiments, the embodiments of the present application may provide a computer storage medium for implementation. Computer program instructions are stored on the computer storage medium; when the computer program instructions are executed by a processor, any one of the data determination methods in the foregoing embodiments is implemented.

需要明确的是,本申请并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本申请的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本申请的精神后,作出各种改变、修改和添加,或者改变步骤之间的顺序。It is to be understood that the application is not limited to the specific configurations and processes described above and shown in the figures. For conciseness, detailed descriptions of known methods are 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 may make various changes, modifications and additions, or change the order of the steps after understanding the spirit of the present application.

以上的结构框图中所示的功能块可以实现为硬件、软件、固件或者它们的组合。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本申请的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。“机器可读介质”可以包括能够存储或传输信息的任何介质。机器可读介质的例子包括电子电路、半导体存储器设备、ROM、闪存、可擦除ROM(EROM)、软盘、CD-ROM、光盘、硬盘、光纤介质、射频(RF)链路,等等。代码段可以经由诸如因特网、内联网等的计算机网络被下载。The functional blocks shown in the above structural block diagrams may be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the present application are the programs or code segments employed to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted over transmission media or communication links by data signals carried in carrier waves. "Machine-readable medium" may include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like. Code segments may be downloaded via a computer network such as the Internet, an Intranet, or the like.

还需要说明的是,本申请中提及的示例性实施例,基于一系列的步骤或者装置描述一些方法或系统。但是,本申请不局限于上述步骤的顺序,也就是说,可以按照实施例中提及的顺序执行步骤,也可以不同于实施例中的顺序,或者若干步骤同时执行。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, the present application is not limited to the order of the above steps, that is, the steps may be performed in the order mentioned in the embodiment, or may be different from the order in the embodiment, or several steps may be performed simultaneously.

上面参考根据本公开的实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各方面。应当理解,流程图和/或框图中的每个方框以及流程图和/或框图中各方框的组合可以由计算机程序指令实现。这些计算机程序指令可被提供给通用计算机、专用计算机、或其它可编程数据处理装置的处理器,以产生一种机器,使得经由计算机或其它可编程数据处理装置的处理器执行的这些指令使能对流程图和/或框图的一个或多个方框中指定的功能/动作的实现。这种处理器可以是但不限于是通用处理器、专用处理器、特殊应用处理器或者现场可编程逻辑电路。还可理解,框图和/或流程图中的每个方框以及框图和/或流程图中的方框的组合,也可以由执行指定的功能或动作的专用硬件来实现,或可由专用硬件和计算机指令的组合来实现。Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present disclosure. It will be understood that each block of the flowchart and/or block diagrams, and combinations of blocks in the flowchart and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that execution of these instructions via the processor of the computer or other programmable data processing apparatus enables Implementation of the functions/actions specified in one or more blocks of the flowchart and/or block diagrams. Such processors may be, but are not limited to, general purpose processors, special purpose processors, application specific processors, or field programmable logic circuits. It can also be understood that each block in the block diagrams and/or flowcharts and combinations of blocks in the block diagrams and/or flowcharts can also be realized by dedicated hardware for performing specified functions or actions, or can be implemented by dedicated hardware and combination of computer instructions.

以上,仅为本申请的具体实施方式,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、模块和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。应理解,本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。The above is only a specific implementation of the present application, and those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described systems, modules and units can refer to the above-mentioned method embodiments. The corresponding process will not be repeated here. It should be understood that the protection scope of the present application is not limited thereto, and any person familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the application, and these modifications or replacements should cover all Within the protection scope of this application.

Claims (14)

1.一种数据确定方法,其特征在于,所述方法包括:1. A method for determining data, characterized in that the method comprises: 响应于用户终端发送的数据查询请求,对过滤控制表进行数据信息查询操作,所述数据查询请求用于请求查询生产表中与第一数据信息对应的业务数据,所述过滤控制表用于:对所述生产表中处于批量数据校正处理中的错误数据的数据信息进行记录;In response to the data query request sent by the user terminal, perform a data information query operation on the filtering control table, the data query request is used to request querying the business data corresponding to the first data information in the production table, and the filtering control table is used for: Recording the data information of the erroneous data in the batch data correction process in the production table; 在查询到所述过滤控制表中存在数据信息的情况下,将所述第一数据信息与所述过滤控制表中的数据信息进行匹配;matching the first data information with the data information in the filtering control table when it is found that there is data information in the filtering control table; 在所述过滤控制表中存在与所述第一数据信息匹配的第二数据信息的情况下,若所述缓存表中缓存有与所述第二数据信息对应的校正数据,则获取所述校正数据,所述第二数据信息为所述第一数据信息的部分或者全部,所述缓存表用于:在批量数据校正处理中,缓存与已完成校正处理的错误数据对应的校正数据;In the case where there is second data information matching the first data information in the filtering control table, if correction data corresponding to the second data information is cached in the buffer table, acquiring the correction data, the second data information is part or all of the first data information, and the cache table is used to: in batch data correction processing, cache correction data corresponding to error data that has completed correction processing; 基于所述校正数据,生成用于向所述用户终端发送的反馈数据;generating feedback data for transmission to the user terminal based on the correction data; 其中,若所述缓存表中未缓存有与所述第二数据信息对应的校正数据,则不向所述用户终端发送业务数据。Wherein, if the correction data corresponding to the second data information is not cached in the cache table, no service data is sent to the user terminal. 2.根据权利要求1所述的方法,其特征在于,所述响应于用户终端发送的数据查询请求,对过滤控制表进行数据信息查询操作之前,所述方法还包括:2. The method according to claim 1, wherein the method further comprises: 在获取到所述生产表的情况下,确定所述生产表中的错误数据;In the case that the production table is acquired, determining wrong data in the production table; 在所述过滤控制表中记录所述生产表中的错误数据的数据信息;Record the data information of the erroneous data in the production table in the filter control table; 对所述过滤控制表中记录的数据信息对应的错误数据进行批量数据校正处理;performing batch data correction processing on the error data corresponding to the data information recorded in the filtering control table; 其中,在批量数据校正处理中,已完成校正处理的错误数据对应的校正数据缓存于所述缓存表中。Wherein, in the batch data correction process, the correction data corresponding to the erroneous data that has been corrected is cached in the cache table. 3.根据权利要求2所述的方法,其特征在于,所述对所述过滤控制表中记录的数据信息对应的错误数据进行批量数据校正处理,包括:3. The method according to claim 2, wherein the batch data correction process is performed on the error data corresponding to the data information recorded in the filtering control table, comprising: 确定所述过滤控制表中记录的数据信息包括N个时间段,其中,所述N为大于1的整数;It is determined that the data information recorded in the filtering control table includes N time periods, wherein the N is an integer greater than 1; 通过N条处理线程同时分别对与所述N个时间段的错误数据进行数据校正处理。Data correction processing is performed on the erroneous data of the N time periods through N processing threads at the same time. 4.根据权利要求3所述的方法,其特征在于,所述第一数据信息为目标时间段;4. The method according to claim 3, wherein the first data information is a target time period; 所述在所述过滤控制表中存在与所述第一数据信息匹配的第二数据信息的情况下,若所述缓存表中缓存有与所述第二数据信息对应的校正数据,则获取所述校正数据之前,所述方法还包括:In the case where there is second data information matching the first data information in the filtering control table, if the correction data corresponding to the second data information is cached in the buffer table, the obtained Before the correction data, the method also includes: 查询所述目标时间段是否处于所述N个时间段内;Query whether the target time period is within the N time periods; 若所述目标时间段中至少部分时间段处于所述N个时间段,则确定所述过滤控制表中存在与所述第一数据信息匹配的第二数据信息,所述第二数据信息包括:所述N个时间段中,与所述目标时间段重合的第一时间段。If at least part of the time periods in the target time period are in the N time periods, it is determined that there is second data information matching the first data information in the filtering control table, and the second data information includes: Among the N time periods, a first time period that coincides with the target time period. 5.根据权利要求4所述的方法,其特征在于,所述第一时间段为所述目标时间段位于所述N个时间段内的部分时间段,且所述校正数据包括所述缓存表中位于所述第一时间段的业务数据;5. The method according to claim 4, wherein the first time period is a part of the time period in which the target time period is within the N time periods, and the correction data includes the cache table The business data in the first time period; 所述将所述第一数据信息与所述过滤控制表中的数据信息进行匹配之后,所述方法还包括:After matching the first data information with the data information in the filtering control table, the method further includes: 获取所述生产表中位于所述第二时间段内的业务数据,其中,所述第二时间段为所述目标时间段中除所述第一时间段之外的时间段;Obtaining business data in the production table within the second time period, wherein the second time period is a time period in the target time period except for the first time period; 所述基于所述校正数据,生成用于向所述用户终端发送的反馈数据,包括:The generating the feedback data for sending to the user terminal based on the correction data includes: 将所述校正数据以及与位于所述第二时间段内的业务数据合并,形成用于向所述用户终端发送的反馈数据。Combining the correction data and the service data within the second time period to form feedback data for sending to the user terminal. 6.根据权利要求1所述的方法,其特征在于,所述对过滤控制表进行数据信息查询操作之后,所述方法还包括:6. The method according to claim 1, characterized in that, after the data information query operation is performed on the filter control table, the method further comprises: 在查询到所述过滤控制表中不存在数据信息,或者,所述过滤控制表中不存在与所述第一数据信息匹配的数据信息的情况下,将所述生产表中与所述第一数据信息对应的业务数据作为所述反馈数据。When it is found that there is no data information in the filter control table, or that there is no data information matching the first data information in the filter control table, compare the production table with the first data information The service data corresponding to the data information is used as the feedback data. 7.一种数据确定装置,其特征在于,所述装置包括:7. A data determination device, characterized in that the device comprises: 查询模块,用于响应于用户终端发送的数据查询请求,对过滤控制表进行数据信息查询操作,所述数据查询请求用于请求查询生产表中与第一数据信息对应的业务数据,所述过滤控制表用于:对所述生产表中处于批量数据校正处理中的错误数据的数据信息进行记录;The query module is configured to perform a data information query operation on the filtering control table in response to a data query request sent by the user terminal, the data query request is used to request querying the business data corresponding to the first data information in the production table, and the filtering The control table is used to: record the data information of the erroneous data in the batch data correction process in the production table; 匹配模块,用于在查询到所述过滤控制表中存在数据信息的情况下,将所述第一数据信息与所述过滤控制表中的数据信息进行匹配;A matching module, configured to match the first data information with the data information in the filtering control table when it is found that there is data information in the filtering control table; 第一获取模块,用于在所述过滤控制表中存在与所述第一数据信息匹配的第二数据信息的情况下,若所述缓存表中缓存有与所述第二数据信息对应的校正数据,则获取所述校正数据,所述第二数据信息为所述第一数据信息的部分或者全部,所述缓存表用于:在批量数据校正处理中,缓存与已完成校正处理的错误数据对应的校正数据;The first obtaining module is configured to: if there is second data information matching the first data information in the filtering control table, if the cache table has cached corrections corresponding to the second data information data, the corrected data is obtained, the second data information is part or all of the first data information, and the cache table is used for: in batch data correction processing, buffering error data that has been corrected Corresponding calibration data; 生成模块,用于基于所述校正数据,生成用于向所述用户终端发送的反馈数据;A generating module, configured to generate feedback data for sending to the user terminal based on the correction data; 其中,若所述缓存表中未缓存有与所述第二数据信息对应的校正数据,则不向所述用户终端发送业务数据。Wherein, if the correction data corresponding to the second data information is not cached in the cache table, no service data is sent to the user terminal. 8.根据权利要求7所述的装置,其特征在于,所述装置还包括:8. The device according to claim 7, further comprising: 确定模块,用于在获取到所述生产表的情况下,确定所述生产表中的错误数据;A determining module, configured to determine error data in the production table when the production table is acquired; 控制模块,用于在所述过滤控制表中记录所述生产表中的错误数据的数据信息;A control module, configured to record data information of erroneous data in the production table in the filtering control table; 校正模块,用于对所述过滤控制表中记录的数据信息对应的错误数据进行批量数据校正处理;A correction module, configured to perform batch data correction processing on the erroneous data corresponding to the data information recorded in the filtering control table; 其中,在批量数据校正处理中,已完成校正处理的错误数据对应的校正数据缓存于所述缓存表中。Wherein, in the batch data correction process, the correction data corresponding to the erroneous data that has been corrected is cached in the cache table. 9.根据权利要求8所述的装置,其特征在于,所述校正模块,包括:9. The device according to claim 8, wherein the calibration module comprises: 确定单元,用于确定所述过滤控制表中记录的数据信息包括N个时间段,其中,所述N为大于1的整数;A determining unit, configured to determine that the data information recorded in the filtering control table includes N time periods, where N is an integer greater than 1; 校正单元,用于通过N条处理线程同时分别对与所述N个时间段的错误数据进行数据校正处理。The correction unit is configured to perform data correction processing on the erroneous data of the N time periods respectively through N processing threads at the same time. 10.根据权利要求9所述的装置,其特征在于,所述第一数据信息为目标时间段;10. The device according to claim 9, wherein the first data information is a target time period; 所述装置,还包括:The device also includes: 判断模块,用于查询所述目标时间段是否处于所述N个时间段内;A judging module, configured to query whether the target time period is within the N time periods; 匹配结果确定模块,用于若所述目标时间段中至少部分时间段处于所述N个时间段,则确定所述过滤控制表中存在与所述第一数据信息匹配的第二数据信息,所述第二数据信息包括:所述N个时间段中,与所述目标时间段重合的第一时间段。A matching result determining module, configured to determine that there is second data information matching the first data information in the filtering control table if at least part of the time periods in the target time period are within the N time periods, The second data information includes: a first time period that coincides with the target time period among the N time periods. 11.根据权利要求10所述的装置,其特征在于,所述第一时间段为所述目标时间段位于所述N个时间段内的部分时间段,且所述校正数据包括所述缓存表中位于所述第一时间段的业务数据;11. The device according to claim 10, wherein the first time period is a part of the time period in which the target time period is within the N time periods, and the correction data includes the cache table The business data in the first time period; 所述装置还包括:The device also includes: 第二获取模块,用于获取所述生产表中位于所述第二时间段内的业务数据,其中,所述第二时间段为所述目标时间段中除所述第一时间段之外的时间段;A second acquiring module, configured to acquire business data in the production table within the second time period, wherein the second time period is the target time period other than the first time period period; 所述生成模块,具体用于:The generating module is specifically used for: 将所述校正数据以及与位于所述第二时间段内的业务数据合并,形成用于向所述用户终端发送的反馈数据。Combining the correction data and the service data within the second time period to form feedback data for sending to the user terminal. 12.根据权利要求7所述的装置,其特征在于,所述装置还包括:12. The device according to claim 7, further comprising: 在查询到所述过滤控制表中不存在数据信息,或者,所述过滤控制表中不存在与所述第一数据信息匹配的数据信息的情况下,将所述生产表中与所述第一数据信息对应的业务数据作为所述反馈数据。When it is found that there is no data information in the filter control table, or that there is no data information matching the first data information in the filter control table, compare the production table with the first data information The service data corresponding to the data information is used as the feedback data. 13.一种数据确定设备,其特征在于,包括:至少一个处理器、至少一个存储器以及存储在所述存储器中的计算机程序指令,当所述计算机程序指令被所述处理器执行时实现如权利要求1-6中任一项所述的方法。13. A device for determining data, characterized in that it comprises: at least one processor, at least one memory, and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, it can realize the The method described in any one of claims 1-6. 14.一种计算机可读存储介质,其上存储有计算机程序指令,其特征在于,当所述计算机程序指令被处理器执行时实现如权利要求1-6中任一项所述的方法。14. A computer-readable storage medium, on which computer program instructions are stored, wherein the method according to any one of claims 1-6 is implemented when the computer program instructions are executed by a processor.
CN202110730187.0A 2021-06-29 2021-06-29 Data determination method, device, equipment and computer storage medium Pending CN115544077A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110730187.0A CN115544077A (en) 2021-06-29 2021-06-29 Data determination method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110730187.0A CN115544077A (en) 2021-06-29 2021-06-29 Data determination method, device, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN115544077A true CN115544077A (en) 2022-12-30

Family

ID=84705885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110730187.0A Pending CN115544077A (en) 2021-06-29 2021-06-29 Data determination method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN115544077A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160357627A1 (en) * 2015-06-03 2016-12-08 King Abdulaziz City For Science And Technology Data error correction from cached error correction information
CN107038088A (en) * 2016-09-28 2017-08-11 阿里巴巴集团控股有限公司 A kind of data reconstruction method and device
CN107209708A (en) * 2015-01-14 2017-09-26 三菱电机株式会社 Data processing equipment
CN109635024A (en) * 2018-11-23 2019-04-16 华迪计算机集团有限公司 A kind of data migration method and system
CN111444039A (en) * 2019-12-30 2020-07-24 中国银联股份有限公司 Cached data rollback method and cached data rollback device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107209708A (en) * 2015-01-14 2017-09-26 三菱电机株式会社 Data processing equipment
US20160357627A1 (en) * 2015-06-03 2016-12-08 King Abdulaziz City For Science And Technology Data error correction from cached error correction information
CN107038088A (en) * 2016-09-28 2017-08-11 阿里巴巴集团控股有限公司 A kind of data reconstruction method and device
CN109635024A (en) * 2018-11-23 2019-04-16 华迪计算机集团有限公司 A kind of data migration method and system
CN111444039A (en) * 2019-12-30 2020-07-24 中国银联股份有限公司 Cached data rollback method and cached data rollback device

Similar Documents

Publication Publication Date Title
US9594820B2 (en) Apparatus, and associated method, for synchronizing a group of data objects
CN104750774A (en) Database upgrading method and device
CN116628085A (en) Synchronous processing method and device of database, electronic equipment and storage medium
CN108073707A (en) Financial transaction data update method, device and computer read/write memory medium
CN110858201A (en) Data processing method and system, processor and storage medium
CN115544077A (en) Data determination method, device, equipment and computer storage medium
WO2021109723A1 (en) Product price determination method and apparatus, and server
CN109842482B (en) Information synchronization method, system and terminal equipment
CN112506968A (en) Information aggregation method and device, electronic equipment and computer readable medium
CN112437427A (en) Card writing method, device, equipment and computer readable storage medium
CN117216036A (en) Data migration method and system, equipment, medium and product thereof
CN116775110A (en) Data synchronization method, device, equipment, medium and product
CN115587143A (en) Data synchronization method, device, equipment and computer readable storage medium
CN112541750B (en) Data processing method, device, equipment and computer readable storage medium
CN116186060A (en) Data query method, device, equipment and storage medium
CN114817750A (en) Information processing method, apparatus, equipment, medium and product
CN116775673A (en) Data integration method of multiple data sources and device, equipment, medium and product thereof
CN105933877A (en) Terminal time adjustment method and device
CN116243586B (en) Vehicle time correction method and related equipment
CN114513697B (en) Television system, control method and non-transitory computer readable medium
CN114168564B (en) Data processing method, device, equipment and computer storage medium
JP5712632B2 (en) Subsidiary accounting processing device, parent company accounting processing device, accounting processing system, accounting processing method, and program
CN116450676A (en) Data query method, device, equipment, medium and product
CN109271398B (en) Database transaction processing method, device, equipment and computer readable storage medium
CN110912866B (en) Multi-device network bridge method and device and electronic device

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