Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The embodiment of the application provides a data checking method, a data checking device, computer equipment and a computer readable storage medium.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data checking method according to an embodiment of the present application. The data checking method can be used in a terminal or a server to realize the checking of the service data generated by the terminal equipment or the server. The terminal can be an electronic device such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant and a wearable device; the server may be an independent server, a server cluster, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
As shown in fig. 2, fig. 2 is a usage scenario diagram provided in an embodiment of the present application, where the target service data may be obtained from a terminal device operating a data warehouse based on a preset data obtaining rule, or may be obtained directly from a terminal device operating a service system, which is not limited herein.
As shown in fig. 1, the data checking method includes steps S101 to S106.
And S101, acquiring target service data based on a preset data acquisition rule.
In some embodiments, the data checking method further comprises: and acquiring the relevant data of the service, and storing the acquired relevant data of the service to a data warehouse. The acquiring the target service data based on the preset data acquisition rule includes: determining at least part of business related data in the data warehouse as the target business data based on a preset data acquisition rule; and acquiring the target business data from the data warehouse.
Illustratively, the business related data is stored in a data warehouse and is acquired from the data warehouse according to a preset data acquisition rule when the data warehouse is checked, so that the workload of manually inputting the business data is reduced, and the business related data can be directly searched and acquired from the data warehouse when the data warehouse is subsequently checked. The service related data refers to data generated in the operation process of the service system.
For example, the preset data acquisition rule may be used to indicate a storage location of the target business data that needs to be acquired, such as a destination table and a data item of the target business data in a data warehouse.
For example, the preset data obtaining rule may be set by a user, or may be automatically generated according to a requirement of a check rule on the target service data. For example, if the target service data related to the checking rule is a tax amount in the policy basic information table, the preset data obtaining rule may be: and acquiring business data of which the target table is a policy basic information table and the data item is a tax amount from the data warehouse. According to the requirement of the preset checking rule on the target service data, the data acquisition rule is automatically generated, the time for setting the data acquisition rule is saved, and the data checking efficiency is improved.
In some embodiments, the determining, based on a preset data obtaining rule, at least part of the business-related data in the data warehouse as the target business data includes: and determining the corresponding business related data in the data warehouse as the target business data according to the table name and the data item name in the preset data acquisition rule.
Illustratively, the data warehouse comprises at least one destination table composed of business-related data, such as a policy basic information table, a policy clause information table, a correction information table, a charging list and the like; the at least one destination table composed of business related data includes at least one data item for storing business related data, for example, insurance agency codes, tax amount, etc. may be included in the policy basic information table. The business related data is stored in the data warehouse, and the structure is simpler compared with that of the table stored in the operation type database, so that the later inquiry and the acquisition of the target business data are facilitated.
And S102, processing the target service data based on a preset data processing rule to obtain supervision data.
Illustratively, the data processing rule includes at least one of data export, conversion, splitting, encryption, compression and the like of the service data. And generating the supervision data based on the data processing rule, so that the time for manually processing the service data is saved, and the checking efficiency is improved.
For example, the preset data obtaining rule may be set by a user, or may be automatically generated according to the requirement of the checking rule on the supervision data. For example, if the preset checking rule is: the tax amount in the policy basic information table should be equal to the sum of the tax amounts in the policy term information table, and the preset data processing rule may be: and summing the tax amount in the policy clause information table.
And S103, checking the supervision data based on a preset checking rule.
For example, the preset checking rule may be preset according to an actual requirement, and for example, the checking rule may be: the tax amount in the basic information table of the policy should be equal to the sum of the tax amounts in the terms information table of the policy. By presetting the checking rules and automatically checking the supervision data based on the preset checking rules, the time for manually checking the supervision data is saved, the checking efficiency is improved, and the condition that the manual checking is wrong is avoided.
In some embodiments, the method further comprises: and when the checking rule is changed, determining the preset data acquisition rule and the preset data processing rule according to the changed checking rule. According to the changed checking rule, the corresponding data acquisition rule and the corresponding data processing rule are automatically determined, so that the time for correspondingly modifying the data acquisition rule and the data processing rule when the checking rule is modified is saved, and the data checking efficiency is improved.
And step S104, if the supervision data does not pass the checking, based on the checking rule, adjusting the data acquisition rule so as to obtain and process the target service data and check the supervision data again according to the adjusted data acquisition rule.
For example, if the supervision data does not meet the requirement of the preset checking rule, that is, the supervision data does not pass the checking, it may be determined that the supervision data generated according to the data acquisition rule and the data processing rule is incorrect, and the acquisition of the target service data and the generation of the supervision data need to be performed again.
Illustratively, adjusting the data acquisition rule based on the checking rule includes: and adjusting the identification of the target service data in the data acquisition rule according to the service related data related to the preset check rule.
For example, if the checking rule is: the amount of tax in the basic information table of the policy should be equal to the sum of the amounts of tax in the information table of the terms of the policy, and the supervision data is not checked, which may be because the data items related to the amount of tax in the information table of the terms of the policy in the business-related data are increased or decreased, for example, the original data acquisition rule is to acquire 3 data items related to the amount of tax in the information table of the terms of the policy in the business-related data, and the adjusted data acquisition rule is to acquire 4 data items related to the amount of tax in the information table of the terms of the policy in the business-related data.
By adjusting the identification of the target service data in the data acquisition rule according to the service-related data related to the preset checking rule, the service-related data which does not pass the checking can be automatically processed, the labor cost in the data checking process is reduced, and the data checking efficiency is improved.
In some embodiments, adjusting the data acquisition rule based on the checking rule further comprises: outputting the adjusted data acquisition rule through a human-computer interaction interface; when determining operation of the user on the adjusted data acquisition rule is acquired, determining the adjusted data acquisition rule; and when the modification operation of the user on the adjusted data acquisition rule is acquired, modifying the adjusted data acquisition rule according to the modification operation. The adjusted data acquisition rule is displayed to the user on the human-computer interaction interface, so that the user can determine or modify the adjusted data acquisition rule, the error of the adjusted data acquisition rule is avoided, and the data checking efficiency is improved.
For the supervision data which is not checked, the data acquisition rule is automatically adjusted, so that the corresponding target business data does not need to be manually determined by the data checking staff according to the supervision data which is not checked, the time and labor cost required by data checking are reduced, and the checking efficiency is improved.
Optionally, as shown in fig. 3, if the supervision data fails to pass the checking, the acquisition of the target service data and the generation of the supervision data may be performed again, so that time for manually processing the supervision data that fails to be checked is saved, and the efficiency of data checking is improved.
In some embodiments, after the adjusting the data obtaining rule based on the checking rule if the supervision data fails to be checked, the method further includes: based on the adjusted data acquisition rule, acquiring target service data again; regenerating supervision data according to the newly acquired target service data based on the preset data processing rule; and checking the regenerated supervision data based on the preset checking rule.
For example, if the regenerated supervision data fails to be checked, the operations of step S101 to step S103 are performed again, and will not be described here.
For example, if the number of times that the supervision data fails to be checked is greater than a preset value, the checking is suspended and alarm information for indicating that the supervision data fails to be checked is sent to a worker, so that the worker can process the supervision data that fails to be checked and/or modify a data acquisition rule related to the checking rule.
And S105, if the supervision data passes the checking, generating a supervision result according to the supervision data.
For example, if the supervision data meets the requirement of the checking rule, that is, the supervision data passes the checking, a supervision result is generated according to the supervision data.
Illustratively, the supervision result includes supervision end state data, which is data generated from the supervision data that conforms to the supervision system submission specification.
And S106, outputting a checking report according to the supervision result, wherein the checking report comprises the supervision result.
Illustratively, the check report includes the supervision result, the check rule, the check failure times, and the like. And outputting a checking report to the terminal equipment so that a worker for data checking can know the data checking condition.
Illustratively, a checking report is output according to the supervision result so as to clearly and intuitively display the supervision result.
In some embodiments, the method further comprises: and sending the supervision final state data to the supervision system. The automatically generated final supervision state data are sent to the supervision system to complete data reporting, so that the manual reporting time is saved, the data checking efficiency is improved, and the condition that manual operation is wrong is avoided.
In the data checking method provided in the above embodiment, the target service data is acquired based on a preset data acquisition rule; processing the target service data based on a preset data processing rule to obtain supervision data; checking the supervision data based on a preset checking rule; if the supervision data does not pass the check, based on the check rule, adjusting the data acquisition rule so as to obtain and process the target service data and check the supervision data again according to the adjusted data acquisition rule; if the supervision data passes the check, generating a supervision result according to the supervision data; and outputting a checking report according to the supervision result, wherein the checking report comprises the supervision result. The service data is automatically checked, data which cannot be checked is automatically processed, a checking report is generated, and the data checking efficiency is improved.
Referring to fig. 4, fig. 4 is a schematic diagram of a data checking apparatus according to an embodiment of the present disclosure, where the data checking apparatus may be configured in a server or a terminal, and is used to execute the foregoing data checking method.
As shown in fig. 4, the data processing apparatus includes: the system comprises a business data acquisition module 110, a business data processing module 120, a supervision data checking module 130, an acquisition rule adjustment module 140, a supervision result generation module 150 and a checking report output module 160.
A service data obtaining module 110, configured to obtain target service data based on a preset data obtaining rule;
a service data processing module 120, configured to process the target service data based on a preset data processing rule to obtain supervision data;
the supervision data checking module 130 is configured to check the supervision data based on a preset checking rule;
an obtaining rule adjusting module 140, configured to adjust the data obtaining rule based on the checking rule if the supervision data fails to be checked, so as to obtain and process the target service data and check the supervision data again according to the adjusted data obtaining rule;
and a supervision result generating module 150, configured to generate a supervision result according to the supervision data if the supervision data passes the check.
A checking report output module 160, configured to output a checking report according to the supervision result, where the checking report includes the supervision result.
Illustratively, the data processing apparatus further comprises a rule determination sub-module.
And the rule determining submodule is used for determining the preset data acquisition rule and the preset data processing rule according to the changed checking rule when the checking rule is changed.
Illustratively, the obtaining rule adjusting module 140 further includes a target business data adjusting submodule.
And the target service data adjusting submodule is used for adjusting the identification of the target service data in the data acquisition rule according to the service related data related to the preset check rule.
Illustratively, the data processing device further comprises a man-machine interaction sub-module, an acquisition rule determining sub-module and an acquisition rule modifying sub-module.
And the man-machine interaction submodule is used for outputting the adjusted data acquisition rule through a man-machine interaction interface.
And the acquisition rule determining submodule is used for determining the adjusted data acquisition rule when the determination operation of the user on the adjusted data acquisition rule is acquired.
And the acquisition rule modification sub-module is used for modifying the adjusted data acquisition rule according to the modification operation when the modification operation of the user on the adjusted data acquisition rule is acquired.
Illustratively, the data processing apparatus further includes a service data reacquiring sub-module, a service data reprocessing sub-module, and a supervision data review sub-module.
And the service data reacquisition submodule is used for reacquiring the target service data based on the adjusted data acquisition rule.
And the service data reprocessing sub-module is used for regenerating supervision data according to the target service data which is obtained again based on the preset data processing rule.
And the supervision data rechecking and checking sub-module is used for checking the regenerated supervision data based on the preset checking rule.
Illustratively, the data processing device further comprises a business-related data storage submodule.
And the service related data storage submodule is used for acquiring service related data and storing the acquired service related data to a data warehouse.
Illustratively, the service data acquiring module 110 includes a target service data determining sub-module and a target service data acquiring sub-module.
And the target business data determining submodule is used for determining at least part of business related data in the data warehouse as the target business data based on a preset data acquisition rule.
And the target business data acquisition submodule is used for acquiring the target business data from the data warehouse.
Illustratively, the target business data determination submodule includes a data location determination submodule.
And the data position determining submodule is used for determining corresponding business related data in the data warehouse as the target business data according to the table name and the data item name in the preset data acquisition rule.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the apparatus, the modules and the units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The above-described methods and apparatuses may be implemented, for example, in the form of a computer program that can be run on a computer device as shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of a computer device according to an embodiment of the present disclosure. The computer device may be a server or a terminal.
As shown in fig. 5, the computer device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a storage medium and an internal memory.
The storage medium may store an operating system and a computer program. The computer program comprises program instructions which, when executed, cause a processor to perform any of the data detection methods.
The processor is used for providing calculation and control capability and supporting the operation of the whole computer equipment.
The internal memory provides an environment for the execution of a computer program on a storage medium, which when executed by a processor causes the processor to perform any of a variety of data detection methods.
The network interface is used for network communication, such as sending assigned tasks and the like. Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that the Processor may be a Central Processing Unit (CPU), and the Processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in one embodiment, the processor is configured to execute a computer program stored in the memory to implement the steps of:
acquiring target service data based on a preset data acquisition rule;
processing the target service data based on a preset data processing rule to obtain supervision data;
checking the supervision data based on a preset checking rule;
if the supervision data does not pass the check, based on the check rule, adjusting the data acquisition rule so as to obtain and process the target service data and check the supervision data again according to the adjusted data acquisition rule;
if the supervision data passes the check, generating a supervision result according to the supervision data;
and outputting a checking report according to the supervision result, wherein the checking report comprises the supervision result.
In some embodiments, the processor, when implementing the data checking method, is configured to implement:
and when the checking rule is changed, determining the preset data acquisition rule and the preset data processing rule according to the changed checking rule.
In some embodiments, the processor, when implementing the adjusting the data acquisition rule based on the checking rule, is configured to implement:
and adjusting the identification of the target service data in the data acquisition rule according to the service related data related to the preset check rule.
In some embodiments, the processor, when implementing the data checking method, is configured to implement:
outputting the adjusted data acquisition rule through a human-computer interaction interface;
when determining operation of the user on the adjusted data acquisition rule is acquired, determining the adjusted data acquisition rule;
and when the modification operation of the user on the adjusted data acquisition rule is acquired, modifying the adjusted data acquisition rule according to the modification operation.
In some embodiments, the processor, when implementing the data checking method, is configured to implement:
based on the adjusted data acquisition rule, acquiring target service data again;
regenerating supervision data according to the newly acquired target service data based on the preset data processing rule;
and checking the regenerated supervision data based on the preset checking rule.
In some embodiments, the processor, when implementing the data checking method, is configured to implement:
acquiring service related data and storing the acquired service related data to a data warehouse;
determining at least part of business related data in the data warehouse as the target business data based on a preset data acquisition rule;
and acquiring the target business data from the data warehouse.
In some embodiments, the processor, when implementing the preset data obtaining rule, is configured to implement:
and determining the corresponding business related data in the data warehouse as the target business data according to the table name and the data item name in the preset data acquisition rule.
It should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the data processing described above may refer to the corresponding process in the foregoing data checking control method embodiment, and details are not described herein again.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to the embodiments of the data checking method in the present application.
The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments. While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.