WO2020186783A1 - 数据导入方法、装置、计算机设备和存储介质 - Google Patents

数据导入方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2020186783A1
WO2020186783A1 PCT/CN2019/117782 CN2019117782W WO2020186783A1 WO 2020186783 A1 WO2020186783 A1 WO 2020186783A1 CN 2019117782 W CN2019117782 W CN 2019117782W WO 2020186783 A1 WO2020186783 A1 WO 2020186783A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
template
target
header
file name
Prior art date
Application number
PCT/CN2019/117782
Other languages
English (en)
French (fr)
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 WO2020186783A1 publication Critical patent/WO2020186783A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Definitions

  • This application relates to the computer field, in particular to a data import method, device, computer equipment and storage medium.
  • Microsoft Excel is a spreadsheet software written by Microsoft for computers using Windows and Apple Macintosh operating systems. Intuitive interface, excellent calculation functions and charting tools, coupled with successful marketing, make Excel the most popular personal computer data processing software.
  • a data import method, device, computer equipment, and storage medium are provided.
  • a data import method including:
  • the data template including a target table and a target row header and a target list header under the target table;
  • a data import device including:
  • the template selection module is used to determine a corresponding data template according to the template selection instruction triggered by the original excel data, and the data template includes a target table and a target row header and a target list header under the target table ;
  • a target data selection module configured to determine target data from the original excel data according to the target table, the target row header, and the target list header;
  • the data import module is used to import the target data to the preset database.
  • a computer device including a memory and one or more processors, the memory stores computer readable instructions, when the computer readable instructions are executed by the processor, the one or more processors execute The following steps:
  • the data template including a target table and a target row header and a target list header under the target table;
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors execute the following steps:
  • the data template including a target table and a target row header and a target list header under the target table;
  • Fig. 1 is an application scenario diagram of a data import method according to one or more embodiments.
  • Fig. 2 is a schematic flowchart of a data import method according to one or more embodiments.
  • Fig. 3 is a schematic flowchart of a data import method in another embodiment.
  • Fig. 4 is a schematic flowchart of step S300 according to one or more embodiments.
  • Fig. 5 is a schematic flowchart of a data import method in another embodiment.
  • Figure 6 is a block diagram of a data device according to one or more embodiments.
  • Figure 7 is a block diagram of a computer device according to one or more embodiments.
  • the data import method provided in this application can be applied to the application environment shown in FIG. 1.
  • the terminal 102 and the server 104 communicate through the network.
  • the server 104 first obtains the original excel data of the data, and receives the template selection instruction of the data importer based on the original excel data, calls the corresponding data template in the database according to the template selection instruction, and determines the target data in the original excel data based on the data template, and sets the target The data is imported into the database.
  • the terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server 104 may be implemented by an independent server or a server cluster composed of multiple servers.
  • the data import method of this application can be implemented by a server, and specifically includes the following steps:
  • the original excel data refers to the excel files that are to be imported into the database.
  • the excel files are various table files generated based on the Microsoft Excel program, which can specifically include table files in xls, xlsx, xlsm, and xlsb formats.
  • Microsoft Excel is a spreadsheet software written by Microsoft for computers using Windows and Apple Macintosh operating systems.
  • the server first obtains the original excel data and completes the preparation for data import.
  • the original excel data can be pre-stored on the server side, or the terminal can be submitted to the server side through the network.
  • S400 Receive a template selection instruction triggered according to the original excel data, and determine a corresponding data template according to the template selection instruction.
  • the data template includes a target table and a target row header and a target list header under the target table.
  • the data template refers to the template used for data import.
  • the system will import the corresponding data in the excel table file into the database based on the selected data in the data template.
  • the data template can specifically include the number of each table where the imported target data is located, and each The row header and list header of the target data in the table corresponding to a table number.
  • the template selection instruction refers to the terminal's selection information for many data templates in the server. The terminal can select the corresponding data template to change the target data in the original data. Import the database.
  • the server receives the template selection instruction submitted by the terminal, and determines the corresponding data template among the numerous data templates pre-stored in the server according to the template selection instruction. Specifically, a large number of data templates can be pre-stored in the server. These data templates can be built in the system or formulated by the user according to the actual situation.
  • the server can provide the terminal with the existing data in the server. For the template information of the template, the terminal generates a corresponding interface for the user to select, and then the terminal feeds back the user's selection to the server, and the server determines the data template selected by the user based on the feedback of the terminal.
  • S600 Determine the target data from the original excel data according to the target table, the target row header, and the target list header.
  • the target table refers to the table where the target data is located.
  • One excel data may contain multiple tables, and the import requirements of different tables may be different. Therefore, you must first determine which table of the excel data the target data is located in.
  • Each target table has its corresponding table number, and the target table can be confirmed by the table number.
  • the target row header refers to the header name of the row list where the target data is located.
  • the target list header refers to the header name of the column list where the target data is located.
  • Target data can be located based on the table number, target row header, and target list header.
  • the target list header can be multiple different list header number data, and the data area where the target data is located can be determined by the target row header and the target list header.
  • the data that the user wants to import can be located in the original excel data according to the data template, and the target data that the user wants to import can be determined.
  • the preset database refers to the database used to store the target data.
  • the target database has a corresponding data table to store the target data.
  • the server can directly import the target data into the data table in the corresponding preset database. data import.
  • data can be imported into other files, such as importing target data into another excel file, or word file or PPT file, to complete the data import.
  • the original excel data is first obtained; then the template selection instruction triggered by the original excel data is received, and the corresponding data template is determined according to the template selection instruction; and the original is determined according to the data table, target row header, and target list header in the data template Import target data in excel data; finally import target data.
  • This application uses the template selection instruction to select the corresponding data template to complete the data import task. Import data according to the table number in the template, and the row header and list header of the table corresponding to the table number. Multi-dimensional import is supported, and the data import method is flexible. efficient.
  • the method before step S400, the method further includes:
  • S300 Receive a template generation instruction from the client, and generate a data template.
  • the template generation instruction may be an instruction sent by the user terminal to generate the corresponding template.
  • the template generation instruction includes the specific location of the data corresponding to the data template.
  • the server may generate the corresponding data template according to the template generation instruction submitted by the user terminal.
  • the template generation instruction includes a template request message
  • step S300 specifically includes:
  • S320 Receive a template request message from the client.
  • the template request message refers to the request message sent by the user to the server through the user who wants to make a new template.
  • the existing template in the server may not be able to meet the user's data import request, so the user needs to formulate a new template specifically for the original data to complete the data import work, so a template request message is sent to the server.
  • S340 Send the template to be set to the user terminal.
  • the template to be set can specifically refer to a blank data table.
  • the user can obtain the data template by setting the template to be set.
  • the server can send the template to be set stored in the database to the user terminal for the user to set.
  • S360 Receive a set template feedback from the user terminal, and the set template is a template to be set after the target table selection is completed and the target area in the target table is selected.
  • the target area refers to the area in the excel sheet where the data that the user wants to import is located.
  • the user terminal accepts the template to be set, it can formulate the data template by selecting the target area of the target data in the template to be set.
  • the template to be set is the template that has been set.
  • the server receives the set template feedback from the user.
  • the template to be set may be an excel table file in xls format, and the user can obtain the template to be set by marking corresponding positions in the table.
  • S380 Generate a corresponding data template according to the target table in the set template and the corresponding number of each target row header and target list header corresponding to the target area.
  • the area information of the specific area where the user wants to export the data in the set template can be obtained.
  • the efficiency of data import for users can be effectively improved.
  • the user can directly provide each table number of the target area and its corresponding start row header, start list header, end row header, and end row header to the server side through the user end.
  • the server directly generates the corresponding data template according to the data submitted by the user.
  • the template generation instruction includes the table number and the target area file name
  • step S300 specifically includes:
  • the target area file name includes the start line header file name, the end line header file name, the start list header file name and the end list header file name .
  • the user can directly provide the table number where the data area is located and the file name of the target area to the server through the user terminal to realize the formulation of the data template.
  • the server can realize the purpose of searching the target area by searching the file names corresponding to the start point and the end point of each area in the data template. Then complete the data import. More flexible data import can be achieved through the file name instead of the label corresponding to the target area.
  • step S300 it further includes:
  • the data template After obtaining the data template, the data template needs to be repeatedly tested to prevent the same data template in the system. If the same data template exists, it may cause errors when importing the data. Therefore, the data template needs to be repeatedly tested to ensure the data The correctness of the import.
  • the method before step S800, the method further includes:
  • SS720 obtain the data format requirements and data length requirements of the data template, and perform data verification on the target data according to the data format requirements and data length requirements.
  • Data verification refers to verifying whether the data in the corresponding position in the original data meets the requirements of the data template. Specifically, it can include data format verification and data length verification.
  • Data format verification is Whether the format of the guided data meets the requirements
  • the data length check is whether the length of the guided data meets the requirements
  • the data check can prevent errors in the data imported into the database during the data import process, and improve the accuracy of the data import results Sex.
  • After performing data verification on the target data it also includes cleaning the target data according to the result of the data verification. The data that is about to check the error is removed from the target data, and other data without problems are used as the new target data to complete the update.
  • Data verification can prevent errors in the data imported into the database during the data import process and improve the accuracy of the data import results.
  • step S720 includes:
  • Generate modification suggestions based on the cause of the error generate a verification report based on the line header, list header, error reason, and modification suggestion of the data that has the verification error; send the verification report to the client.
  • the verification report can specifically include the error
  • modification suggestions can effectively improve the correctness of the data upload process by summing up the error reason and generating the modification suggestion, and then improve the efficiency of data upload.
  • the data import method of the present application includes: obtaining original excel data.
  • the data template specifically includes the target table and the target row header and target list header under the target table; according to the target table, target row header, and target list header in the data template Determine the target data in the original excel data.
  • Receiving the template generation instruction from the user side and generating the corresponding data template may specifically include: receiving the template request message from the user side; sending the template to be set to the user side; receiving the set template feedback from the user side, and the set template is to complete the target form selection and target The template to be set after the target area in the table is selected; according to the target table in the set template and the corresponding number of the target row header and target list header corresponding to the target area, the corresponding data template is generated. Or receive the form number and target area file name submitted by the client, and generate the corresponding data template.
  • the target area file name includes the start line header file name, the end line header file name, the start list header file name, and the end list header file name.
  • the user hopes to import the content of the specified area in the same type of excel file into the database through the server containing the data import method of this application to complete the task of data sorting, and the user completes the data import through a terminal personal computer
  • the user first sends a template request instruction to the server, and requests the template to be set from the server.
  • the server sends the template to be set to the user according to the template request message from the user.
  • the user receives it and then sets the setting according to the data import requirements.
  • the setting is completed After that, the template is returned to the server, and the server performs repeated detection on the returned data template.
  • the data template is saved, and then the user terminal inputs the original excel data into the server through the user terminal, and the server displays the database of the server to the user through the terminal
  • the user selects the data template and sends a template selection instruction to the server.
  • the server receives the template selection instruction and determines the corresponding data template according to the template selection instruction; then the server according to the target table and target row header in the data template And the target list header determines the target data in the original excel data. And obtain the data format requirements and data length requirements of the data template, perform data verification on the target data according to the data format requirements and data length requirements; at the same time, clean the target data according to the results of the data verification.
  • a data import device including:
  • the data acquisition module 200 is used to acquire original excel data
  • the template selection module 400 is used to determine the corresponding data template according to the template selection instruction triggered by the original excel data.
  • the data template includes the target table and the target row header and target list header under the target table;
  • the target data selection module 600 is used to determine target data from the original excel data according to the target table, the target row header, and the target list header;
  • the data import module 800 is used to import target data to a preset database.
  • a template generation module is further included, and the template generation module is configured to receive a template generation instruction from the user side and generate a data template.
  • the template generation module is specifically used to: receive a template request message from the user side; send the template to be set to the user side; receive the set template feedback from the user side, and the set template is to complete the target table selection and target table The template to be set after the inner target area is selected; and the corresponding data template is generated according to the target table in the set template and the corresponding number of each target row header and target list header corresponding to the target area.
  • the template generation module is specifically used to: receive the form number and the target area file name submitted by the client, and generate a corresponding data template.
  • the target area file name includes the start line header file name and the end line header file. Name, start list header file name, and end list header file name.
  • a repeat verification module is further included.
  • the repeat verification module is configured to perform repeated detection on the generated data template, and save the generated data template when the repeated detection passes.
  • a data verification module is further included.
  • the data verification module is specifically used to obtain the data format requirements and data length requirements of the data template, and perform data verification on the target data according to the data format requirements and data length requirements.
  • the data verification module is also used to: if there is an error data in the target data to be verified, obtain the error reason of the data with the verification error; generate a modification suggestion according to the error reason, and according to the verification error Generate a verification report for the row header, list header, error reason, and modification suggestions of the data; send the verification report to the client.
  • Each module in the above-mentioned data import device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 7.
  • the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium.
  • the database of the computer equipment is used to store template data.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer readable instruction is executed by the processor to realize a data import method.
  • FIG. 7 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more processors perform the following steps:
  • the data template includes the target table and the target row header and target list header under the target table;
  • the processor further implements the following steps when executing the computer-readable instructions: receiving a template generation instruction from the user side, and generating a data template.
  • the processor also implements the following steps when executing the computer-readable instructions: receiving a template request message from the user side; sending the template to be set to the user side; receiving the set template feedback from the user side, and the set template is complete
  • the target table is selected and the template to be set after the target area in the target table is selected; and the corresponding data template is generated according to the corresponding numbers of the target table and target area in the set template.
  • the processor further implements the following steps when executing the computer-readable instructions: receiving the form number and the file name of the target area submitted by the user, and generating a corresponding data template, the file name of the target area includes the start line header file name , End line list header file name, start list header file name, and end list header file name.
  • the processor further implements the following steps when executing the computer-readable instructions: repeat detection of the generated data template, and when the repeated detection passes, save the generated data template.
  • the processor further implements the following steps when executing the computer-readable instructions: obtaining the data format requirements and data length requirements of the data template, and performing data verification on the target data according to the data format requirements and data length requirements.
  • the processor further implements the following steps when executing the computer-readable instructions: if there is an error in the target data to be verified, obtain the error reason of the data with the error in the verification; generate a modification suggestion according to the error reason, Generate a verification report according to the row header, list header, error reason, and modification suggestions of the data with verification errors; and send the verification report to the client.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors execute the following steps:
  • the data template includes the target table and the target row header and target list header under the target table;
  • the following steps are further implemented: receiving a template generation instruction from the user side, and generating a data template.
  • the following steps are also implemented: receiving a template request message from the user side; sending the template to be set to the user side; receiving the set template feedback from the user side, and the set template is The template to be set after the target table selection and the target area selection in the target table are completed; and the corresponding data template is generated according to the target table in the set template and the corresponding number of each target row header and target list header corresponding to the target area.
  • the following steps are also implemented: receiving the form number and the file name of the target area submitted by the client, and generating the corresponding data template, the file name of the target area includes the start line header file Name, ending line list header file name, starting list header file name, and ending list header file name.
  • the following steps are further implemented: repeat detection of the generated data template, and when the repeated detection passes, save the generated data template.
  • the following steps are also implemented: obtaining the data format requirements and data length requirements of the data template, and performing data verification on the target data according to the data format requirements and data length requirements.
  • the following steps are also implemented: if there is an error in the checked target data, obtain the error reason of the data with the error in the check; generate modification suggestions according to the reason of the error , Generate a verification report based on the line header, list header, error reason, and modification suggestions of the data with verification errors; and send the verification report to the client.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)
  • General Factory Administration (AREA)

