Data filling system and method based on DataX

Through the data filling system based on DataX, the database selection module, field mapping module and DataX tools are used to realize automatic synchronization of Excel files and database tables, solving the tedious and error-prone problems of traditional data filling methods and improving data filling and synchronization. efficiency and accuracy.

CN118607488APending Publication Date: 2024-09-06浪潮智慧城市科技有限公司 +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410751369.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Traditional data filling methods are cumbersome and error-prone, and lack automated support, resulting in low data filling efficiency and insufficient accuracy, especially in the process of synchronizing data to the database.

Method used

A data filling system based on DataX is designed, including database selection module, field mapping module, primary key detection module, task generation module and visual filling module. Automatic synchronization of Excel files and database tables is realized through DataX tools, reducing manual operations and errors. possibility.

Benefits of technology

The automated data filling process is realized, the efficiency and stability of data filling and synchronization are improved, the workload is reduced and the data accuracy is enhanced.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention provides a data filling and reporting system and method based on DataX, and belongs to the technical field of data processing.The data filling and reporting method comprises the steps that a data filling and reporting task is preferentially configured, and a filling and reporting form item header name and a data table field name of a target database are selected for field mapping; a simplified data filling page is generated through a method for defining fields needing to be filled in advance, and data filling task entries and a Json file executable by DataX are generated at the same time. Data filling and reporting are carried out through a visual page, the filled and reported data can generate an Excel file to be stored in a file server, and meanwhile, a Json file executable by DataX is modified to point to the Excel file. And realizing data synchronization of the Excel file and the database table by adopting a DataX tool. According to the method, manual input errors are reduced by configuring the data filling flow of the filling fields in advance and a visual filling interface, and the data filling efficiency and stability are improved by using a DataX tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data reporting system and method based on DataX. Background Art

[0002] In the process of data collection and management, data reporting is a basic and critical link. Many organizations and enterprises need to rely on accurate and timely data input when making daily operations and management decisions. However, traditional data reporting methods mainly rely on a series of cumbersome steps to collect and synchronize this data to the database. This process is not only time-consuming, but also prone to errors due to the complexity of manual operations, which affects the accuracy of the data. Existing data processing systems are insufficient in terms of automation support, especially in the process of data reporting and synchronization to the database. Users often need to manually switch between multiple systems and platforms to perform repetitive and inefficient data reporting tasks. The lack of automated processes not only increases the workload, but also makes it difficult to detect and correct errors in the data reporting process in a timely manner. Summary of the invention

[0003] In order to solve the above technical problems, the present invention provides a data reporting system based on DataX.

[0004] The technical solution of the present invention is:

[0005] A data reporting system based on DataX, comprising:

[0006] Database selection module, used to select the corresponding database and data table;

[0007] The field mapping module is used to obtain all fields of the selected data table and establish the mapping relationship between the header fields of the Excel form and the fields of the database table;

[0008] The primary key detection module is used to detect the selection status of the primary key field of the database table, and generate an automatic filling flag according to the primary key type when the primary key field is not selected;

[0009] The task generation module is used to submit data reporting tasks and generate data reporting task entries and DataX executable Json files based on the corresponding information of the selected Excel fields and database table fields.

[0010] It also includes a visual reporting module for allowing users to select data reporting task items, enter the visual data reporting page, and fill in form items in the data form.

[0011] The visual reporting module further includes: a data generator, which is used to generate an Excel file containing a header and data after the user submits the reporting task, and store it in the server.

[0012] It also includes a DataX task execution module for modifying the target file path in the DataX executable Json file and executing the DataX task to achieve data synchronization between the Excel file and the database table.

[0013] Furthermore,

[0014] Users select and edit fields through interface operations and establish field mapping.

[0015] Furthermore,

[0016] The auto-fill flag is used to automatically fill in the primary key value in the subsequent reporting process.

[0017] Furthermore,

[0018] According to the corresponding information of the selected Excel fields and database table fields, data reporting task entries and DataX executable Json files are automatically generated.

[0019] Furthermore,

[0020] The execution of the DataX task automatically completes the data synchronization from the Excel file to the database table.

[0021] In addition, the present invention also provides a data reporting method based on DataX, comprising the following steps:

[0022] 1) Select the corresponding database and data table, and obtain all fields of the selected data table;

[0023] 2) Add the header field of the Excel form, edit the header field name, and select the corresponding database table field;

[0024] 3) Detect the selection status of the primary key field of the database table. If it is not selected, generate an automatic fill flag;

[0025] 4) Submit the data reporting task, and the backend generates data reporting task entries and DataX executable Json files;

[0026] 5) Select the data reporting task item to be reported, enter the visual data reporting page, and fill in the form items in the data form;

[0027] 6) Submit the reporting task, generate an Excel file and store it in the server;

[0028] 7) Modify the target file path in the DataX executable Json file and execute the DataX task to synchronize the data between the Excel file and the database table.

[0029] Furthermore,

[0030] In step 2), the user selects and edits fields through interface operations and establishes field mapping.

[0031] In step 3), the auto-fill flag is used to automatically fill in the primary key value in the subsequent reporting process.

[0032] In step 4), the backend service automatically generates data reporting task entries and DataX executable Json files based on the corresponding information of the Excel fields and database table fields selected by the user.

[0033] In step 7), the execution of the DataX task automatically completes the data synchronization from the Excel file to the database table.

[0034] The beneficial effects of the present invention are

