WO2018227880A1 - Data comparison method, apparatus and device, and readable storage medium - Google Patents

Data comparison method, apparatus and device, and readable storage medium Download PDF

Info

Publication number
WO2018227880A1
WO2018227880A1 PCT/CN2017/111901 CN2017111901W WO2018227880A1 WO 2018227880 A1 WO2018227880 A1 WO 2018227880A1 CN 2017111901 W CN2017111901 W CN 2017111901W WO 2018227880 A1 WO2018227880 A1 WO 2018227880A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
comparison
information
data comparison
logic
Prior art date
Application number
PCT/CN2017/111901
Other languages
French (fr)
Chinese (zh)
Inventor
王莹
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2018227880A1 publication Critical patent/WO2018227880A1/en

Links

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/248Presentation of query results
    • 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/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a data comparison method, apparatus, device, and readable storage medium.
  • the main object of the present invention is to provide a data comparison method, apparatus, device and readable storage medium, aiming at improving the efficiency and accuracy of data comparison.
  • the present invention provides a data comparison method, and the data comparison method includes the following steps:
  • the data comparison window is displayed to prompt the user to input the data comparison information
  • the present invention also provides a data comparison device
  • a detection prompting module configured to display a data comparison window when the data comparison request is detected, to prompt the user to input the data comparison information
  • Determining a comparison module configured to determine a data comparison range based on the user input data comparison information, and compare the data information included in the corresponding range;
  • the detection output module is configured to output the result of the comparison of the data information when the comparison of the data information is detected.
  • the present invention also provides a data comparison device, the data comparison device comprising: a memory, a processor, and a data comparison program stored on the memory and operable on the processor,
  • the data comparison program implements any of the steps of the data comparison method described above when executed by the processor.
  • the present invention also provides a readable storage medium, on which the data comparison program is stored, and the data comparison program implements the data ratio described above when executed by the processor. Any step of the method.
  • the invention realizes data comparison through a program. Since the program supports data comparison between the same library and the cross-database, it is not necessary to log in to different databases, and the custom database can be supported, and the data source is filled in the corresponding position of the data comparison window, according to the comparison program.
  • the comparison statement realizes the comparison of large-volume data tables, which effectively improves the data comparison efficiency.
  • the data is manually compared and filtered repeatedly, and is converted into a program to automatically process the data information of the same or different databases for data comparison, thereby saving Larger manpower time, and reduced errors in manual processing results in inaccurate comparison results, and can quickly and accurately obtain data comparison results.
  • FIG. 1 is a schematic structural diagram of a device in a hardware operating environment according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a first embodiment of a data comparison method according to the present invention.
  • FIG. 3 is a schematic flow chart of a second embodiment of a data comparison method according to the present invention.
  • FIG. 4 is a schematic flow chart of a third embodiment of a data comparison method according to the present invention.
  • FIG. 5 is a schematic flowchart of the refinement of step S20 of the data comparison method in FIG. 2;
  • FIG. 6 is a schematic diagram of a refinement process of step S30 of the data comparison method in FIG. 2;
  • FIG. 7 is a schematic flowchart diagram of a fourth embodiment of a data comparison method according to the present invention.
  • FIG. 8 is a schematic diagram of a scenario in which the data comparison method of the present invention is combined.
  • FIG. 9 is a schematic diagram of a data comparison setting setting scenario of a data comparison method according to the present invention.
  • FIG. 10 is a schematic diagram of functional modules of an embodiment of a data comparison device according to the present invention.
  • FIG. 1 is a schematic structural diagram of a terminal (also referred to as a data comparison device) in a hardware operating environment according to an embodiment of the present invention.
  • the terminal may be a PC, or may be a portable terminal device having a display function, such as a smart phone, a tablet computer, or a portable computer.
  • the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface.
  • the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
  • the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
  • the terminal may further include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more.
  • sensors such as light sensors, motion sensors, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor may turn off the display and/or when the mobile terminal moves to the ear. Backlighting.
  • the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
  • terminal structure shown in FIG. 1 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • an operating system may be included in the memory 1005 as a computer storage medium.
  • a network communication module may be included in the memory 1005 as a computer storage medium.
  • a user interface module may be included in the memory 1005 as a computer storage medium.
  • a data comparison application may be included in the memory 1005 as a computer storage medium.
  • the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
  • the user interface 1003 is mainly used to connect the client (user end), and perform data communication with the client;
  • the processor 1001 can be used to call the data comparison application stored in the memory 1005 and perform the following operations:
  • the data comparison method includes the following steps:
  • the data comparison window is displayed to prompt the user to input the data comparison information
  • processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
  • the data comparison window is used to display a data comparison file and a configuration file, and the data comparison file is formed by setting a data comparison function in an Excel table.
  • the step of displaying the data comparison window to prompt the user to input the data comparison information before detecting the data comparison request includes:
  • processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
  • the data comparison information includes a data source, a data comparison logic, and a data output format.
  • the step of determining the data comparison range based on the user input data comparison information and comparing the data information included in the corresponding range includes:
  • the data comparison information includes data comparison logic, the data information is compared according to the data comparison logic;
  • the data comparison information of the data comparison range is determined as the full data comparison.
  • processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
  • the step of determining the data comparison range based on the user input data comparison information and comparing the data information included in the corresponding range includes:
  • the data information is combined according to the data comparison logic to form a data information comparison group, and the data information in the corresponding data comparison group is compared.
  • processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
  • determining the source database of the data information and extracting the data information from the source database, and determining whether there is a data comparison logic step further includes:
  • the full data field in the source database is used as the data comparison logic, and the data information in the database is compared with the full data.
  • processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
  • the steps of outputting the result of the data information comparison include:
  • the data comparison result is output according to the data output format
  • the data comparison result is output according to a preset default format.
  • processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
  • the step of outputting the result of the data information comparison includes:
  • the data comparison function in the data comparison file is adjusted to optimize the data comparison file.
  • processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
  • the output of the data information comparison step further includes:
  • the data comparison data is compared according to the data comparison process to prompt the user to modify the data input information.
  • the data comparison method includes:
  • Step S10 When the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information.
  • the display screen of the terminal displays a data comparison window (specifically, when the terminal detects the data comparison request, the execution of the application of the data comparison on the terminal may be triggered, and the terminal may call the data. Comparing the underlying interface, so that the data comparison window is displayed on the display interface of the terminal, and the data comparison window displays the data comparison file and the data is compared with the configuration file required by the user when the program is running, in the data ratio
  • Data matching information required for users in files and configuration files data comparison information: data sources including data comparison, database information (database name, database network address, database interface, and data document information in the corresponding database)
  • Data comparison logic (the data comparison logic includes logical primary keys of data comparisons and logical combination keys of data comparisons.
  • the data comparison primary key can be understood as a reference quantity of data comparison, a reference of data comparison, Logical primary key, that is, a reference quantity of a data comparison, a logical combination key, that is, a reference of two data comparisons ) And the comparison result data corresponding to the output format (output format data alignment: that is, comparison result output data, the name of the document xxx)) xxx type in the document.
  • Step S20 Determine a data comparison range based on the user input data comparison information, and compare the data information included in the corresponding range.
  • sql statement sql statement: set in the data comparison file, run in Excel, developed by the program developer according to the user's usage, specifically JAVA, python, VBA or other programming Language
  • Step S30 when it is detected that the data information comparison is completed, the result of the comparison of the data information is output.
  • the user can set the data output document format of the data output and the name of the corresponding document.
  • the data comparison program stores the data comparison on the device, and can compare the data in the data comparison range, and the data ratio in the data comparison range
  • the data comparison program stops executing, and the data comparison statement is jumped out.
  • the data comparison statement is detected, that is, when the data comparison is completed, the data output format of the data comparison result set by the user is obtained, and The output of the data comparison shows that the user can visually and accurately see the results of the data comparison.
  • the data comparison window is displayed to prompt the user to input the data comparison information, and the data comparison range is determined based on the user input data comparison information, and the data included in the corresponding range is compared.
  • Information when the comparison of the data information is completed, the result of the comparison of the data information is output, and the data comparison is realized by the program. Since the program supports the comparison of the data in the same library and the cross-database, it is not necessary to log in to different databases, and the customization can be supported.
  • Database fill the data source to the corresponding position of the data comparison window, compare the large number of data tables according to the comparison statement of the comparison program, effectively improve the data comparison efficiency, compare the data manually by repeated filtering and filtering, and convert For the program to automatically process the data information of the same or different databases for data comparison, it can save a lot of manpower time, and reduce the inaccurate comparison result caused by errors in the manual processing process, and can quickly and accurately obtain the data comparison result.
  • the data comparison window is configured to display a data comparison file and a configuration file, and the data comparison file is formed by setting a data comparison function in an Excel table.
  • the data comparison methods include:
  • Step S40 Acquire preset database information, and generate a configuration file according to the database address in the preset database information, so that the user forms a specified configuration file according to the data comparison requirement setting configuration file.
  • the data comparison is mainly used in the comparison of different or the same database data information (that is, the invention is mainly applied to two upstream and downstream databases, and the data information of the downstream database is imported by the upstream database, and the existing methods are mainly In the process of data import, the data is compared and verified, or after the data is imported, the database is compared for manual data comparison, or the similarity of data information of different data ports is compared, etc., in the embodiment, when the program is developed Obtaining preset database information (preset database information, that is, existing different database names, database network addresses, database interfaces, and corresponding data document information in the database), generating a configuration file for the user to use according to the data Comparing the requirement setting configuration file to form a specified configuration file, specifically, generating a data comparison configuration file during software development, and correspondingly inputting information in the configuration file according to the data comparison situation when the user compares the data, forming a specified configuration file, and the user according to the Data comparison requirements
  • the information entered in the configuration file can contain
  • Step S50 establishing a response association relationship between the comparison function of the data comparison file and the specified configuration file.
  • the user inputs information according to the data comparison requirement, and the obtained data is associated with the specified configuration file and the data comparison file, and the data comparison function is associated with the response between the file and the specified configuration file, that is, the user is in the data ratio.
  • the data trigger comparison data in the data comparison comparison file in the data comparison function can call the configuration information in the configuration file to perform the data comparison program operation.
  • the preset database information is acquired, and a configuration file is generated according to the database address in the preset database information, so that the user can form a configuration file according to the data setting requirement configuration file, and establish a comparison function of the data comparison file and Specifies the response association between profiles.
  • the information of the preset database is acquired, and a data comparison configuration file is generated to prompt the user to obtain a specified configuration file according to the data matching requirement setting file, and associate the specified configuration file with the data comparison file, and the user triggers the data.
  • the data comparison program in the data comparison file can realize the comparison of the batch data information in different or the same database, and the user does not need to log in to import different database information data. Export, manual data comparison, speed up the efficiency of data comparison.
  • the data comparison information includes a data source, a data comparison logic, and a data output format
  • the data comparison method includes:
  • Step S60 Acquire data comparison information input in the data comparison file, and determine whether the data comparison information includes data comparison logic.
  • the data comparison information includes a data source (data source: including source database, database name, etc.), and data comparison logic (data comparison logic: data) Comparing the logical primary key and logical combination key of the logic and the data output format, obtaining the data comparison information input in the data comparison file, further determining whether the user inputs the data comparison logic, that is, determining whether the data comparison information contains data Compare logic.
  • data source including source database, database name, etc.
  • data comparison logic data comparison logic: data
  • Step S70 If the data comparison information includes data comparison logic, the data information is compared according to the data comparison logic.
  • the data comparison logic data comparison logic: logical primary key and logical combination key of the data comparison logic
  • the data comparison logic input by the user, specifically Ground
  • obtain the logical primary key of the data information comparison or the logical combination key of the data comparison that is, the two databases contain the resident user information of a certain community, and compare the data based on the user ID number when the data is compared, Then, the user ID number is used as the logical primary key of the data comparison, and the logical combination key of the data matching the user name and the user gender in the two databases is the same.
  • the present invention can also implement different data comparison.
  • the key, used to determine the order of the data comparisons compares the data information in the data source (same or different database) according to the data comparison logic.
  • Step S80 If the data comparison information does not include the data comparison logic, the data information of the data comparison range is determined as the full data comparison.
  • the user does not input the data comparison logic, and compares all the numbers in the data information in the data comparison range as the data comparison logic, that is, the database contains the name, age, ID number, telephone number, gender.
  • the home address and other information when the user does not enter the data comparison logic, the age, ID number, phone number and the number as the data comparison logic, the full amount of data comparison.
  • the data comparison information is obtained in the data comparison file, and the data comparison information is included in the data comparison logic. If the data comparison information includes the data comparison logic, the data is compared according to the data comparison logic. Information, if the data comparison information does not contain data comparison logic, the data information of the data comparison range is determined as a full data comparison. Determining the data comparison logic of the data comparison to obtain the data comparison result required by the user, and eliminating the need for artificial macroscopic data comparison, thereby improving the efficiency of the data comparison, and at the same time, the user can independently set the data comparison. The logical primary key, to obtain the required data comparison results, makes the data comparison more efficient and convenient.
  • step S20 includes:
  • Step S21 Determine, according to the data source in the data comparison information, the source database of the data information in the response association relationship, and extract the data information from the source database, and determine whether there is data comparison logic.
  • the corresponding data information is obtained in the specified configuration file, and the data is determined.
  • the database of information extracts data information from the database, and extracts data information that needs to be compared in the database (that is, when the data of the present invention is compared, the user does not need to log in to the database, and according to information such as the name of the database input by the user, the database corresponds to the corresponding data.
  • Data information of the interface (data information: including data document information, character information in the document)).
  • Step S22 if there is data comparison logic, the data information comparison group is formed according to the data comparison logic, and the data information in the corresponding data comparison group is compared.
  • the data information in the database is logically combined according to the data comparison to form a data comparison group (data comparison group: can be understood as a data combination formed by the same digital primary key in different source databases, for example, a group of students' information is stored separately
  • data comparison group can be understood as a data combination formed by the same digital primary key in different source databases, for example, a group of students' information is stored separately
  • the student information of the Education Bureau's teaching system A and the school's teaching system B are compared, and the student's student number is used as the logical primary key of the data comparison.
  • the information of the same student number in the teaching system A of the Education Bureau and the teaching system B of the school will be combined, and the relevant information of the students of the same student number in the two teaching systems will appear, and the relevant information of the students of the same student number will be used as the data information.
  • the comparison group compares the other student information in the corresponding data comparison group, that is, whether the contact information of the students in the two systems with the same student number, the parent name, and the like are the same, for example, the data information in the downstream database.
  • the data information in the upstream database it is necessary to determine whether the data information imported into the downstream database from the upstream database is consistent. Then, a data amount in the database is used as a logical primary key of the data comparison.
  • the database of the commodity sales system includes different subsystems, and each subsystem contains different commodity sales data, and the same commodity number is used as a reference.
  • the source database of the data information is determined and the data information is extracted from the source database, and it is determined whether there is data comparison logic; if there is data comparison logic. Then, according to the data comparison logic, the data information is combined to form a data information comparison group, and the data information in the corresponding data comparison group is compared. According to the data set by the user, the data is compared with the logic, which can ensure the optimization of the data comparison program quickly. According to the user setting, the data information is compared, and the data information is logically combined according to the data comparison logic. The data comparison program can be optimized to improve the efficiency of data comparison.
  • the method further includes:
  • Step S23 if there is data comparison logic, the data information comparison group is formed according to the data comparison logic, and the data information in the corresponding data comparison group is compared.
  • the data comparison file does not contain the data comparison logic (that is, the user does not input the data to compare the logical primary key).
  • the data information is compared with the full amount of data, that is, the entire database will be Data field (full data field: all the numbers in the data information, ie, the identity number, phone number and age, a data comparison logic) as the data comparison logic, the data information in the database is compared with the full amount of data, The difference in other data information in the database information.
  • the data comparison logic if there is data comparison logic, the data information is compared according to the data comparison data to form a data information comparison group, and the data information in the corresponding data comparison group is compared, and when the data is compared, if the user does not set
  • the data comparison logic identifies the data comparison as a full-scale data comparison, which ensures the comprehensiveness of the data comparison and compares the data information on a unified basis.
  • step S30 includes:
  • Step S31 when it is detected that the data information comparison is completed, it is determined whether the data amount of the data information is greater than a threshold.
  • the output of the data comparison result can be output according to the user setting, but there may be a large amount of data comparison, and a specific document is required for data output. 9. Determine whether the output of the data comparison is greater than the maximum data amount.
  • the data is output by using xls, xlsx, and csv formats, because the data capacity of the xls and xlsx tables is limited (xls, xlsx tables are suitable for storing data amount is less than 65525, if the comparison result exceeds 65525 can be output in csv format), it will be necessary to determine whether the data amount of the comparison data information is greater than a threshold (threshold value is 65525).
  • step S32 if the data amount of the data information is not greater than the threshold, the data comparison result is output according to the data output format.
  • the result of the data comparison may be output according to the user's setting (the user may set the name of the data output when the data is compared, the data comparison process, or the data comparison result is output.
  • Information such as the output format, the user-set data output format can contain all data formats, ie xls, xlsx or csv).
  • Step S33 If the data amount of the data information is greater than the threshold, the data comparison result is output according to a preset default format.
  • the data comparison result needs to be output in the csv format document, and the data comparison result is according to a preset format (preset default format: when the data volume is greater than 65525, the csv format is adopted. Document) output, the user can customize the naming of documents in csv format.
  • the output of the data comparison result is limited, so that the result of the data comparison is output according to the user definition, and when the data amount exceeds the preset value, the preset format is adopted.
  • the output reduces the user's operation and improves the efficiency of data comparison.
  • the data comparison method further includes:
  • Step S90 Adjust the data comparison function in the data comparison file based on the output data information comparison result to optimize the data comparison file.
  • the user can customize the setting SQL statement on the terminal, so that the data information of different databases is compared according to the user-defined sql statement. It is necessary to add that the server of the data comparison can be based on Based on the output data information comparison result, the program function corresponding to the adjustment data comparison data comparison data makes the data comparison result display easier to view.
  • the data comparison function in the data comparison file is adjusted to optimize the data comparison file, and the user can customize the sql statement to satisfy the user's data comparison requirement, or data.
  • the comparison background automatically adjusts the setting data comparison program according to the output data comparison result, so that the data comparison program is more optimized.
  • the data comparison method further includes:
  • the data comparison data is compared according to the data comparison process to prompt the user to modify the data input information.
  • the required data comparison result is not obtained, that is, the data comparison is abnormal, and the data comparison abnormality processing scheme: when the entered query content does not conform to the format, the output 'Data Incorrect, please check the Document' (for example: the database name does not exist in the configuration document, the SQL statement has a syntax error, the number of logical primary keys is inconsistent, etc.), or other exception handling: when there are other exceptions in the query, the result will not be output. That is, when the result document is found to be missing, please check whether the entered query condition has content that does not meet the requirements (for example: whether the number of table fields is inconsistent, lack of SQL statement, etc.). According to the data comparison process, the data is compared with the abnormal factor to prompt The user modifies the data input information.
  • the Document' for example: the database name does not exist in the configuration document, the SQL statement has a syntax error, the number of logical primary keys is inconsistent, etc.
  • other exception handling when there are other exceptions in the query, the result will not be output. That is, when the
  • the data comparison data is compared according to the data comparison process to prompt the user to modify the data input information, and the execution of the data comparison result is abnormal.
  • the factor allows the user to prompt the user to check the data according to the data comparison logic to correct the input of the information.
  • the present invention also provides a data comparison device.
  • the detection prompting module 10 is configured to display a data comparison window when the data comparison request is detected, to prompt the user to input the data comparison information;
  • the detection output module 30 is configured to output the result of the comparison of the data information when the comparison of the data information is detected.
  • the data comparison method may refer to various embodiments of the data comparison method of the present invention, and details are not described herein again.
  • the present invention also provides a readable storage medium.
  • the readable storage medium of the present invention stores a data comparison program that implements any of the steps of the data comparison method described above when the program is executed by the processor.
  • portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a terminal device which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A data comparison method, comprising the following steps: displaying a data comparison window when a data comparison request is detected, thereby prompting a user to input data comparison information (S10); based on the data comparison information input by the user, determining a data comparison range, and comparing data information contained in the corresponding range (S20); and when it is detected that the data information comparison is finished, outputting a data information comparison result (S30). A data comparison apparatus and device, and a readable storage medium are also correspondingly provided. The data comparison among different databases is realized by means of a program, and the data comparison result is quickly and accurately obtained.

Description

数据比对方法、装置、设备及可读存储介质  Data comparison method, device, device and readable storage medium
本申请要求于2017年6月12日提交中国专利局、申请号为201710440984.9、发明名称为“数据比对方法、装置及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。The present application claims priority to Chinese Patent Application No. JP-A No. No. No. No. No. No. No. No. No. No. No. No. No. In the application.
技术领域Technical field
本发明涉及计算机技术领域,尤其涉及一种数据比对方法、装置、设备及可读存储介质。The present invention relates to the field of computer technologies, and in particular, to a data comparison method, apparatus, device, and readable storage medium.
背景技术Background technique
随着数据库存储的数据量越来越大,不同的数据库存储不同类型的数据,各个数据类型之间相互关联,而各个数据库之间相互独立。As the amount of data stored in the database is larger and larger, different databases store different types of data, and each data type is associated with each other, and each database is independent of each other.
各个数据库之间存在数据信息的导入,而在数据库数据信息导入之后,涉及到确认导入数据信息是否正确,现通常采用筛选的方法确认导入数据是否正确,在筛选过后进行人眼的比对识别,这样的数据筛选比对识别的方式效率较低,正确率较低,针对不同的数据库数据比对显得更为复杂,需要用户登录不同的数据库进行数据的筛选比对,以此同时这样的筛选方式并不能针对不同的数据接口的数据,进行验证或者数据的逻辑比较。There is data information import between each database, and after the database data information is imported, it is related to confirming whether the imported data information is correct. Now, it is usually confirmed by screening method whether the imported data is correct, and the human eye is compared and identified after the screening. Such data screening is less efficient and less accurate, and the data rate is more complicated for different database data comparisons. Users need to log in different databases to compare and match data, and at the same time, such screening methods It is not possible to perform verification or logical comparison of data for data of different data interfaces.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种数据比对方法、装置、设备及可读存储介质,旨在提高数据比对的效率和准确率。The main object of the present invention is to provide a data comparison method, apparatus, device and readable storage medium, aiming at improving the efficiency and accuracy of data comparison.
为实现上述目的,本发明提供一种数据比对方法,数据比对方法包括以下步骤:To achieve the above object, the present invention provides a data comparison method, and the data comparison method includes the following steps:
当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息;When the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information;
基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息;Determining a data comparison range based on the user input data comparison information, and comparing the data information included in the corresponding range;
当检测到数据信息比对完成时,将数据信息比对的结果输出。When the comparison of the data information is detected, the result of the comparison of the data information is output.
为实现上述目的,本发明还提供一种数据比对装置;To achieve the above object, the present invention also provides a data comparison device;
检测提示模块,用于当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息;a detection prompting module, configured to display a data comparison window when the data comparison request is detected, to prompt the user to input the data comparison information;
确定比对模块,用于基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息;Determining a comparison module, configured to determine a data comparison range based on the user input data comparison information, and compare the data information included in the corresponding range;
检测输出模块,用于当检测到数据信息比对完成时,将数据信息比对的结果输出。The detection output module is configured to output the result of the comparison of the data information when the comparison of the data information is detected.
为实现上述目的,本发明还提供一种数据比对设备,所述数据比对设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据比对程序,所述数据比对程序被所述处理器执行时实现上述的数据比对方法的任一项步骤。To achieve the above object, the present invention also provides a data comparison device, the data comparison device comprising: a memory, a processor, and a data comparison program stored on the memory and operable on the processor, The data comparison program implements any of the steps of the data comparison method described above when executed by the processor.
此外,为实现上述目的,本发明还提供一种可读存储介质,所述可读存储介质上存储有数据比对程序,所述数据比对程序被处理器执行时实现上所述的数据比对方法的任一项步骤。In addition, in order to achieve the above object, the present invention also provides a readable storage medium, on which the data comparison program is stored, and the data comparison program implements the data ratio described above when executed by the processor. Any step of the method.
本发明通过程序实现数据比对,由于程序支持同库、跨库的数据对比,无需登录不同的数据库,可支持自定义数据库,将数据源填写至数据比对窗口的对应位置中,按对比程序的对比语句实现大批量数据表两两对比,有效提高了数据对比效率,将人工进行反复筛选过滤的数据比对,转换为程序自动处理获取相同或者不同数据库的数据信息进行数据比对,可节省较大人力时间,并且减少人工处理过程中的错误导致的对比结果不准确,同时能快速准确地得到数据比对结果。The invention realizes data comparison through a program. Since the program supports data comparison between the same library and the cross-database, it is not necessary to log in to different databases, and the custom database can be supported, and the data source is filled in the corresponding position of the data comparison window, according to the comparison program. The comparison statement realizes the comparison of large-volume data tables, which effectively improves the data comparison efficiency. The data is manually compared and filtered repeatedly, and is converted into a program to automatically process the data information of the same or different databases for data comparison, thereby saving Larger manpower time, and reduced errors in manual processing results in inaccurate comparison results, and can quickly and accurately obtain data comparison results.
附图说明DRAWINGS
图1是本发明实施例方案涉及的硬件运行环境的装置结构示意图;1 is a schematic structural diagram of a device in a hardware operating environment according to an embodiment of the present invention;
图2为本发明数据比对方法第一实施例的流程示意图;2 is a schematic flow chart of a first embodiment of a data comparison method according to the present invention;
图3为本发明数据比对方法第二实施例的流程示意图;3 is a schematic flow chart of a second embodiment of a data comparison method according to the present invention;
图4为本发明数据比对方法第三实施例的流程示意图;4 is a schematic flow chart of a third embodiment of a data comparison method according to the present invention;
图5为图2中数据比对方法的步骤S20的细化流程示意图;FIG. 5 is a schematic flowchart of the refinement of step S20 of the data comparison method in FIG. 2;
图6为图2中数据比对方法的步骤S30的细化流程示意图;6 is a schematic diagram of a refinement process of step S30 of the data comparison method in FIG. 2;
图7为本发明数据比对方法第四实施例的流程示意图;FIG. 7 is a schematic flowchart diagram of a fourth embodiment of a data comparison method according to the present invention; FIG.
图8为本发明数据比对方法各实施例结合的场景示意图;FIG. 8 is a schematic diagram of a scenario in which the data comparison method of the present invention is combined;
图9为本发明数据比对方法数据比对输出设置场景示意图;9 is a schematic diagram of a data comparison setting setting scenario of a data comparison method according to the present invention;
图10为本发明数据比对装置一实施例的功能模块示意图。FIG. 10 is a schematic diagram of functional modules of an embodiment of a data comparison device according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的终端(又叫数据比对设备)结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of a terminal (also referred to as a data comparison device) in a hardware operating environment according to an embodiment of the present invention.
本发明实施例终端可以是PC,也可以是智能手机、平板电脑、便携计算机等具有显示功能的可移动式终端设备。In the embodiment of the present invention, the terminal may be a PC, or may be a portable terminal device having a display function, such as a smart phone, a tablet computer, or a portable computer.
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage. The memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
可选地,终端还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。其中,传感器比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏的亮度,接近传感器可在移动终端移动到耳边时,关闭显示屏和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,移动终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the terminal may further include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more. Among them, sensors such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display according to the brightness of the ambient light, and the proximity sensor may turn off the display and/or when the mobile terminal moves to the ear. Backlighting. As a kind of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. No longer.
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It will be understood by those skilled in the art that the terminal structure shown in FIG. 1 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及数据比对应用程序。As shown in FIG. 1, an operating system, a network communication module, a user interface module, and a data comparison application may be included in the memory 1005 as a computer storage medium.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的数据比对应用程序,并执行以下操作:In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect the client (user end), and perform data communication with the client; and the processor 1001 can be used to call the data comparison application stored in the memory 1005 and perform the following operations:
数据比对方法包括以下步骤:The data comparison method includes the following steps:
当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息;When the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information;
基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息;Determining a data comparison range based on the user input data comparison information, and comparing the data information included in the corresponding range;
当检测到数据信息比对完成时,将数据信息比对的结果输出。When the comparison of the data information is detected, the result of the comparison of the data information is output.
进一步地,处理器1001可以调用存储器1005中存储的数据比对应用程序,还执行以下操作:Further, the processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
数据比对窗口用于显示数据比对文件和配置文件,所述数据比对文件由Excel表格中设置数据比对函数形成,The data comparison window is used to display a data comparison file and a configuration file, and the data comparison file is formed by setting a data comparison function in an Excel table.
所述当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息的步骤之前包括:The step of displaying the data comparison window to prompt the user to input the data comparison information before detecting the data comparison request includes:
获取预置数据库信息,并根据预置数据库信息中的数据库地址生成配置文件,以供用户根据数据比对需求设置配置文件形成指定配置文件;Obtaining preset database information, and generating a configuration file according to the database address in the preset database information, so that the user forms a configuration file according to the data comparison requirement setting profile;
建立数据比对文件的比对函数与指定配置文件之间的响应关联关系。Establish a response relationship between the comparison function of the data comparison file and the specified configuration file.
进一步地,处理器1001可以调用存储器1005中存储的数据比对应用程序,还执行以下操作:Further, the processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
数据比对信息包含数据源、数据比对逻辑和数据输出格式,所述基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息的步骤之前包括:The data comparison information includes a data source, a data comparison logic, and a data output format. The step of determining the data comparison range based on the user input data comparison information and comparing the data information included in the corresponding range includes:
获取数据比对文件中输入的数据比对信息,判断数据比对信息是否包含数据比对逻辑;Obtaining data comparison information and comparing the data entered in the file, and determining whether the data comparison information includes data comparison logic;
若数据比对信息包含数据比对逻辑,则根据数据比对逻辑比对数据信息;If the data comparison information includes data comparison logic, the data information is compared according to the data comparison logic;
若数据比对信息不包含数据比对逻辑,则将数据比对范围的数据信息认定为全量数据比对。If the data comparison information does not include the data comparison logic, the data information of the data comparison range is determined as the full data comparison.
进一步地,处理器1001可以调用存储器1005中存储的数据比对应用程序,还执行以下操作:Further, the processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息的步骤包括:The step of determining the data comparison range based on the user input data comparison information and comparing the data information included in the corresponding range includes:
根据数据比对信息中的数据源在响应关联关系中,确定数据信息的源数据库并从源数据库中提取数据信息,并判断是否存在数据比对逻辑;Determining a source database of the data information according to the data source in the data comparison information, extracting the data source from the source database, and determining whether there is data comparison logic;
若存在数据比对逻辑,则根据数据比对逻辑组合数据信息,形成数据信息比对组,并对比对应数据比对组中的数据信息。If there is data comparison logic, the data information is combined according to the data comparison logic to form a data information comparison group, and the data information in the corresponding data comparison group is compared.
进一步地,处理器1001可以调用存储器1005中存储的数据比对应用程序,还执行以下操作:Further, the processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
根据数据比对信息中的数据源在响应关联关系中,确定数据信息的源数据库并从源数据库中提取数据信息,并判断是否存在数据比对逻辑的步骤之后还包括:According to the data source in the data comparison information, in the response association relationship, determining the source database of the data information and extracting the data information from the source database, and determining whether there is a data comparison logic step further includes:
若不存在数据比对逻辑,则将源数据库中的全数据字段作为数据比对逻辑,并将数据库中的数据信息进行全量数据比对。If there is no data comparison logic, the full data field in the source database is used as the data comparison logic, and the data information in the database is compared with the full data.
进一步地,处理器1001可以调用存储器1005中存储的数据比对应用程序,还执行以下操作:Further, the processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
当检测到数据信息比对完成时,将数据信息比对的结果输出的步骤包括:When it is detected that the data information comparison is completed, the steps of outputting the result of the data information comparison include:
当检测到数据信息比对完成时,判断数据信息的数据量是否大于阈值;When it is detected that the data information comparison is completed, it is determined whether the data amount of the data information is greater than a threshold;
若数据信息的数据量不大于阈值,则将数据比对结果按照数据输出格式输出;If the data amount of the data information is not greater than the threshold, the data comparison result is output according to the data output format;
若数据信息的数据量大于阈值,则将数据比对结果按照预设缺省格式输出。If the data amount of the data information is greater than the threshold, the data comparison result is output according to a preset default format.
进一步地,处理器1001可以调用存储器1005中存储的数据比对应用程序,还执行以下操作:Further, the processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
当检测到数据信息比对完成时,将数据信息比对的结果输出的步骤之后包括:After detecting that the data information comparison is completed, the step of outputting the result of the data information comparison includes:
基于输出的数据信息比对结果,调整数据比对文件中的数据比对函数,以优化数据比对文件。Based on the output data information comparison result, the data comparison function in the data comparison file is adjusted to optimize the data comparison file.
进一步地,处理器1001可以调用存储器1005中存储的数据比对应用程序,还执行以下操作:Further, the processor 1001 can call the data comparison application stored in the memory 1005, and also performs the following operations:
当检测到数据信息比对完成时,将数据信息比对的结果输出步骤之后还包括:When the data information comparison is completed, the output of the data information comparison step further includes:
若数据比对结果输出异常,则根据数据比对流程追溯数据比对异常因素,以提示用户修改数据输入信息。If the data comparison result is abnormal, the data comparison data is compared according to the data comparison process to prompt the user to modify the data input information.
参照图2,在本发明数据比对方法第一实施例中,数据比对方法包括:Referring to FIG. 2, in the first embodiment of the data comparison method of the present invention, the data comparison method includes:
步骤S10,当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息。Step S10: When the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information.
当终端检测到数据比对请求时,终端的显示屏出现数据比对窗口(具体地,当终端检测到数据比对请求时,可触发终端上数据比对的应用程序的执行,终端可调用数据比对底层接口的,从而在终端的显示界面上显示数据比对的窗口),在数据比对窗口对应显示数据比对文件和数据比对程序运行时需要的用户设置的配置文件,在数据比对文件和配置文件中需要用户填写的数据比对信息(数据比对信息:包括数据比对的数据源、数据库信息(数据库名称、数据库网络地址、数据库接口及对应的数据库中的数据文档信息)、数据比对逻辑(数据比对逻辑包含数据比对的逻辑主键和数据比对的逻辑组合键,具体地,可将数据比对主键理解为数据比对的参照量,数据比对的基准,逻辑主键,即,一个数据比对的参照量,逻辑组合键,即,两个数据比对的参照量)和数据比对结果对应的输出格式(数据比对输出格式:即,数据比对结果在xxx类型的文档中输出,文档的名称xxx))。When the terminal detects the data comparison request, the display screen of the terminal displays a data comparison window (specifically, when the terminal detects the data comparison request, the execution of the application of the data comparison on the terminal may be triggered, and the terminal may call the data. Comparing the underlying interface, so that the data comparison window is displayed on the display interface of the terminal, and the data comparison window displays the data comparison file and the data is compared with the configuration file required by the user when the program is running, in the data ratio Data matching information required for users in files and configuration files (data comparison information: data sources including data comparison, database information (database name, database network address, database interface, and data document information in the corresponding database) Data comparison logic (the data comparison logic includes logical primary keys of data comparisons and logical combination keys of data comparisons. Specifically, the data comparison primary key can be understood as a reference quantity of data comparison, a reference of data comparison, Logical primary key, that is, a reference quantity of a data comparison, a logical combination key, that is, a reference of two data comparisons ) And the comparison result data corresponding to the output format (output format data alignment: that is, comparison result output data, the name of the document xxx)) xxx type in the document.
步骤S20,基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息。Step S20: Determine a data comparison range based on the user input data comparison information, and compare the data information included in the corresponding range.
获取用户输入的数据比对信息,根据数据比对信息确定数据库(本发明中可实现相同或者不同的数据库的数据信息比对),确定比对的数据信息的数据库后,进一步根据数据库的网络地址,查询数据接口,从数据接口中调用的数据信息,即确定数据信息的范围(从xxx数据库中调用xxx数据接口到xxx数据接口中的数据信息),将数据库对应范围的数据信息,按照数据比对程序中的数据比对sql语句(sql语句:在数据比对文件中设置,在Excel中运行,由程序开发者根据用户的使用情况开发得到,具体地可以是JAVA、python、VBA或者其他编程语言)进行数据比对。Obtaining data comparison information input by the user, determining a database according to the data comparison information (the data information comparison of the same or different databases can be implemented in the present invention), determining the database of the compared data information, and further determining the network address according to the database , query data interface, data information called from the data interface, that is, determine the scope of the data information (from the xxx database call xxx data interface to the data information in the xxx data interface), the data corresponding to the range of the database, according to the data ratio Compare the data in the program with the sql statement (sql statement: set in the data comparison file, run in Excel, developed by the program developer according to the user's usage, specifically JAVA, python, VBA or other programming Language) for data comparison.
步骤S30,当检测到数据信息比对完成时,将数据信息比对的结果输出。Step S30, when it is detected that the data information comparison is completed, the result of the comparison of the data information is output.
用户可以设置数据输出的数据输出文档格式和对应文档的名称,数据比对设备上存储数据比对的程序,可基于数据比对范围中的数据进行比对,在数据比对范围中的数据比对完成时,数据比对程序停止执行,跳出数据比对语句,在检测到跳出数据比对语句时,即,在数据比对完成时,获取用户设置的数据比对结果的数据输出格式,将数据比对的结果输出显示,用户可以直观准确地看到数据比对的结果。The user can set the data output document format of the data output and the name of the corresponding document. The data comparison program stores the data comparison on the device, and can compare the data in the data comparison range, and the data ratio in the data comparison range When the completion is completed, the data comparison program stops executing, and the data comparison statement is jumped out. When the data comparison statement is detected, that is, when the data comparison is completed, the data output format of the data comparison result set by the user is obtained, and The output of the data comparison shows that the user can visually and accurately see the results of the data comparison.
在本实施例中当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息,基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息,当检测到数据信息比对完成时,将数据信息比对的结果输出,通过程序实现数据比对,由于程序支持同库、跨库的数据对比,无需登录不同的数据库,可支持自定义数据库,将数据源填写至数据比对窗口的对应位置中,按对比程序的对比语句实现大批量数据表两两对比,有效提高了数据对比效率,将人工进行反复筛选过滤的数据比对,转换为程序自动处理获取相同或者不同数据库的数据信息进行数据比对,可节省较大人力时间,并且减少人工处理过程中的错误导致的对比结果不准确,同时能快速准确地得到数据比对结果。In the embodiment, when the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information, and the data comparison range is determined based on the user input data comparison information, and the data included in the corresponding range is compared. Information, when the comparison of the data information is completed, the result of the comparison of the data information is output, and the data comparison is realized by the program. Since the program supports the comparison of the data in the same library and the cross-database, it is not necessary to log in to different databases, and the customization can be supported. Database, fill the data source to the corresponding position of the data comparison window, compare the large number of data tables according to the comparison statement of the comparison program, effectively improve the data comparison efficiency, compare the data manually by repeated filtering and filtering, and convert For the program to automatically process the data information of the same or different databases for data comparison, it can save a lot of manpower time, and reduce the inaccurate comparison result caused by errors in the manual processing process, and can quickly and accurately obtain the data comparison result.
参照图3,本发明数据比对方法第二实施例,所述数据比对窗口用于显示数据比对文件和配置文件,所述数据比对文件由Excel表格中设置数据比对函数形成,所述数据比对方法包括:Referring to FIG. 3, in a second embodiment of the data comparison method of the present invention, the data comparison window is configured to display a data comparison file and a configuration file, and the data comparison file is formed by setting a data comparison function in an Excel table. The data comparison methods include:
步骤S40,获取预置数据库信息,并根据预置数据库信息中的数据库地址生成配置文件,以供用户根据数据比对需求设置配置文件形成指定配置文件。Step S40: Acquire preset database information, and generate a configuration file according to the database address in the preset database information, so that the user forms a specified configuration file according to the data comparison requirement setting configuration file.
数据比对主要运用在不同或者相同的数据库数据信息的比对中(即,本发明主要应用在两个上下游数据库,下游数据库的数据信息是由上游数据库导入的,现有的方法主要是在数据导入的过程中进行数据的比对验证,或者数据导入后,登录数据库进行人工的数据比对,或者比对不同的数据口的数据信息相似度等),在本实施例中程序运开发时,获取预置数据库信息,(预置数据库信息,即,现有的不同的数据库的名称、数据库网络地址、数据库接口及对应的数据库中的数据文档信息),生成配置文件,以供用户根据数据比对需求设置配置文件形成指定配置文件,具体地,软件开发时生成数据比对配置文件,用户在数据比对时根据数据比对情况在配置文件中对应输入信息,形成指定配置文件,用户根据数据比对需求在配置文件中输入的信息可以包含用户名、密码和数据库网络地址信息。The data comparison is mainly used in the comparison of different or the same database data information (that is, the invention is mainly applied to two upstream and downstream databases, and the data information of the downstream database is imported by the upstream database, and the existing methods are mainly In the process of data import, the data is compared and verified, or after the data is imported, the database is compared for manual data comparison, or the similarity of data information of different data ports is compared, etc., in the embodiment, when the program is developed Obtaining preset database information (preset database information, that is, existing different database names, database network addresses, database interfaces, and corresponding data document information in the database), generating a configuration file for the user to use according to the data Comparing the requirement setting configuration file to form a specified configuration file, specifically, generating a data comparison configuration file during software development, and correspondingly inputting information in the configuration file according to the data comparison situation when the user compares the data, forming a specified configuration file, and the user according to the Data comparison requirements The information entered in the configuration file can contain Username, password, and database network address information.
步骤S50,建立数据比对文件的比对函数与指定配置文件之间的响应关联关系。Step S50, establishing a response association relationship between the comparison function of the data comparison file and the specified configuration file.
将用户根据数据比对需求进行信息输入,得到的数据比对指定配置文件与数据比对文件关联,数据比对文件的比对函数与指定配置文件之间的响应关联,即,用户在数据比对时触发数据比对文件中的数据比对指令,数据比对文件中的数据比对函数能调用配置文件中的配置信息进行数据比对程序的运行。The user inputs information according to the data comparison requirement, and the obtained data is associated with the specified configuration file and the data comparison file, and the data comparison function is associated with the response between the file and the specified configuration file, that is, the user is in the data ratio. The data trigger comparison data in the data comparison comparison file in the data comparison function can call the configuration information in the configuration file to perform the data comparison program operation.
在本实施例中获取预置数据库信息,并根据预置数据库信息中的数据库地址生成配置文件,以供用户根据数据比需求设置配置文件形成指定配置文件,建立数据比对文件的比对函数与指定配置文件之间的响应关联关系。本实施例通过获取预置的数据库的信息,生成数据比对配置文件,以提示用户根据数据比对需求设置配置文件得到指定配置文件,并将指定配置文件与数据比对文件关联,用户触发数据比对指令时可根据指定配置文件中的数据库信息,运行数据比对文件中的数据比对程序,实现不同或者相同数据库中的批量数据信息的比对,无需用户登录不同的数据库信息数据的导入导出,人工数据比对,加快了数据比对的效率。In this embodiment, the preset database information is acquired, and a configuration file is generated according to the database address in the preset database information, so that the user can form a configuration file according to the data setting requirement configuration file, and establish a comparison function of the data comparison file and Specifies the response association between profiles. In this embodiment, the information of the preset database is acquired, and a data comparison configuration file is generated to prompt the user to obtain a specified configuration file according to the data matching requirement setting file, and associate the specified configuration file with the data comparison file, and the user triggers the data. When comparing instructions, according to the database information in the specified configuration file, the data comparison program in the data comparison file can realize the comparison of the batch data information in different or the same database, and the user does not need to log in to import different database information data. Export, manual data comparison, speed up the efficiency of data comparison.
参照图4,本发明数据比对方法第三实施例,数据比对信息包含数据源、数据比对逻辑和数据输出格式,所述数据比对方法包括:Referring to FIG. 4, in a third embodiment of the data comparison method of the present invention, the data comparison information includes a data source, a data comparison logic, and a data output format, and the data comparison method includes:
步骤S60,获取数据比对文件中输入的数据比对信息,判断数据比对信息是否包含数据比对逻辑。Step S60: Acquire data comparison information input in the data comparison file, and determine whether the data comparison information includes data comparison logic.
在数据比对文件中需用户输入数据比对信息,结合图8,数据比对信息包含数据源(数据源:包含源数据库,数据库名称等信息),数据比对逻辑(数据比对逻辑:数据比对逻辑的逻辑主键和逻辑组合键)和数据输出格式,获取数据比对文件中输入的数据比对信息,进一步地确定用户是否输入数据比对逻辑,即,判断数据比对信息是否包含数据比对逻辑。如表1所示,“t3eginv”“t0egidw”为数据库名称数据库信息,“select securno, start_date, end_date, dividend_rate, data_state, isused from preferred_stock_float_rate where data_state ='2'”为数据库中需要调用的数据比对范围,“PK_A”为数据比对表格输出信息输出格式的设置,在表1中用户没有包含数据比对逻辑。图8所示设置了数据比对逻辑。In the data comparison file, the user needs to input data comparison information. In combination with FIG. 8, the data comparison information includes a data source (data source: including source database, database name, etc.), and data comparison logic (data comparison logic: data) Comparing the logical primary key and logical combination key of the logic and the data output format, obtaining the data comparison information input in the data comparison file, further determining whether the user inputs the data comparison logic, that is, determining whether the data comparison information contains data Compare logic. As shown in Table 1, "t3eginv" "t0egidw" is the database name database information, "select Securon, start_date, end_date, dividend_rate, data_state, isused from Preferred_stock_float_rate where data_state = '2'" is the data comparison range that needs to be called in the database. "PK_A" is the setting of the output format of the data comparison table output information. In Table 1, the user does not include the data comparison logic. The data is set as shown in Figure 8. Compare logic.
t3eginvT3eginv t0egidwT0egidw PK_APK_A PK_BPK_B FILE_NAMEFILE_NAME
select securno, start_date, end_date, dividend_rate, data_state, isused from preferred_stock_float_rate where data_state = '2'Select securno, start_date, end_date, Dividend_rate, data_state, isused from preferred_stock_float_rate where Data_state = '2' select securno, start_date, end_date, dividend_rate, data_state, isused from IPAP_PREFERRED_FLOAT_RATESelect securno, start_date, end_date, Dividend_rate, data_state, isused from IPAP_PREFERRED_FLOAT_RATE SECURNOSECURNO SECURNOSECURNO
t3eginvT3eginv t0egidwT0egidw PK_APK_A PK_BPK_B FILE_NAMEFILE_NAME
select marketno, securno, publishdate, updatedate, curno, per_int_cash, per_int_cash_tx, consideration_rights_reg_date, ex_dividend_date, share_due_date, data_state, isused from preferred_share_rec where data_state = '2'Select marketno, securno, publishdate, Updatedate, curno, per_int_cash, per_int_cash_tx, Consideration_rights_reg_date, ex_dividend_date, share_due_date, data_state, Isused from preferred_share_rec where data_state = '2' select SECURITY_MARKET_NO, securno, publishdate, updatedate, curno, per_int_cash, per_int_cash_tx, consideration_rights_reg_date, ex_dividend_date, share_due_date, data_state, isused from ipap_preferred_share_recSelect SECURITY_MARKET_NO, securno, Publishdate, updatedate, curno, per_int_cash, per_int_cash_tx, Consideration_rights_reg_date, ex_dividend_date, share_due_date, data_state, Isused from ipap_preferred_share_rec SECURNOSECURNO SECURNOSECURNO
MARKETNOMARKETNO SECURITY_MARKET_NOSECURITY_MARKET_NO
EX_DIVIDEND_DATEEX_DIVIDEND_DATE EX_DIVIDEND_DATEEX_DIVIDEND_DATE
步骤S70,若数据比对信息包含数据比对逻辑,则根据数据比对逻辑比对数据信息。Step S70: If the data comparison information includes data comparison logic, the data information is compared according to the data comparison logic.
若用户输入了数据比对逻辑,则确定数据比对范围之后,可根据用户输入的数据比对逻辑(数据比对逻辑:数据比对逻辑的逻辑主键和逻辑组合键)进行数据比对,具体地,获取数据信息比对的逻辑主键或者是数据比对的逻辑组合键(即,两个数据库中包含某一社区的居民用户信息,在数据比对时基于用户身份证号进行数据比对,则将用户身份证号作为此次数据比对的逻辑主键,同样的将两个数据库中的用户姓名和用户性别作为的数据比对的逻辑组合键,本发明还可实现设置不同的数据比对键,用于确定数据比对的先后顺序),根据数据比对逻辑比对数据源(相同或者不同数据库)中的数据信息。If the user inputs the data comparison logic, after determining the data comparison range, the data can be compared according to the data comparison logic (data comparison logic: logical primary key and logical combination key of the data comparison logic) input by the user, specifically Ground, obtain the logical primary key of the data information comparison or the logical combination key of the data comparison (that is, the two databases contain the resident user information of a certain community, and compare the data based on the user ID number when the data is compared, Then, the user ID number is used as the logical primary key of the data comparison, and the logical combination key of the data matching the user name and the user gender in the two databases is the same. The present invention can also implement different data comparison. The key, used to determine the order of the data comparisons, compares the data information in the data source (same or different database) according to the data comparison logic.
步骤S80若数据比对信息不包含数据比对逻辑,则将数据比对范围的数据信息认定为全量数据比对。Step S80: If the data comparison information does not include the data comparison logic, the data information of the data comparison range is determined as the full data comparison.
在数据比对文件中,用户没有输入数据比对逻辑,将数据比对范围中数据信息中的所有数字作为数据比对逻辑,即,数据库中包含姓名、年龄、身份证号码、电话号码、性别家庭住址等信息,在用户端没有输入数据比对逻辑时,将年龄、身份证号码、电话号码这些数字作为数据比对逻辑,进行全量数据比对。In the data comparison file, the user does not input the data comparison logic, and compares all the numbers in the data information in the data comparison range as the data comparison logic, that is, the database contains the name, age, ID number, telephone number, gender. The home address and other information, when the user does not enter the data comparison logic, the age, ID number, phone number and the number as the data comparison logic, the full amount of data comparison.
在本实施例中获取数据比对文件中输入的数据比对信息,判断数据比对信息是否包含数据比对逻辑,若数据比对信息包含数据比对逻辑,则根据数据比对逻辑比对数据信息,若数据比对信息不包含数据比对逻辑,则将数据比对范围的数据信息认定为全量数据比对。确定数据比对的数据比对逻辑,以得到用户需要的数据比对结果,不需要人工肉眼的数据比对,提高了数据比对的效率,以此同时,用户可自主地设置数据比对的逻辑主键,获得需要的数据比对结果,使数据比对更加高效便捷。In this embodiment, the data comparison information is obtained in the data comparison file, and the data comparison information is included in the data comparison logic. If the data comparison information includes the data comparison logic, the data is compared according to the data comparison logic. Information, if the data comparison information does not contain data comparison logic, the data information of the data comparison range is determined as a full data comparison. Determining the data comparison logic of the data comparison to obtain the data comparison result required by the user, and eliminating the need for artificial macroscopic data comparison, thereby improving the efficiency of the data comparison, and at the same time, the user can independently set the data comparison. The logical primary key, to obtain the required data comparison results, makes the data comparison more efficient and convenient.
参照图5,在本实施例中数据比对方法,步骤S20包括:Referring to FIG. 5, in the data comparison method in this embodiment, step S20 includes:
步骤S21,根据数据比对信息中的数据源在响应关联关系中,确定数据信息的源数据库并从源数据库中提取数据信息,并判断是否存在数据比对逻辑。Step S21: Determine, according to the data source in the data comparison information, the source database of the data information in the response association relationship, and extract the data information from the source database, and determine whether there is data comparison logic.
根据用户输入的数据比对信息中的数据源(数据源:数据库名称、数据库网络地址,数据库接口信息)根据指定配置文件与数据比对文件,在指定配置文件中获取相应的数据信息,确定数据信息的数据库从数据库中提取数据信息,提取数据库中需要比对的数据信息(即,在本发明的数据比对时,用户不用登录数据库,根据用户输入的数据库名称等信息,调用数据库中对对应接口的数据信息(数据信息:包括数据文档信息,文档中的字符信息))。According to the data input data of the user (data source: database name, database network address, database interface information), according to the specified configuration file and the data comparison file, the corresponding data information is obtained in the specified configuration file, and the data is determined. The database of information extracts data information from the database, and extracts data information that needs to be compared in the database (that is, when the data of the present invention is compared, the user does not need to log in to the database, and according to information such as the name of the database input by the user, the database corresponds to the corresponding data. Data information of the interface (data information: including data document information, character information in the document)).
步骤S22,若存在数据比对逻辑,则根据数据比对逻辑组合数据信息,形成数据信息比对组,并对比对应数据比对组中的数据信息。Step S22, if there is data comparison logic, the data information comparison group is formed according to the data comparison logic, and the data information in the corresponding data comparison group is compared.
将数据库中的数据信息按照数据比对逻辑组合,形成数据比对组(数据比对组:可理解为不同源数据库中的相同数字主键形成的数据组合,例如,一批学生的信息分别存储在教育局的教学系统A和学校的教学系统B中,将教育局的教学系统A和学校的教学系统B中的学生信息进行比对,将学生的学号作为数据比对的逻辑主键,则将教育局的教学系统A和学校的教学系统B中同一学号的学生信息组合在一起,会对应出现两个教学系统中同一学号学生的相关信息,将同一学号学生的相关信息作为数据信息比对组,比对对应数据比对组中的其他的学生信息,即,学号相同的两个系统中学生的联系方式、家长姓名等其他信息是否相同),如,下游的数据库中的数据信息与上游数据库中的数据信息相同,需要确定从上游数据库中导入下游数据库中的数据信息是否一致,则将数据库中的一个数据量作为数据比对的逻辑主键,具体地,商品销售系统的数据库中包含不同的子系统,每个子系统中包含不同的商品销售数据,则将同一个商品编号为基准(商品编号:数据比对的逻辑主键),将不同数据库中的同一商品编号的商品信息进行组合,比较同一商品的零售价是否相同,(可以理解为,本发明所述的数据比对不仅仅局限于两个数据库,可以实现多个数据库,两两比对,多次循环比对等情况)。The data information in the database is logically combined according to the data comparison to form a data comparison group (data comparison group: can be understood as a data combination formed by the same digital primary key in different source databases, for example, a group of students' information is stored separately In the teaching system A of the Education Bureau and the teaching system B of the school, the student information of the Education Bureau's teaching system A and the school's teaching system B are compared, and the student's student number is used as the logical primary key of the data comparison. The information of the same student number in the teaching system A of the Education Bureau and the teaching system B of the school will be combined, and the relevant information of the students of the same student number in the two teaching systems will appear, and the relevant information of the students of the same student number will be used as the data information. The comparison group compares the other student information in the corresponding data comparison group, that is, whether the contact information of the students in the two systems with the same student number, the parent name, and the like are the same, for example, the data information in the downstream database. As with the data information in the upstream database, it is necessary to determine whether the data information imported into the downstream database from the upstream database is consistent. Then, a data amount in the database is used as a logical primary key of the data comparison. Specifically, the database of the commodity sales system includes different subsystems, and each subsystem contains different commodity sales data, and the same commodity number is used as a reference. (commodity number: logical primary key of data comparison), combining product information of the same product number in different databases, comparing whether the retail price of the same product is the same, (it can be understood that the data comparison described in the present invention is not only Limited to two databases, you can implement multiple databases, two-two comparisons, multiple loop comparisons, etc.).
在本实施例中根据数据比对信息中的数据源在响应关联关系中,确定数据信息的源数据库并从源数据库中提取数据信息,并判断是否存在数据比对逻辑;若存在数据比对逻辑,则根据数据比对逻辑组合数据信息,形成数据信息比对组,并对比对应数据比对组中的数据信息。根据用户设置的数据比对逻辑进行数据比对,可保证数据比对程序的优化快速,根据用户设置比对数据信息,相比无数据比对逻辑而言,将数据信息按照数据比对逻辑组合可优化数据比对程序,提高数据比对的效率。In this embodiment, according to the data source in the data comparison information, in the response association relationship, the source database of the data information is determined and the data information is extracted from the source database, and it is determined whether there is data comparison logic; if there is data comparison logic Then, according to the data comparison logic, the data information is combined to form a data information comparison group, and the data information in the corresponding data comparison group is compared. According to the data set by the user, the data is compared with the logic, which can ensure the optimization of the data comparison program quickly. According to the user setting, the data information is compared, and the data information is logically combined according to the data comparison logic. The data comparison program can be optimized to improve the efficiency of data comparison.
参照图5,在本实施例中数据比对方法中,步骤S21之后还包括:Referring to FIG. 5, in the data comparison method in this embodiment, after step S21, the method further includes:
步骤S23,若存在数据比对逻辑,则根据数据比对逻辑组合数据信息,形成数据信息比对组,并对比对应数据比对组中的数据信息。Step S23, if there is data comparison logic, the data information comparison group is formed according to the data comparison logic, and the data information in the corresponding data comparison group is compared.
数据比对文件中并不包含数据比对逻辑(即,用户并没有输入数据比对逻辑主键),考虑到不同数据库的情况,将数据信息进行全量数据比对,即,将源数据库中的全数据字段(全数据字段:经数据信息中所有的数字,即,身份号,电话号码和年龄作用一个数据比对逻辑)作为数据比对逻辑,将数据库中的数据信息进行全量数据比对,得到数据库信息中的其他数据信息的差异性。The data comparison file does not contain the data comparison logic (that is, the user does not input the data to compare the logical primary key). Considering the situation of different databases, the data information is compared with the full amount of data, that is, the entire database will be Data field (full data field: all the numbers in the data information, ie, the identity number, phone number and age, a data comparison logic) as the data comparison logic, the data information in the database is compared with the full amount of data, The difference in other data information in the database information.
本实施例中若存在数据比对逻辑,则根据数据比对逻辑组合数据信息,形成数据信息比对组,并对比对应数据比对组中的数据信息,在数据比对时,若用户没有设置数据比对逻辑,则将数据比对认定为全量数据比对,可以保证数据比对的全面性,以一个统一的基准进行数据信息的比对。In the embodiment, if there is data comparison logic, the data information is compared according to the data comparison data to form a data information comparison group, and the data information in the corresponding data comparison group is compared, and when the data is compared, if the user does not set The data comparison logic identifies the data comparison as a full-scale data comparison, which ensures the comprehensiveness of the data comparison and compares the data information on a unified basis.
参照图6,在本实施例中数据比对方法中,步骤S30包括:Referring to FIG. 6, in the data comparison method in this embodiment, step S30 includes:
步骤S31,当检测到数据信息比对完成时,判断数据信息的数据量是否大于阈值。Step S31, when it is detected that the data information comparison is completed, it is determined whether the data amount of the data information is greater than a threshold.
在终端检测到数据信息比对完成,需要对比对结果进行输出,数据比对结果的输出可根据用户设置进行输出,但可能存在数据比对量较大,需要特定的文档进行数据输出,结合图9,确定数据比对的输出量是否大于最大数据量,本发明中采用xls、xlsx与csv格式进行数据输出,由于xls、xlsx表格的数据容量的限制(xls、xlsx表格适于存放数据量小于65525,若比对结果超过65525可采用csv格式输出),将因而需要判断比对数据信息的数据量是否大于阈值(阈值为65525)。After the terminal detects that the data information is compared, the output of the data comparison needs to be compared. The output of the data comparison result can be output according to the user setting, but there may be a large amount of data comparison, and a specific document is required for data output. 9. Determine whether the output of the data comparison is greater than the maximum data amount. In the present invention, the data is output by using xls, xlsx, and csv formats, because the data capacity of the xls and xlsx tables is limited (xls, xlsx tables are suitable for storing data amount is less than 65525, if the comparison result exceeds 65525 can be output in csv format), it will be necessary to determine whether the data amount of the comparison data information is greater than a threshold (threshold value is 65525).
步骤S32,若数据信息的数据量不大于阈值,则将数据比对结果按照数据输出格式输出。In step S32, if the data amount of the data information is not greater than the threshold, the data comparison result is output according to the data output format.
若数据信息量不大于阈值,可将数据比对的结果按照用户的设置输出(用户可以在数据比对的前期,数据比对过程中,或者数据比对结果输出时设置数据输出的名称,数据的输出格式等信息,用户设置的数据输出格式可以包含所有的数据格式,即xls、xlsx或csv)。If the amount of data information is not greater than the threshold, the result of the data comparison may be output according to the user's setting (the user may set the name of the data output when the data is compared, the data comparison process, or the data comparison result is output. Information such as the output format, the user-set data output format can contain all data formats, ie xls, xlsx or csv).
步骤S33,若数据信息的数据量大于阈值,则将数据比对结果按照预设缺省格式输出。Step S33: If the data amount of the data information is greater than the threshold, the data comparison result is output according to a preset default format.
若数据信息的数据量大于阈值,需要将数据比对结果在csv格式的文档中输出,则将数据比对结果按照预设格式(预设缺省格式:数据量大于65525时,采用csv格式的文档)输出,用户可以自定义csv格式的文档的命名。If the data amount of the data information is greater than the threshold, the data comparison result needs to be output in the csv format document, and the data comparison result is according to a preset format (preset default format: when the data volume is greater than 65525, the csv format is adopted. Document) output, the user can customize the naming of documents in csv format.
本实施例中通过对比对数据量的确认,进而对数据比对结果的输出做了限定,可使数据比对的结果按照用户定义输出,在数据量超过预设值时,采用预设的格式输出,减少了用户的操作,提高了数据比对的效率。In this embodiment, by comparing the confirmation of the data amount, the output of the data comparison result is limited, so that the result of the data comparison is output according to the user definition, and when the data amount exceeds the preset value, the preset format is adopted. The output reduces the user's operation and improves the efficiency of data comparison.
参照图7,在本发明数据比对方法的第四实施例中,数据比对方法还包括:Referring to FIG. 7, in the fourth embodiment of the data comparison method of the present invention, the data comparison method further includes:
步骤S90,基于输出的数据信息比对结果,调整数据比对文件中的数据比对函数,以优化数据比对文件。Step S90: Adjust the data comparison function in the data comparison file based on the output data information comparison result to optimize the data comparison file.
基于数据比对的结果输出,用户可以在终端上自定义设置sql语句,使不同的数据库的数据信息按照用户定义的sql语句进行数据比对,需要补充说明的是,数据比对的服务器可以根据基于输出的数据信息比对结果,对应调整数据比对文件中的数据比对的程序函数,使数据比对的结果显示更便于查看。Based on the result output of the data comparison, the user can customize the setting SQL statement on the terminal, so that the data information of different databases is compared according to the user-defined sql statement. It is necessary to add that the server of the data comparison can be based on Based on the output data information comparison result, the program function corresponding to the adjustment data comparison data comparison data makes the data comparison result display easier to view.
在本实施例中基于输出的数据信息比对结果,调整数据比对文件中的数据比对函数,以优化数据比对文件,用户可以自定义sql语句,满足用户的数据比对需求,或者数据比对后台根据输出的数据比对结果,自动调整设置数据比对程序,使数据比对的程序更优化。In this embodiment, based on the output data information comparison result, the data comparison function in the data comparison file is adjusted to optimize the data comparison file, and the user can customize the sql statement to satisfy the user's data comparison requirement, or data. The comparison background automatically adjusts the setting data comparison program according to the output data comparison result, so that the data comparison program is more optimized.
进一步地,在本实施例中数据比对方法还包括:Further, in the embodiment, the data comparison method further includes:
若数据比对结果输出异常,则根据数据比对流程追溯数据比对异常因素,以提示用户修改数据输入信息。If the data comparison result is abnormal, the data comparison data is compared according to the data comparison process to prompt the user to modify the data input information.
在数据比对程序运用一段时间后,并没有得到需要的数据比对结果,即,数据比对出现异常,数据比对异常的处理方案:当录入的查询内容不符合格式时,输出'Data is incorrect, please check the document'(例如:数据库名称不存在配置文档中,SQL语句有语法错误,对比的逻辑主键数量不一致等等),或者其他异常处理:查询中存在其他异常情况时,则不会输出结果。即当发现结果文档缺少时,注意检查录入的查询条件是否有不符合要求的内容(例如:表字段数量是否不一致,缺少SQL语句等等)根据数据比对流程追溯数据比对异常因素,以提示用户修改数据输入信息。After the data comparison program is used for a period of time, the required data comparison result is not obtained, that is, the data comparison is abnormal, and the data comparison abnormality processing scheme: when the entered query content does not conform to the format, the output 'Data Incorrect, please check the Document' (for example: the database name does not exist in the configuration document, the SQL statement has a syntax error, the number of logical primary keys is inconsistent, etc.), or other exception handling: when there are other exceptions in the query, the result will not be output. That is, when the result document is found to be missing, please check whether the entered query condition has content that does not meet the requirements (for example: whether the number of table fields is inconsistent, lack of SQL statement, etc.). According to the data comparison process, the data is compared with the abnormal factor to prompt The user modifies the data input information.
在本实施例中若数据比对结果输出异常,则根据数据比对流程追溯数据比对异常因素,以提示用户修改数据输入信息,通过数据比对程序的执行,对应提示数据比对结果输出异常的因素,使用户根据数据比对逻辑提示用户检查的数据比对信息的输入是否正确。In the embodiment, if the data comparison result is abnormal, the data comparison data is compared according to the data comparison process to prompt the user to modify the data input information, and the execution of the data comparison result is abnormal. The factor allows the user to prompt the user to check the data according to the data comparison logic to correct the input of the information.
进一步地,结合图10,本发明还提供一种数据比对装置。Further, in conjunction with FIG. 10, the present invention also provides a data comparison device.
检测提示模块10,用于当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息;The detection prompting module 10 is configured to display a data comparison window when the data comparison request is detected, to prompt the user to input the data comparison information;
确定比对模块20,用于基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息;Determining the comparison module 20, for determining a data comparison range based on the user input data comparison information, and comparing the data information included in the corresponding range;
检测输出模块30,用于当检测到数据信息比对完成时,将数据信息比对的结果输出。The detection output module 30 is configured to output the result of the comparison of the data information when the comparison of the data information is detected.
其中,数据比对装置各个功能模块实现的步骤可参照本发明数据比对方法的各个实施例,此处不再赘述。For the steps of the data comparison device, the data comparison method may refer to various embodiments of the data comparison method of the present invention, and details are not described herein again.
本发明还提供一种可读存储介质。The present invention also provides a readable storage medium.
本发明可读存储介质上存储有数据比对程序,所述数据比对程序被处理器执行时实现上述的数据比对方法的任一步骤。The readable storage medium of the present invention stores a data comparison program that implements any of the steps of the data comparison method described above when the program is executed by the processor.
其中,智数据比对程序被执行时所实现的方法可参照本发明数据比对方法的各个实施例,此处不再赘述。For the method implemented by the smart data comparison program, refer to various embodiments of the data comparison method of the present invention, and details are not described herein again.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (such as a ROM/RAM as described above). , a disk, an optical disk, including a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (20)

  1. 一种数据比对方法,其特征在于,所述数据比对方法包括以下步骤: A data comparison method, characterized in that the data comparison method comprises the following steps:
    当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息;When the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information;
    基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息;Determining a data comparison range based on the user input data comparison information, and comparing the data information included in the corresponding range;
    当检测到数据信息比对完成时,将数据信息比对的结果输出。When the comparison of the data information is detected, the result of the comparison of the data information is output.
  2. 如权利要求1所述的数据比对方法,其特征在于,所述数据比对窗口用于显示数据比对文件和配置文件,所述数据比对文件由Excel表格中设置数据比对函数形成;The data comparison method according to claim 1, wherein said data comparison window is used to display a data comparison file and a configuration file, and said data comparison file is formed by setting a data comparison function in an Excel table;
    所述当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息的步骤之前包括:The step of displaying the data comparison window to prompt the user to input the data comparison information before detecting the data comparison request includes:
    获取预置数据库信息,并根据预置数据库信息中的数据库地址生成配置文件,以供用户根据数据比需求设置配置文件形成指定配置文件;Obtaining preset database information, and generating a configuration file according to the database address in the preset database information, so that the user can form a specified configuration file according to the data setting configuration file according to the requirement;
    建立数据比对文件的比对函数与指定配置文件之间的响应关联关系。Establish a response relationship between the comparison function of the data comparison file and the specified configuration file.
  3. 如权利要求2所述的数据比对方法,其特征在于,所述数据比对信息包含数据源、数据比对逻辑和数据输出格式,所述基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息的步骤之前,包括:The data comparison method according to claim 2, wherein the data comparison information comprises a data source, a data comparison logic, and a data output format, and the data comparison range is determined based on the user input data comparison information. And before comparing the steps of the data information contained in the corresponding range, include:
    获取数据比对文件中输入的数据比对信息,判断数据比对信息是否包含数据比对逻辑;Obtaining data comparison information and comparing the data entered in the file, and determining whether the data comparison information includes data comparison logic;
    若数据比对信息包含数据比对逻辑,则根据数据比对逻辑比对数据信息;If the data comparison information includes data comparison logic, the data information is compared according to the data comparison logic;
    若数据比对信息不包含数据比对逻辑,则将数据比对范围的数据信息认定为全量数据比对。 If the data comparison information does not include the data comparison logic, the data information of the data comparison range is determined as the full data comparison.
  4. 如权利要求3所述的数据比对方法,其特征在于,所述基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息的步骤包括:The data comparison method according to claim 3, wherein the step of determining a data comparison range based on the user input data comparison information and comparing the data information included in the corresponding range comprises:
    根据数据比对信息中的数据源在响应关联关系中,确定数据信息的源数据库并从源数据库中提取数据信息,并判断是否存在数据比对逻辑;Determining a source database of the data information according to the data source in the data comparison information, extracting the data source from the source database, and determining whether there is data comparison logic;
    若存在数据比对逻辑,则根据数据比对逻辑组合数据信息,形成数据信息比对组,并对比对应数据比对组中的数据信息。If there is data comparison logic, the data information is combined according to the data comparison logic to form a data information comparison group, and the data information in the corresponding data comparison group is compared.
  5. 如权利要求1所述的数据比对方法,其特征在于,所述根据数据比对信息中的数据源在响应关联关系中,确定数据信息的源数据库并从源数据库中提取数据信息,并判断是否存在数据比对逻辑的步骤之后还包括:The data comparison method according to claim 1, wherein in the response association relationship according to the data source in the data comparison information, the source database of the data information is determined and the data information is extracted from the source database, and the data is determined. Whether there are steps to compare data logic, including:
    若不存在数据比对逻辑,则将源数据库中的全数据字段作为数据比对逻辑,并将数据库中的数据信息进行全量数据比对。If there is no data comparison logic, the full data field in the source database is used as the data comparison logic, and the data information in the database is compared with the full data.
  6. 如权利要求1所述的数据比对方法,其特征在于,所述当检测到数据信息比对完成时,将数据信息比对的结果输出的步骤包括:The data comparison method according to claim 1, wherein the step of outputting the result of comparing the data information when the data information comparison is completed is completed:
    当检测到数据信息比对完成时,判断数据信息的数据量是否大于阈值;When it is detected that the data information comparison is completed, it is determined whether the data amount of the data information is greater than a threshold;
    若数据信息的数据量不大于阈值,则将数据比对结果按照数据输出格式输出;If the data amount of the data information is not greater than the threshold, the data comparison result is output according to the data output format;
    若数据信息的数据量大于阈值,则将数据比对结果按照预设缺省格式输出。If the data amount of the data information is greater than the threshold, the data comparison result is output according to a preset default format.
  7. 如权利要求6所述的数据比对方法,其特征在于,所述当检测到数据信息比对完成时,将数据信息比对的结果输出的步骤之后包括:The data comparison method according to claim 6, wherein the step of outputting the result of comparing the data information when the data information comparison is completed is completed:
    基于输出的数据信息比对结果,调整数据比对文件中的数据比对函数,以优化数据比对文件。Based on the output data information comparison result, the data comparison function in the data comparison file is adjusted to optimize the data comparison file.
  8. 如权利要求1所述的数据比对方法,其特征在于,所述当检测到数据信息比对完成时,将数据信息比对的结果输出步骤之后还包括:The data comparison method according to claim 1, wherein when the data information comparison is completed, the step of outputting the data information after the step of outputting the method further comprises:
    若数据比对结果输出异常,则根据数据比对流程追溯数据比对异常因素,以提示用户修改数据输入信息。If the data comparison result is abnormal, the data comparison data is compared according to the data comparison process to prompt the user to modify the data input information.
  9. 一种数据比对装置,其特征在于,所述数据比对装置包括:A data comparison device, characterized in that the data comparison device comprises:
    检测提示模块,用于当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息;a detection prompting module, configured to display a data comparison window when the data comparison request is detected, to prompt the user to input the data comparison information;
    确定比对模块,用于基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息;Determining a comparison module, configured to determine a data comparison range based on the user input data comparison information, and compare the data information included in the corresponding range;
    检测输出模块,用于当检测到数据信息比对完成时,将数据信息比对的结果输出。The detection output module is configured to output the result of the comparison of the data information when the comparison of the data information is detected.
  10. 一种数据比对设备,其特征在于,所述数据比对设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据比对程序,所述数据比对程序被所述处理器执行时实现以下步骤:A data comparison device, characterized in that: the data comparison device comprises: a memory, a processor, and a data comparison program stored on the memory and operable on the processor, the data comparison The following steps are implemented when the program is executed by the processor:
    当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息;When the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information;
    基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息;Determining a data comparison range based on the user input data comparison information, and comparing the data information included in the corresponding range;
    当检测到数据信息比对完成时,将数据信息比对的结果输出。When the comparison of the data information is detected, the result of the comparison of the data information is output.
  11. 如权利要求10所述的数据比对设备,其特征在于,所述数据比对窗口用于显示数据比对文件和配置文件,所述数据比对文件由Excel表格中设置数据比对函数形成;The data comparison device according to claim 10, wherein said data comparison window is for displaying a data comparison file and a configuration file, said data comparison file being formed by setting a data comparison function in an Excel table;
    所述当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息的步骤之前,所述数据比对程序被所述处理器执行时实现以下步骤:The step of: when the data comparison request is detected, displaying the data comparison window to prompt the user to input the data comparison information, the data comparison program is executed by the processor to implement the following steps:
    获取预置数据库信息,并根据预置数据库信息中的数据库地址生成配置文件,以供用户根据数据比需求设置配置文件形成指定配置文件;Obtaining preset database information, and generating a configuration file according to the database address in the preset database information, so that the user can form a specified configuration file according to the data setting configuration file according to the requirement;
    建立数据比对文件的比对函数与指定配置文件之间的响应关联关系。Establish a response relationship between the comparison function of the data comparison file and the specified configuration file.
  12. 如权利要求11所述的数据比对设备,其特征在于,所述数据比对信息包含数据源、数据比对逻辑和数据输出格式,所述基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息的步骤之前,所述数据比对程序被所述处理器执行时实现以下步骤:The data comparison device according to claim 11, wherein the data comparison information comprises a data source, a data comparison logic, and a data output format, and the data comparison range is determined based on the user input data comparison information. And prior to the step of comparing the data information contained in the corresponding range, the data comparison program implements the following steps when executed by the processor:
    获取数据比对文件中输入的数据比对信息,判断数据比对信息是否包含数据比对逻辑;Obtaining data comparison information and comparing the data entered in the file, and determining whether the data comparison information includes data comparison logic;
    若数据比对信息包含数据比对逻辑,则根据数据比对逻辑比对数据信息;If the data comparison information includes data comparison logic, the data information is compared according to the data comparison logic;
    若数据比对信息不包含数据比对逻辑,则将数据比对范围的数据信息认定为全量数据比对。If the data comparison information does not include the data comparison logic, the data information of the data comparison range is determined as the full data comparison.
  13. 如权利要求12所述的数据比对设备,其特征在于,所述数据比对程序被所述处理器执行时实现,所述基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息的步骤包括:The data comparison device according to claim 12, wherein said data comparison program is implemented by said processor, said data comparison range is determined based on user input data comparison information, and the correspondence is compared The steps for the data information contained in the scope include:
    根据数据比对信息中的数据源在响应关联关系中,确定数据信息的源数据库并从源数据库中提取数据信息,并判断是否存在数据比对逻辑;Determining a source database of the data information according to the data source in the data comparison information, extracting the data source from the source database, and determining whether there is data comparison logic;
    若存在数据比对逻辑,则根据数据比对逻辑组合数据信息,形成数据信息比对组,并对比对应数据比对组中的数据信息。If there is data comparison logic, the data information is combined according to the data comparison logic to form a data information comparison group, and the data information in the corresponding data comparison group is compared.
  14. 如权利要求10所述的数据比对设备,其特征在于,所述根据数据比对信息中的数据源在响应关联关系中,确定数据信息的源数据库并从源数据库中提取数据信息,并判断是否存在数据比对逻辑的步骤之后;The data comparison device according to claim 10, wherein said determining a source database of the data information in the response association relationship according to the data source in the data comparison information and extracting the data information from the source database, and determining Whether there is a step of comparing data logic;
    所述数据比对程序被所述处理器执行时实现以下步骤:The data synchronization comparison program implements the following steps when executed by the processor:
    若不存在数据比对逻辑,则将源数据库中的全数据字段作为数据比对逻辑,并将数据库中的数据信息进行全量数据比对。If there is no data comparison logic, the full data field in the source database is used as the data comparison logic, and the data information in the database is compared with the full data.
  15. 如权利要求10所述的数据比对设备,其特征在于,所述数据比对程序被所述处理器执行时实现,所述当检测到数据信息比对完成时,将数据信息比对的结果输出的步骤包括:The data comparison device according to claim 10, wherein said data comparison program is implemented when said program is executed by said processor, said result of comparing said data information when said comparison of said data information is completed The steps of the output include:
    当检测到数据信息比对完成时,判断数据信息的数据量是否大于阈值;When it is detected that the data information comparison is completed, it is determined whether the data amount of the data information is greater than a threshold;
    若数据信息的数据量不大于阈值,则将数据比对结果按照数据输出格式输出;If the data amount of the data information is not greater than the threshold, the data comparison result is output according to the data output format;
    若数据信息的数据量大于阈值,则将数据比对结果按照预设缺省格式输出。If the data amount of the data information is greater than the threshold, the data comparison result is output according to a preset default format.
  16. 一种可读存储介质,其特征在于,所述可读存储介质上存储有数据比对程序,所述数据比对程序被处理器执行时实现以下步骤:A readable storage medium, characterized in that the readable storage medium stores a data comparison program, and the data comparison program implements the following steps when executed by the processor:
    当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息;When the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information;
    基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息;Determining a data comparison range based on the user input data comparison information, and comparing the data information included in the corresponding range;
    当检测到数据信息比对完成时,将数据信息比对的结果输出。When the comparison of the data information is detected, the result of the comparison of the data information is output.
  17. 如权利要求16所述的可读存储介质,其特征在于,所述数据比对程序被处理器执行时实现以下步骤:The readable storage medium of claim 16 wherein said data comparison program is executed by a processor to implement the following steps:
    当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息;When the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information;
    基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息;Determining a data comparison range based on the user input data comparison information, and comparing the data information included in the corresponding range;
    当检测到数据信息比对完成时,将数据信息比对的结果输出。When the comparison of the data information is detected, the result of the comparison of the data information is output.
  18. 如权利要求17所述的可读存储介质,其特征在于,所述数据比对窗口用于显示数据比对文件和配置文件,所述数据比对文件由Excel表格中设置数据比对函数形成;The readable storage medium according to claim 17, wherein said data comparison window is for displaying a data comparison file and a configuration file, said data comparison file being formed by setting a data comparison function in an Excel table;
    所述当检测到数据比对请求时,显示数据比对窗口,以提示用户输入数据比对信息的步骤之前,所述数据比对程序被处理器执行时实现以下步骤:When the data comparison request is detected, the data comparison window is displayed to prompt the user to input the data comparison information, and the data comparison program is executed by the processor to implement the following steps:
    获取预置数据库信息,并根据预置数据库信息中的数据库地址生成配置文件,以供用户根据数据比需求设置配置文件形成指定配置文件;Obtaining preset database information, and generating a configuration file according to the database address in the preset database information, so that the user can form a specified configuration file according to the data setting configuration file according to the requirement;
    建立数据比对文件的比对函数与指定配置文件之间的响应关联关系。Establish a response relationship between the comparison function of the data comparison file and the specified configuration file.
  19. 如权利要求18所述的可读存储介质,其特征在于,所述数据比对信息包含数据源、数据比对逻辑和数据输出格式,所述基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息的步骤之前,所述数据比对程序被处理器执行时实现以下步骤:The readable storage medium of claim 18, wherein the data comparison information comprises a data source, a data comparison logic, and a data output format, wherein the user input data comparison information determines a data comparison range, And before the step of comparing the data information contained in the corresponding range, the data comparison program is executed by the processor to implement the following steps:
    获取数据比对文件中输入的数据比对信息,判断数据比对信息是否包含数据比对逻辑;Obtaining data comparison information and comparing the data entered in the file, and determining whether the data comparison information includes data comparison logic;
    若数据比对信息包含数据比对逻辑,则根据数据比对逻辑比对数据信息;If the data comparison information includes data comparison logic, the data information is compared according to the data comparison logic;
    若数据比对信息不包含数据比对逻辑,则将数据比对范围的数据信息认定为全量数据比对。If the data comparison information does not include the data comparison logic, the data information of the data comparison range is determined as the full data comparison.
  20. 如权利要求16所述的可读存储介质,其特征在于,所述数据比对程序被处理器执行时实现,所述基于用户输入数据比对信息确定数据比对范围,并比对对应范围包含的数据信息的步骤包括:The readable storage medium according to claim 16, wherein said data comparison program is executed by a processor, said user input data comparison information determining a data comparison range, and comparing the corresponding range includes The steps of the data information include:
    根据数据比对信息中的数据源在响应关联关系中,确定数据信息的源数据库并从源数据库中提取数据信息,并判断是否存在数据比对逻辑;Determining a source database of the data information according to the data source in the data comparison information, extracting the data source from the source database, and determining whether there is data comparison logic;
    若存在数据比对逻辑,则根据数据比对逻辑组合数据信息,形成数据信息比对组,并对比对应数据比对组中的数据信息。If there is data comparison logic, the data information is combined according to the data comparison logic to form a data information comparison group, and the data information in the corresponding data comparison group is compared.
PCT/CN2017/111901 2017-06-12 2017-11-20 Data comparison method, apparatus and device, and readable storage medium WO2018227880A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710440984.9A CN107679054B (en) 2017-06-12 2017-06-12 Data comparison method, device and readable storage medium storing program for executing
CN201710440984.9 2017-06-12

Publications (1)

Publication Number Publication Date
WO2018227880A1 true WO2018227880A1 (en) 2018-12-20

Family

ID=61134158

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/111901 WO2018227880A1 (en) 2017-06-12 2017-11-20 Data comparison method, apparatus and device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN107679054B (en)
WO (1) WO2018227880A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108563618A (en) * 2018-03-15 2018-09-21 链家网(北京)科技有限公司 Change method and system on a kind of paper document line
CN109241500B (en) * 2018-08-14 2023-02-03 中国平安人寿保险股份有限公司 File batch comparison method and device, computer equipment and storage medium
CN109669937A (en) * 2018-09-25 2019-04-23 深圳壹账通智能科技有限公司 Table data comparison method, device, equipment and computer readable storage medium
CN109634986B (en) * 2018-10-29 2024-03-29 平安科技(深圳)有限公司 System monitoring method, device, computer and computer readable storage medium
CN109783697B (en) * 2018-12-14 2021-04-27 北京海数宝科技有限公司 Data processing method, data processing device, computer equipment and storage medium
CN109582726B (en) * 2018-12-18 2021-09-07 网易(杭州)网络有限公司 Data table processing method and device
CN110069571A (en) * 2019-03-18 2019-07-30 平安普惠企业管理有限公司 A kind of automated data control methods and device, electronic equipment
CN110109824B (en) * 2019-04-09 2022-05-17 平安科技(深圳)有限公司 Big data autoregression test method and device, computer equipment and storage medium
CN110287182B (en) * 2019-05-05 2021-09-14 浙江吉利控股集团有限公司 Big data comparison method, device, equipment and terminal
CN111159234A (en) * 2019-12-19 2020-05-15 中国建设银行股份有限公司 Method and device for comparing reports
CN111709073A (en) * 2020-06-04 2020-09-25 黄淮学院 Method and system for measuring natural vibration frequency and vibration mode for building structure dynamic analysis
CN113138933A (en) * 2021-05-13 2021-07-20 网易(杭州)网络有限公司 Data table testing method, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722521A (en) * 2012-04-24 2012-10-10 深圳市神盾信息技术有限公司 Method and system for monitoring data comparison
CN103796232A (en) * 2014-02-10 2014-05-14 大唐移动通信设备有限公司 RNC data comparison method and device
CN104268291A (en) * 2014-10-23 2015-01-07 税友软件集团股份有限公司 Data consistency processing method and system
EP2963568A1 (en) * 2012-03-26 2016-01-06 Good Red Innovation Pty Ltd Data selection and identification
CN105740465A (en) * 2016-03-04 2016-07-06 浪潮软件集团有限公司 Flexible custom comparison method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2963568A1 (en) * 2012-03-26 2016-01-06 Good Red Innovation Pty Ltd Data selection and identification
CN102722521A (en) * 2012-04-24 2012-10-10 深圳市神盾信息技术有限公司 Method and system for monitoring data comparison
CN103796232A (en) * 2014-02-10 2014-05-14 大唐移动通信设备有限公司 RNC data comparison method and device
CN104268291A (en) * 2014-10-23 2015-01-07 税友软件集团股份有限公司 Data consistency processing method and system
CN105740465A (en) * 2016-03-04 2016-07-06 浪潮软件集团有限公司 Flexible custom comparison method

Also Published As

Publication number Publication date
CN107679054B (en) 2019-11-05
CN107679054A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
WO2018227880A1 (en) Data comparison method, apparatus and device, and readable storage medium
WO2018205545A1 (en) Data generation method, apparatus, terminal, and computer-readable storage medium
WO2019165691A1 (en) Method, apparatus and device for automatically generating test case, and readable storage medium
WO2019127837A1 (en) Method, apparatus, and device for generating table creation script, and computer readable storage medium
WO2018107610A1 (en) Service data processing method, system and device, and computer-readable storage medium
WO2019104877A1 (en) Method, apparatus and device for connection to insurance purchase through website and medium
WO2019218444A1 (en) Test report generating method, apparatus and device, and storage medium
WO2019037396A1 (en) Account clearing method, device and equipment and storage medium
WO2019174375A1 (en) Interface test method, apparatus and device, and computer-readable storage medium
WO2019192085A1 (en) Method, apparatus and device for direct-connected communication between bank and enterprise, and computer-readable storage medium
WO2019080406A1 (en) Television voice interaction method, voice interaction control device and storage medium
WO2019061613A1 (en) Loan qualification screening method, device and computer readable storage medium
WO2019100604A1 (en) Account inquiry method, apparatus, device, and computer readable storage medium
WO2016058258A1 (en) Terminal remote control method and system
WO2019169814A1 (en) Method, apparatus and device for automatically generating chinese annotation, and storage medium
WO2017041538A1 (en) Terminal user interface controlled display method and device
WO2019104876A1 (en) Insurance product pushing method and system, terminal, client terminal, and storage medium
WO2019051902A1 (en) Terminal control method, air conditioner and computer-readable storage medium
WO2020224247A1 (en) Blockchain–based data provenance method, apparatus and device, and readable storage medium
WO2019041832A1 (en) Method, server and system for modifying source database table structure, and storage medium
WO2018120430A1 (en) Page construction method, terminal, computer-readable storage medium and page construction device
WO2019161597A1 (en) Information sending method, apparatus and device based on instant messaging, and storage medium
WO2017028613A1 (en) Terminal control method and apparatus based on remote controller app
WO2018053963A1 (en) Method and apparatus for upgrading system of smart television
WO2019061530A1 (en) Method and apparatus for automatically adjusting brightness of display, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17914025

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17914025

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07.04.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17914025

Country of ref document: EP

Kind code of ref document: A1