Abstract

一种数据导入方法,包括:获取原始excel数据;而后接收根据原始excel数据触发的模板选择指令,根据模板选择指令确定对应数据模板;并根据数据模板内数据表格、目标行表头以及目标列表头确定原始excel数据内的导入目标数据;导入目标数据。

Description

数据导入方法、装置、计算机设备和存储介质
相关申请的交叉引用
本申请要求于2019年3月21日提交中国专利局,申请号为2019102184248,申请名称为“数据导入方法、装置、计算机设备以及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机领域,特别是涉及一种数据导入方法、装置、计算机设备以及存储介质。
背景技术
Microsoft Excel是Microsoft为使用Windows和Apple Macintosh操作系统的电脑编写的一款电子表格软件。直观的界面、出色的计算功能和图表工具,再加上成功的市场营销,使Excel成为最流行的个人计算机数据处理软件。
然而,发明人意识到,目前业内的基于Excel模板的数据导入只支持根据一维列表头导入,即只能基于列表头对整列数据进行数据导入,数据导入的限制较大,灵活性不够。
发明内容
根据本申请公开的各种实施例,提供一种数据导入方法、装置、计算机设备以及存储介质。
一种数据导入方法,包括:
获取原始excel数据;
接收根据所述原始excel数据触发的模板选择指令,根据所述模板选择指 令确定对应的数据模板,所述数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
根据所述目标表格、所述目标行表头以及所述目标列表头,从所述原始excel数据内确定出目标数据;及
导入所述目标数据至预设数据库。
一种数据导入装置,包括:
数据获取模块,用于获取原始excel数据;
模板选取模块,用于根据所述原始excel数据触发的模板选择指令,根据所述模板选择指令确定对应的数据模板,所述数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
目标数据选取模块,用于根据所述目标表格、所述目标行表头以及所述目标列表头,从所述原始excel数据内确定出目标数据;及
数据导入模块,用于导入所述目标数据至预设数据库。
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:
获取原始excel数据;
接收根据所述原始excel数据触发的模板选择指令,根据所述模板选择指令确定对应的数据模板,所述数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
根据所述目标表格、所述目标行表头以及所述目标列表头,从所述原始excel数据内确定出目标数据;及
导入所述目标数据至预设数据库。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
获取原始excel数据;
接收根据所述原始excel数据触发的模板选择指令,根据所述模板选择指令确定对应的数据模板,所述数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
根据所述目标表格、所述目标行表头以及所述目标列表头,从所述原始excel数据内确定出目标数据;及
导入所述目标数据至预设数据库。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为根据一个或多个实施例中数据导入方法的应用场景图。
图2为根据一个或多个实施例中数据导入方法的流程示意图。
图3为另一个实施例中数据导入方法的流程示意图。
图4为根据一个或多个实施例中S300步骤的流程示意图。
图5为另一个实施例中数据导入方法的流程示意图。
图6为根据一个或多个实施例中数据装置的框图。
图7为根据一个或多个实施例中计算机设备的框图。
具体实施方式
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的数据导入方法,可以应用于如图1所示的应用环境中。终 端102与服务器104通过网络进行通信。服务器104首先获取数据原始excel数据,并接收数据导入方基于原始excel数据的模板选择指令,根据模板选择指令调用数据库内对应数据模板,并基于数据模板确定原始excel数据内的目标数据,并将目标数据导入至数据库中。终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
如图2所示,在其中一个实施例中,本申请的数据导入方法,可以通过服务器实现,具体包括以下步骤:
S200,获取原始excel数据。
原始excel数据是指准备要导入至数据库中的excel文件,excel文件为基于Microsoft Excel程序生成的各种表格文件,具体可以包括xls、xlsx、xlsm以及xlsb等格式的表格文件。Microsoft Excel是Microsoft为使用Windows和Apple Macintosh操作系统的电脑编写的一款电子表格软件。
服务器首先获取原始的excel数据,完成数据导入的准备工作,原始excel数据可以预存于服务器端,也可以是终端通过网络提交至服务器端的。
S400,接收根据原始excel数据触发的模板选择指令,根据模板选择指令确定对应的数据模板,数据模板包括目标表格以及目标表格下的目标行表头和目标列表头。
数据模板是指用于数据导入的模板,系统会基于数据模板内已选择的数据将excel表格文件内对应的数据导入数据库,数据模板具体可以包括导入的目标数据所处的各个表格编号,以及每个表格编号对应的表格内目标数据所处的行表头以及列表头,模板选择指令是指终端对服务器内众多数据模板的选择信息,终端可以通过选择对应数据模板来将原始数据内的目标数据导入数据库。
服务器接着就接收终端提交的模板选择指令,根据模板选择指令确定预存于服务器中众多的数据模板中的对应数据模板。具体地,服务器中可以预存有大量的数据模板,这些数据模板可以是系统自带的,也可以是用户根据 实际情况制定的,在开始数据导入的工作之后,服务器可以向终端提供服务器内已有模板的模板信息,终端生成对应的界面供用户选择,而后终端将用户的选择反馈给服务器,服务器基于终端反馈的确定用户所选择的数据模板。
S600,根据目标表格、目标行表头以及目标列表头,从原始excel数据内确定出目标数据。
目标表格是指目标数据所在的表格,一个excel数据可能含有多个表格,不同表格的导入需求可能不相同,所以首先需要确定目标数据所在的是excel数据的哪个表格。每个目标表格有其对应的表格编号,可以通过表格编号确认目标表格。目标行表头是指目标数据所在的行列表的表头名称,同理,目标列表头是指目标数据所在的列列表的表头名称。基于表格编号、目标行表头、目标列表头就可以对目标数据进行定位。目标列表头可以是是多个不同的列表头编号数据,通过目标行表头以及目标列表头可以确定目标数据所在的数据区域。
在确定用户选取的数据模板之后,可以根据数据模板在原始excel数据内对用户希望导入的数据进行定位,确定用户希望导入的目标数据。
S800,导入目标数据至预设数据库。
在确定目标数据后,可以导入目标数据至预设数据库,完成数据导入。其中,预设数据库是指用于存储目标数据的数据库,目标数据库内存在对应数据表存储目标数据,服务器在确定目标数据之后可以直接将目标数据导入到对应的预设数据库中数据表内,完成数据导入。在另一个实施例中,可以将数据导入到其他文件中,如将目标数据导入到另一个excel文件,或者word文件或者PPT文件,完成数据导入。
上述数据导入方法,首先获取原始excel数据;而后接收根据原始excel数据触发的模板选择指令,根据模板选择指令确定对应数据模板;并根据数据模板内数据表格、目标行表头以及目标列表头确定原始excel数据内的导入目标数据;最后导入目标数据。本申请通过模板选择指令来选择对应数据模板来完成数据导入任务,根据模板内表格编号,以及表格编号对应表格的行 表头、列表头导入数据,支持多维度的导入,数据导入方式灵活,导入效率高。
如图3所示,在其中一个实施例中,步骤S400之前还包括:
S300,接收用户端的模板生成指令,生成数据模板。
模板生成指令可以是用户端发送的用于生成对应模板指令,模板生成指令包含了数据模板对应的数据的具体位置,服务器可以根据用户端提交的模板生成指令生成对应数据模板。
如图4所示,在其中一个实施例中,模板生成指令包括了模板请求消息,步骤S300具体包括:
S320,接收用户端的模板请求消息。
模板请求消息是指用户希望制定新模板,所以通过用户端向服务器发送的请求消息。服务器内现有的模板可能无法满足用户数据导入的请求,所以用户需要专门对原始数据制定一个新模板来完成数据导入的工作,所以发送一个模板请求消息至服务器。
S340,将待设置模板发送至用户端。
待设置模板具体可以是指空白的数据表格,用户可以通过对待设置模板进行设置来获得数据模板,服务器可以将数据库内存储的待设置模板发送至用户端,以供用户端进行设置。
S360,接收用户端反馈的已设置模板,已设置模板为完成目标表格选取以及目标表格内目标区域选取后的待设置模板。
目标区域是指excel表格内用户希望导入的数据所处的区域。用户端在接受待设置模板后,可以通过对待设置模板中目标数据的目标区域的选取的来制定数据模板,在用户完成对待设置模板的设置之后,将设置完成的待设置模板即已设置模板反馈至服务器,服务器则接收用户端反馈的已设置模板。在其中一个实施例中,待设置模板可以为一个xls格式的excel表格文件,用户可以通过在表格中的对应位置进行标记来获得待设置模板。
S380,根据已设置模板内目标表格以及目标区域对应的各目标行表头和 目标列表头对应编号,生成对应数据模板。
在获得用户端反馈的已设置模板后,可以根据已设置模板内的用户希望导出的数据所处具体区域的区域信息。在已设置模板中包含的各个目标区域表格的表格编号,以及目标区域所包含的各个具体位置对应行表头以及列表头,生成对应数据模板。通过生成数据模板可以有效地提高用户进行数据导入的效率。在另一个实施例中,用户可以直接通过用户端向服务器端提供目标区域的各个表格编号以及其对应的起始行表头、起始列表头、终止行表头以及终止行表头。服务器端根据用户端提交的数据直接生成对应数据模板。
在其中一个实施例中,模板生成指令包括表格编号以及目标区域文件名,步骤S300具体包括:
接收用户端提交的表格编号以及目标区域文件名,生成对应数据模板,目标区域文件名包括起始行表头文件名、终止行表头文件名、起始列表头文件名以及终止列表头文件名。
在其中一个实施例中,用户可以直接通过用户端向服务器提供数据区域所在的表格编号以及目标区域文件名来实现数据模板的制定。服务器可以通过查找数据模板中各个区域的起始点与终点对应的文件名来实现查找目标区域的目的。继而完成数据的导入。通过文件名而不是目标区域对应的标号可以实现更加灵活的数据导入。
在其中一个实施例中,步骤S300之后,还包括:
对生成的数据模板进行重复检测,当重复检测通过时,保存生成的数据模板。
在获得数据模板之后还需要对数据模板进行重复检测,防止系统中存在一样的数据模板,若存在一样的数据模板,可能会导致数据导入时出现错误,所以需要对数据模板进行重复检测以保证数据导入的正确性。
如图5所示,在其中一个实施例中,步骤S800之前,还包括:
SS720,获取数据模板的数据格式要求以及数据长度要求,根据数据格式要求以及数据长度要求对目标数据进行数据校验。
每个数据模板都有其对导入数据要求,数据校验是指检验原始数据中对应位置的数据是否符合数据模板的要求,具体可以包含数据格式校验以及数据长度校验,数据格式校验是指导入的数据的格式是否符合要求,数据长度校验是指导入的数据的长度是否符合要求,通过数据校验可以防止数据导入过程中导入到数据库内数据出错,提高数据导入的导入结果的正确性。在对目标数据进行数据校验之后还包括根据数据校验的结果清洗目标数据。即将校验出错的数据剔除出目标数据,将没有问题的其他数据作为新的目标数据,完成更新。通过数据校验可以防止数据导入过程中导入到数据库内数据出错,提高数据导入结果的正确性。
在其中一个实施例中,步骤S720之后包括:
若校验的目标数据中存在出错的数据,则获取校验出错的数据的错误原因;
根据出错原因生成修改建议,根据校验出错的数据的行表头、列表头、错误原因以及修改建议生成校验报告;将校验报告发送至用户端。
在数据校验过程中,可以对校验出错的数据进行总结,获得出错数据的错误原因,并生成对应的修改建议,生成对应的错误校验报告发送至用户端,校验报告具体可以包括出错数据的位置,错误原因以及如果修改来保证数据可以正常通过数据校验的修改建议,通过总结错误原因以及生成修改建议,可以有效提高数据上传过程的正确性,继而提高数据上传的效率。
在其中一个实施例中,本申请的数据导入方法包括:获取原始excel数据。接收根据原始excel数据触发的模板生成指令,生成对应数据模板。对生成的数据模板进行重复检测,当重复检测通过时,保存生成的数据模板。接收模板选择指令,根据模板选择指令确定对应数据模板,数据模板具体包括目标表格以及目标表格下的目标行表头和目标列表头;根据数据模板内的目标表格以及目标行表头、目标列表头确定原始excel数据内目标数据。获取数据模板的数据格式要求以及数据长度要求,根据数据格式要求以及数据长度要求对目标数据进行数据校验;若校验的目标数据中存在出错的数据,则根据数 据校验的结果清洗目标数据。同时获取校验出错的数据的错误原因;根据出错原因生成修改建议,根据校验出错的数据的行表头、列表头、错误原因以及修改建议生成校验报告;将校验报告发送至用户端。将目标数据导入到预设数据库。接收用户端的模板生成指令,生成对应数据模板具体可以包括:接收用户端的模板请求消息;将待设置模板发送至用户端;接收用户端反馈的已设置模板,已设置模板为完成目标表格选取以及目标表格内目标区域选取后的待设置模板;根据已设置模板内目标表格以及目标区域对应的各目标行表头和目标列表头对应编号,生成对应数据模板。或者是接收用户端提交的表格编号以及目标区域文件名,生成对应数据模板,目标区域文件名包括起始行表头文件名、终止行表头文件名、起始列表头文件名以及终止列表头文件名。
在其中一个实施例中,用户希望通过包含本申请数据导入方法的服务器实现将同类型excel文件内指定区域的内容导入数据库以完成数据整理的任务,用户通过一台终端个人计算机来完成数据导入的工作,用户首先向服务器发送模板请求指令,向服务器请求待设置模板,服务器根据用户端的模板请求消息将待设置模板发送至用户端,用户端接收而后根据数据导入的需求对待设置进行设置,设置完成后将模板返回服务器,服务器对该返回的数据模板进行重复检测,当检测成功时保存该数据模板,而后用户端将原始的excel数据通过用户端输入服务器,服务器通过终端向用户展示服务器的数据库内已存储的数据模板,用户对数据模板进行选择,并向服务器发送模板选择指令,服务器接收模板选择指令,根据模板选择指令确定对应数据模板;而后服务器根据数据模板内的目标表格、目标行表头以及目标列表头确定原始excel数据内目标数据。并获取数据模板的数据格式要求以及数据长度要求,根据数据格式要求以及数据长度要求对目标数据进行数据校验;同时根据数据校验的结果清洗目标数据。若校验的目标数据中存在出错的数据,则同时获取校验出错的数据的错误原因;根据出错原因生成修改建议,根据校验出错的数据的行表头、列表头、错误原因以及修改建议生成校验报告;将 校验报告发送至用户端。最后将清洗完成的目标数据导入到预设数据库。
应该理解的是,虽然图2-5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。在其中一个实施例中,如图6所示,提供了一种数据导入装置,包括:
数据获取模块200,用于获取原始excel数据;
模板选取模块400,用于根据原始excel数据触发的模板选择指令,根据模板选择指令确定对应的数据模板,数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
目标数据选取模块600,用于根据目标表格、目标行表头以及目标列表头,从原始excel数据内确定出目标数据;及
数据导入模块800,用于导入目标数据至预设数据库。
在其中一个实施例中,还包括模板生成模块,模板生成模块用于:接收用户端的模板生成指令,生成数据模板。
在其中一个实施例中,模板生成模块具体用于:接收用户端的模板请求消息;将待设置模板发送至用户端;接收用户端反馈的已设置模板,已设置模板为完成目标表格选取以及目标表格内目标区域选取后的待设置模板;及根据已设置模板内目标表格以及目标区域对应的各目标行表头和目标列表头对应编号,生成对应数据模板。
在其中一个实施例中,模板生成模块具体用于:接收用户端提交的表格编号以及目标区域文件名,生成对应数据模板,目标区域文件名包括起始行表头文件名、终止行表头文件名、起始列表头文件名以及终止列表头文件名。
在其中一个实施例中,还包括重复校验模块,重复校验模块用于对生成的数据模板进行重复检测,当重复检测通过时,保存生成的数据模板。
在其中一个实施例中,还包括数据校验模块,数据校验模块具体用于:获取数据模板的数据格式要求以及数据长度要求,根据数据格式要求以及数据长度要求对目标数据进行数据校验。
在其中一个实施例中,数据校验模块还用于:若校验的目标数据中存在出错的数据,则获取校验出错的数据的错误原因;根据出错原因生成修改建议,根据校验出错的数据的行表头、列表头、错误原因以及修改建议生成校验报告;将校验报告发送至用户端。
关于数据导入装置的具体限定可以参见上文中对于数据导入方法的限定,在此不再赘述。上述数据导入装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。在其中一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图7所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储模板数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种数据导入方法。
本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计 算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行以下步骤:
获取原始excel数据;
接收根据原始excel数据触发的模板选择指令,根据模板选择指令确定对应的数据模板,数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
根据目标表格、目标行表头以及目标列表头,从原始excel数据内确定出目标数据;及
导入目标数据至预设数据库。
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:接收用户端的模板生成指令,生成数据模板。
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:接收用户端的模板请求消息;将待设置模板发送至用户端;接收用户端反馈的已设置模板,已设置模板为完成目标表格选取以及目标表格内目标区域选取后的待设置模板;及根据已设置模板内目标表格以及目标区域对应的各目标行表头和目标列表头对应编号,生成对应数据模板。
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:接收用户端提交的表格编号以及目标区域文件名,生成对应数据模板,目标区域文件名包括起始行表头文件名、终止行表头文件名、起始列表头文件名以及终止列表头文件名。
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:对生成的数据模板进行重复检测,当重复检测通过时,保存生成的数据模板。
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:获取数据模板的数据格式要求以及数据长度要求,根据数据格式要求以及数据长度要求对目标数据进行数据校验。
在其中一个实施例中,处理器执行计算机可读指令时还实现以下步骤:若校验的目标数据中存在出错的数据,则获取校验出错的数据的错误原因; 根据出错原因生成修改建议,根据校验出错的数据的行表头、列表头、错误原因以及修改建议生成校验报告;及将校验报告发送至用户端。
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:
获取原始excel数据;
接收根据原始excel数据触发的模板选择指令,根据模板选择指令确定对应的数据模板,数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
根据目标表格、目标行表头以及目标列表头,从原始excel数据内确定出目标数据;及
导入目标数据至预设数据库。
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:接收用户端的模板生成指令,生成数据模板。
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:接收用户端的模板请求消息;将待设置模板发送至用户端;接收用户端反馈的已设置模板,已设置模板为完成目标表格选取以及目标表格内目标区域选取后的待设置模板;及根据已设置模板内目标表格以及目标区域对应的各目标行表头和目标列表头对应编号,生成对应数据模板。
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:接收用户端提交的表格编号以及目标区域文件名,生成对应数据模板,目标区域文件名包括起始行表头文件名、终止行表头文件名、起始列表头文件名以及终止列表头文件名。
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:对生成的数据模板进行重复检测,当重复检测通过时,保存生成的数据模板。
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:获取数据模板的数据格式要求以及数据长度要求,根据数据格式要求以及数 据长度要求对目标数据进行数据校验。
在其中一个实施例中,计算机可读指令被处理器执行时还实现以下步骤:若校验的目标数据中存在出错的数据,则获取校验出错的数据的错误原因;根据出错原因生成修改建议,根据校验出错的数据的行表头、列表头、错误原因以及修改建议生成校验报告;及将校验报告发送至用户端。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (20)

  1. 一种数据导入方法,包括:
    获取原始excel数据;
    接收根据所述原始excel数据触发的模板选择指令,根据所述模板选择指令确定对应的数据模板,所述数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
    根据所述目标表格、所述目标行表头以及所述目标列表头,从所述原始excel数据内确定出目标数据;及
    导入所述目标数据至预设数据库。
  2. 根据权利要求1所述的方法,其特征在于,所述接收模板选择指令,根据所述模板选择指令确定对应数据模板之前,还包括:
    接收用户端的模板生成指令,生成数据模板。
  3. 根据权利要求2所述的方法,其特征在于,所述接收根据所述原始excel数据触发的模板选择指令,根据所述模板选择指令确定对应的数据模板,包括:
    接收用户端的模板请求消息;
    将待设置模板发送至用户端;
    接收用户端反馈的已设置模板,所述已设置模板为完成目标表格选取以及目标表格内目标区域选取后的待设置模板;及
    根据所述已设置模板内目标表格以及所述目标区域对应的目标行表头和所述目标列表头对应编号,生成对应数据模板。
  4. 根据权利要求2所述的方法,其特征在于,所述模板生成指令包括表格编号以及目标区域文件名,所述接收用户端的模板生成指令,生成数据模板,包括:
    接收用户端的模板生成指令,根据所述表格编号以及所述目标区域文件名,生成对应数据模板,所述目标区域文件名包括起始行表头文件名、终止行表头文件名、起始列表头文件名以及终止列表头文件名。
  5. 根据权利要求2所述的方法,其特征在于,所述接收用户端的模板生成指令,生成数据模板之后,还包括:
    对生成的所述数据模板进行重复检测,当重复检测通过时,保存所述生成的数据模板。
  6. 根据权利要求1所述的方法,其特征在于,所述导入所述目标数据之前,还包括:
    获取所述数据模板的数据格式要求以及数据长度要求,根据所述数据格式要求以及所述数据长度要求对所述目标数据进行数据校验。
  7. 根据权利要求6所述的方法,其特征在于,所述对所述目标数据进行数据校验之后,还包括:
    若校验的目标数据中存在出错的数据,则获取校验出错的数据的错误原因;
    根据出错原因生成修改建议,根据校验出错的数据的行表头、列表头、错误原因以及修改建议生成校验报告;及
    将所述校验报告发送至用户端。
  8. 一种数据导入装置,包括:
    数据获取模块,用于获取原始excel数据;
    模板选取模块,用于根据所述原始excel数据触发的模板选择指令,根据所述模板选择指令确定对应的数据模板,所述数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
    目标数据选取模块,用于根据所述目标表格、所述目标行表头以及所述目标列表头,从所述原始excel数据内确定出目标数据;及
    数据导入模块,用于导入所述目标数据至预设数据库。
  9. 根据权利要求8所述的装置,其特征在于,还包括模板生成模块,模板生成模块用于:
    接收用户端的模板生成指令,生成数据模板。
  10. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中 储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    获取原始excel数据;
    接收根据所述原始excel数据触发的模板选择指令,根据所述模板选择指令确定对应的数据模板,所述数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
    根据所述目标表格、所述目标行表头以及所述目标列表头,从所述原始excel数据内确定出目标数据;及
    导入所述目标数据至预设数据库。
  11. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    接收用户端的模板生成指令,生成数据模板。
  12. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    接收用户端的模板请求消息;
    将待设置模板发送至用户端;
    接收用户端反馈的已设置模板,所述已设置模板为完成目标表格选取以及目标表格内目标区域选取后的待设置模板;及
    根据所述已设置模板内目标表格以及所述目标区域对应的目标行表头和所述目标列表头对应编号,生成对应数据模板。
  13. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    接收用户端的模板生成指令,根据所述表格编号以及所述目标区域文件名,生成对应数据模板,所述目标区域文件名包括起始行表头文件名、终止行表头文件名、起始列表头文件名以及终止列表头文件名。
  14. 根据权利要求11所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    对生成的所述数据模板进行重复检测,当重复检测通过时,保存所述生成的数据模板。
  15. 根据权利要求10所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:
    获取所述数据模板的数据格式要求以及数据长度要求,根据所述数据格式要求以及所述数据长度要求对所述目标数据进行数据校验。
  16. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:
    获取原始excel数据;
    接收根据所述原始excel数据触发的模板选择指令,根据所述模板选择指令确定对应的数据模板,所述数据模板包括目标表格以及目标表格下的目标行表头和目标列表头;
    根据所述目标表格、所述目标行表头以及所述目标列表头,从所述原始excel数据内确定出目标数据;及
    导入所述目标数据至预设数据库。
  17. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    接收用户端的模板生成指令,生成数据模板。
  18. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    接收用户端的模板请求消息;
    将待设置模板发送至用户端;
    接收用户端反馈的已设置模板,所述已设置模板为完成目标表格选取以及目标表格内目标区域选取后的待设置模板;及
    根据所述已设置模板内目标表格以及所述目标区域对应的目标行表头和所述目标列表头对应编号,生成对应数据模板。
  19. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    接收用户端的模板生成指令,根据所述表格编号以及所述目标区域文件名,生成对应数据模板,所述目标区域文件名包括起始行表头文件名、终止行表头文件名、起始列表头文件名以及终止列表头文件名。
  20. 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:
    对生成的所述数据模板进行重复检测,当重复检测通过时,保存所述生成的数据模板。