[0035] The present invention realizes an automated data reporting process. Users report data through a visual interface, reducing the workload of manual input and the possibility of errors. Through the use of the DataX tool, efficient data synchronization between Excel files and databases is achieved, improving the efficiency and stability of overall data reporting and synchronization. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0037] The present invention includes three parts: constructing Excel forms and data table field mapping, visual data reporting and DataX data synchronization. The technical solution adopted is:

[0038] The method for constructing the Excel form and data table field mapping is implemented as follows: 1. Select the corresponding database and data table, and obtain all the fields of the selected data table. 2. Add the header field of the Excel form, edit the header field name and select the corresponding database table field. 3. Detect the selection status of the primary key field of the database table. If it is not selected, generate an automatic fill flag. 4. Submit the data reporting task. The backend generates the data reporting task entry and the DataX executable Json file based on the corresponding information of the selected Excel field and the database table field.

[0039] The visual data reporting method is implemented as follows: 1. Select the data reporting task item to be reported and enter the visual data reporting page. 2. Select a new data item and fill in the form items in the data form. This operation can be repeated until all data is reported. 3. Submit the task. The data reported in step 2 will generate an Excel file in the form of a header and data and stored in the server.

[0040] The DataX data synchronization method is implemented as follows: 1. Modify the Json file executable by DataX, and the target file path in Json is modified to the Excel file path generated in step 3. 2. Execute the DataX task corresponding to the Json file in step 1, extract the data in the Excel file generated during the visualization data reporting process and write it to the corresponding database table.

[0041] The specific operations are as follows:

[0042] 1. According to the system display, the user selects the corresponding database and data table that needs to report data, and the system displays all the fields of the selected data table for the user to choose. The user chooses to add the header field of the Excel form on the interface, edits the name of each header field, and selects the corresponding database table field. The system detects whether the user has selected the primary key field of the database table. If the primary key field is not selected, the system generates an automatic fill flag according to the data type of the primary key field, so that the primary key value can be automatically filled in during the subsequent reporting process. After the user submits the data reporting task, the back-end service generates a data reporting task entry based on the corresponding information of the Excel field and the database table field selected by the user, and creates a DataX executable Json file, which contains all the configuration information required for data reporting and synchronization.

[0043] 2. The user selects the required data reporting task item and clicks the Report button to enter the visual data reporting page. The user selects the option to add a new data item and starts filling in each form item in the data form. The above data form filling operation can be repeated until all data is reported. After the user submits the reporting task, the system generates an Excel file with the data reported in the above operation in the form of header and data, and stores it in a specific directory on the server.

[0044] 3. The backend service modifies the DataX executable Json file and sets the target file path in the Json file to the path of the Excel file generated in step 2. The system calls the DataX tool to execute the DataX task defined in the Json file, which extracts data from the Excel file and writes it to the corresponding database table to complete data synchronization.

[0045] The above description is only a preferred embodiment of the present invention, which is only used to illustrate the technical solution of the present invention, and is not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A data reporting system based on DataX, characterized in that: include: Database selection module, used to select the corresponding database and data table; The field mapping module is used to obtain all fields of the selected data table and establish the mapping relationship between the header fields of the Excel form and the fields of the database table; The primary key detection module is used to detect the selection status of the primary key field of the database table, and generate an automatic filling flag according to the primary key type when the primary key field is not selected; The task generation module is used to submit data reporting tasks and generate data reporting task entries and DataX executable Json files based on the corresponding information of the selected Excel fields and database table fields. The visual reporting module is used to allow users to select data reporting task items, enter the visual data reporting page, and fill in the form items in the data form; The data generator is used to generate an Excel file containing the table header and data after the user submits the reporting task, and store it in the server; The DataX task execution module is used to modify the target file path in the DataX executable Json file and execute the DataX task to achieve data synchronization between the Excel file and the database table.

2. The system according to claim 1, characterized in that Users select and edit fields through interface operations and establish field mapping.

3. The system according to claim 2, characterized in that The auto-fill flag is used to automatically fill in the primary key value in the subsequent reporting process.

4. The system according to claim 1, characterized in that According to the corresponding information of the selected Excel fields and database table fields, data reporting task entries and DataX executable Json files are automatically generated.

5. The system according to claim 1, characterized in that The execution of the DataX task automatically completes the data synchronization from the Excel file to the database table.

6. A data reporting method based on DataX, characterized in that: The following steps are involved: 1) Select the corresponding database and data table, and obtain all fields of the selected data table; 2) Add the header field of the Excel form, edit the header field name, and select the corresponding database table field; 3) Detect the selection status of the primary key field of the database table. If it is not selected, generate an automatic fill flag; 4) Submit the data reporting task, and the backend generates data reporting task entries and DataX executable Json files; 5) Select the data reporting task item to be reported, enter the visual data reporting page, and fill in the form items in the data form; 6) Submit the reporting task, generate an Excel file and store it in the server; 7) Modify the target file path in the DataX executable Json file and execute the DataX task to synchronize the data between the Excel file and the database table.

7. The method according to claim 6, characterized in that In step 2), the user selects and edits fields through interface operations and establishes field mapping.

8. The method according to claim 6, characterized in that In step 3), the auto-fill flag is used to automatically fill in the primary key value in the subsequent reporting process.

9. The method according to claim 6, characterized in that In step 4), the backend service automatically generates data reporting task entries and DataX executable Json files based on the corresponding information of the Excel fields and database table fields selected by the user.

10. The method according to claim 6, characterized in that In step 7), the execution of the DataX task automatically completes the data synchronization from the Excel file to the database table.

Citation Information

Cited By

  • Method and system for simplifying filling in data collection process

    CN119597767A

  • Excel data emergency reporting and processing method based on dynamic mapping

    CN121580997A