PCT/CN2019/117782 2019-03-21 2019-11-13 数据导入方法、装置、计算机设备和存储介质 WO2020186783A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910218424.8A CN110046334A (zh) 2019-03-21 2019-03-21 数据导入方法、装置、计算机设备以及存储介质
CN201910218424.8 2019-03-21

Publications (1)

Publication Number Publication Date
WO2020186783A1 true WO2020186783A1 (zh) 2020-09-24

Family

ID=67274975

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117782 WO2020186783A1 (zh) 2019-03-21 2019-11-13 数据导入方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN110046334A (zh)
WO (1) WO2020186783A1 (zh)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112183040A (zh) * 2020-09-27 2021-01-05 金蝶软件(中国)有限公司 一种凭证生成方法以及相关装置
CN112765159A (zh) * 2020-12-30 2021-05-07 医渡云(北京)技术有限公司 报表生成方法、系统、计算机设备和存储介质
CN112818937A (zh) * 2021-03-02 2021-05-18 广联达科技股份有限公司 Excel文件的识别方法、装置、电子设备及可读存储介质
CN112862449A (zh) * 2021-03-02 2021-05-28 岭东核电有限公司 结构化工单生成方法、装置、计算机设备和存储介质
CN112883698A (zh) * 2021-03-22 2021-06-01 京东数字科技控股股份有限公司 图表生成方法、装置、计算机设备和存储介质
CN113065323A (zh) * 2021-03-17 2021-07-02 平安普惠企业管理有限公司 合同模板数据的导入方法、装置、设备以及存储介质
CN113505580A (zh) * 2021-07-26 2021-10-15 京东科技控股股份有限公司 表格文件的解析方法和装置
CN113642308A (zh) * 2021-08-30 2021-11-12 重庆允成互联网科技有限公司 基于数据可变的数据导入方法、系统、设备及存储介质
CN115542882A (zh) * 2022-09-30 2022-12-30 东风汽车股份有限公司 一种控制器接口配置方法及装置
CN115659931A (zh) * 2022-10-12 2023-01-31 湖南长银五八消费金融股份有限公司 表格数据生成方法、装置与计算机设备
CN116029264A (zh) * 2023-02-01 2023-04-28 上海谐振半导体科技有限公司 一种ate测试数据转换方法及系统

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046334A (zh) * 2019-03-21 2019-07-23 平安国际智慧城市科技股份有限公司 数据导入方法、装置、计算机设备以及存储介质
CN110457302B (zh) * 2019-07-31 2022-04-29 河南开合软件技术有限公司 一种结构化数据智能清洗方法
CN110728121B (zh) * 2019-09-17 2023-08-01 杭州安恒信息技术股份有限公司 基于现有接口实现零开发的数据导入系统及方法
CN110865813A (zh) * 2019-10-15 2020-03-06 平安科技(深圳)有限公司 票据信息采集方法、装置、计算机设备及可读存储介质
CN113127544B (zh) * 2019-12-30 2023-09-22 朱曦炽 数据报表的创建方法、设备以及介质
CN111353286A (zh) * 2020-03-06 2020-06-30 苏宁云计算有限公司 表格文件处理方法、装置、计算机设备和存储介质
CN111476015B (zh) * 2020-04-10 2024-01-05 北京字节跳动网络技术有限公司 一种文档处理方法、装置、电子设备及存储介质
CN111949746A (zh) * 2020-08-18 2020-11-17 北京字节跳动网络技术有限公司 数据处理方法、装置、电子设备及计算机可读介质
CN112035412A (zh) * 2020-08-31 2020-12-04 北京奇虎鸿腾科技有限公司 数据文件导入方法、设备、存储介质及装置
CN112417831A (zh) * 2020-11-23 2021-02-26 中国建设银行股份有限公司 表格合并方法和装置
CN112597746B (zh) * 2020-12-29 2024-05-28 维沃移动通信有限公司 数据显示方法、装置及电子设备
CN112949275B (zh) * 2021-03-12 2024-06-25 中国平安财产保险股份有限公司 将电子表格导入数据库的方法、装置、设备及存储介质
CN113268957A (zh) * 2021-03-19 2021-08-17 广州天越电子科技有限公司 一种实现智能生成标书文档的引用方法
CN113778999A (zh) * 2021-09-29 2021-12-10 平安资产管理有限责任公司 数据模块化处理方法、装置、计算机设备和存储介质
CN113792017A (zh) * 2021-11-17 2021-12-14 中建电子商务有限责任公司 一种校验导入excel的模板内容的方法和系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010016855A1 (en) * 2000-02-18 2001-08-23 Yuko Hiroshige Multi-dimensional table data management unit and recording medium storing therein a spreadsheet program
CN105824940A (zh) * 2016-03-17 2016-08-03 深圳市永兴元科技有限公司 数据导入方法及装置
CN106933835A (zh) * 2015-12-29 2017-07-07 航天信息软件技术有限公司 一种兼容性解析Excel文件的数据导入方法及系统
CN110046334A (zh) * 2019-03-21 2019-07-23 平安国际智慧城市科技股份有限公司 数据导入方法、装置、计算机设备以及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010016855A1 (en) * 2000-02-18 2001-08-23 Yuko Hiroshige Multi-dimensional table data management unit and recording medium storing therein a spreadsheet program
CN106933835A (zh) * 2015-12-29 2017-07-07 航天信息软件技术有限公司 一种兼容性解析Excel文件的数据导入方法及系统
CN105824940A (zh) * 2016-03-17 2016-08-03 深圳市永兴元科技有限公司 数据导入方法及装置
CN110046334A (zh) * 2019-03-21 2019-07-23 平安国际智慧城市科技股份有限公司 数据导入方法、装置、计算机设备以及存储介质

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112183040A (zh) * 2020-09-27 2021-01-05 金蝶软件(中国)有限公司 一种凭证生成方法以及相关装置
CN112765159A (zh) * 2020-12-30 2021-05-07 医渡云(北京)技术有限公司 报表生成方法、系统、计算机设备和存储介质
CN112818937A (zh) * 2021-03-02 2021-05-18 广联达科技股份有限公司 Excel文件的识别方法、装置、电子设备及可读存储介质
CN112862449A (zh) * 2021-03-02 2021-05-28 岭东核电有限公司 结构化工单生成方法、装置、计算机设备和存储介质
CN113065323A (zh) * 2021-03-17 2021-07-02 平安普惠企业管理有限公司 合同模板数据的导入方法、装置、设备以及存储介质
CN112883698B (zh) * 2021-03-22 2024-02-06 京东科技控股股份有限公司 图表生成方法、装置、计算机设备和存储介质
CN112883698A (zh) * 2021-03-22 2021-06-01 京东数字科技控股股份有限公司 图表生成方法、装置、计算机设备和存储介质
CN113505580A (zh) * 2021-07-26 2021-10-15 京东科技控股股份有限公司 表格文件的解析方法和装置
CN113642308A (zh) * 2021-08-30 2021-11-12 重庆允成互联网科技有限公司 基于数据可变的数据导入方法、系统、设备及存储介质
CN115542882A (zh) * 2022-09-30 2022-12-30 东风汽车股份有限公司 一种控制器接口配置方法及装置
CN115542882B (zh) * 2022-09-30 2024-02-27 东风汽车股份有限公司 一种控制器接口配置方法及装置
CN115659931A (zh) * 2022-10-12 2023-01-31 湖南长银五八消费金融股份有限公司 表格数据生成方法、装置与计算机设备
CN116029264A (zh) * 2023-02-01 2023-04-28 上海谐振半导体科技有限公司 一种ate测试数据转换方法及系统

Also Published As

Publication number Publication date
CN110046334A (zh) 2019-07-23

Similar Documents

Publication Publication Date Title
WO2020186783A1 (zh) 数据导入方法、装置、计算机设备和存储介质
WO2021164161A1 (zh) 影像数据标注方法、装置、计算机设备和存储介质
CN109474578B (zh) 报文消息校验方法、装置、计算机设备和存储介质
WO2020233091A1 (zh) 业务数据回退方法、装置、计算机设备和存储介质
WO2020151333A1 (zh) 页面加载方法、装置、计算机设备和存储介质
WO2020253061A1 (zh) 页面生成方法、装置、计算机设备和存储介质
WO2019148669A1 (zh) 机器学习模型的生成方法、装置、计算机设备及存储介质
WO2020258650A1 (zh) 页面信息显示方法、装置、计算机设备和存储介质
CN110413512B (zh) Ab测试方法、装置、计算机设备和存储介质
US10579915B2 (en) Method and device for initializing two-dimensional code
WO2020147432A1 (zh) 代码检测方法、装置、计算机设备及存储介质
CN109542962B (zh) 数据处理方法、装置、计算机设备和存储介质
CN111901383B (zh) 数据请求处理方法、装置、计算机设备和存储介质
WO2019019955A1 (zh) 手势测试方法、装置、计算机设备和存储介质
CN110851173B (zh) 报表生成方法及装置
US20200302914A1 (en) Method, device, computer apparatus, and storage medium of processing claim data
CN113190549B (zh) 多维表数据调取方法、装置、服务器及存储介质
CN115905397A (zh) 一种业务数据的可视化展示方法、装置、系统及介质
CN110517010B (zh) 一种数据处理方法、系统及存储介质
CN113761858A (zh) 表单数据处理方法、装置、计算机设备及存储介质
CN111897728B (zh) 接口调试方法及相关设备
WO2021114621A1 (zh) 基于人工智能的数据替换方法、装置、计算机设备和介质
CN110888901B (zh) 系统管理方法、装置、计算机设备和存储介质
CN110851446B (zh) 数据表的生成方法、装置、计算机设备及存储介质
WO2020192134A1 (zh) 基于Spring MVC的异常处理方法、装置、计算机设备和存储介质

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: 19919696

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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 1205 DATED 02/02/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19919696

Country of ref document: EP

Kind code of ref document: A1