[go: up one dir, main page]

WO2019062191A1 - Electronic device, method and system for extracting data in data table, and storage medium - Google Patents

Electronic device, method and system for extracting data in data table, and storage medium Download PDF

Info

Publication number
WO2019062191A1
WO2019062191A1 PCT/CN2018/089874 CN2018089874W WO2019062191A1 WO 2019062191 A1 WO2019062191 A1 WO 2019062191A1 CN 2018089874 W CN2018089874 W CN 2018089874W WO 2019062191 A1 WO2019062191 A1 WO 2019062191A1
Authority
WO
WIPO (PCT)
Prior art keywords
extracted
field
data table
excel
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2018/089874
Other languages
French (fr)
Chinese (zh)
Inventor
王政
邹学森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2019062191A1 publication Critical patent/WO2019062191A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the present application relates to the field of database technologies, and in particular, to an electronic device, a method, a system, and a storage medium for extracting data of a data table.
  • the purpose of the present application is to provide an electronic device, a method, a system and a storage medium for extracting data of a data table, which are intended to automatically parse and extract data of an Excel data table imported into a financial auxiliary system, saving time and effort, and facilitating the later stage. maintain.
  • the present application provides an electronic device including a memory and a processor coupled to the memory, the memory storing a processing system operable on the processor, the processing The system implements the following steps when executed by the processor:
  • the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data table is determined according to the relationship between the stored service type and the field to be extracted.
  • the field to be extracted associated with the corresponding service type
  • the present application further provides a method for extracting data of a data table, where the method for extracting data of the data table includes:
  • the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data table is determined according to the relationship between the stored service type and the field to be extracted.
  • the field to be extracted associated with the corresponding service type
  • the present application further provides a system for extracting data of a data table, the system for extracting data of the data table includes:
  • a configuration module configured to pre-define a service type corresponding to each Excel data table, and for each service type, configure a to-be-extracted field associated with the service type, and store an association relationship between the service type and the corresponding to-be-extracted field;
  • a determining module configured to identify a service type corresponding to the Excel data table based on a file name of the Excel data table when the Excel data table is imported into the financial assistance system, and determine the relationship according to the stored service type and the relationship to be extracted The field to be extracted associated with the service type corresponding to the Excel data table;
  • An extracting module configured to extract a data object in the Excel data table based on the determined field to be extracted
  • the display module is configured to display the determined to-be-extracted field and the extracted data object for confirmation by the user.
  • the present application also provides a computer readable storage medium having stored thereon a processing system that, when executed by a processor, implements the steps of the method of extracting data of a data table as described above.
  • the utility model has the beneficial effects that the present application can identify the service type of the Excel data table when the Excel data table is imported into the financial assistance system, determine the field to be extracted associated with the service type corresponding to the Excel data table, and extract the to-be-extracted field.
  • the corresponding data object under the field displays the determined to-be-extracted field and the extracted data object.
  • the present application can automatically parse and extract the data of the Excel data table imported into the financial auxiliary system, saving time and effort. There is no need to write various code to analyze and extract data, to avoid differences, and to facilitate later maintenance.
  • FIG. 1 is a schematic diagram of an optional application environment of each embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for extracting data of a data table according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of the refinement process of step S3 shown in FIG. 2.
  • first, second and the like in the present application are for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. .
  • features defining “first” and “second” may include at least one of the features, either explicitly or implicitly.
  • the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. Nor is it within the scope of protection required by this application.
  • FIG. 1 it is a schematic diagram of an application environment of a preferred embodiment of a method for extracting data of a data table.
  • the application environment diagram includes an electronic device 1 and a terminal device 2.
  • the electronic device 1 can perform data interaction with the terminal device 2 through a suitable technology such as a network or a near field communication technology.
  • the terminal device 2 includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a personal computer, a tablet computer, or a smart phone. , Personal Digital Assistant (PDA), game consoles, Internet Protocol Television (IPTV), smart wearable devices, navigation devices, etc., or mobile devices such as digital TVs, desktop computers, Fixed terminal for notebooks, servers, etc.
  • the terminal device 2 is configured to receive an instruction of the user (for example, an instruction to configure a field to be extracted associated with various service types) and send it to the electronic device 1, and display information fed back by the electronic device 1 and the like.
  • the software and/or hardware components of the terminal device 2 for receiving the user's instructions and transmitting them to the electronic device 1 and displaying the information fed back by the electronic device 1 may be integrated into the electronic device 1 without A special terminal device 2 is required.
  • the electronic device 1 is an apparatus capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance.
  • the electronic device 1 may be a computer, a single network server, a server group composed of multiple network servers, or a cloud-based cloud composed of a large number of hosts or network servers, where cloud computing is a type of distributed computing.
  • a super virtual computer consisting of a group of loosely coupled computers.
  • the electronic device 1 may include, but is not limited to, a memory 11 communicably connected to each other through a system bus, a processor 12, and a network interface 13, and the memory 11 stores a processing system operable on the processor 12. It should be noted that FIG. 1 only shows the electronic device 1 having the components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the memory 11 includes a memory and at least one type of readable storage medium.
  • the memory provides a cache for the operation of the electronic device 1;
  • the readable storage medium may be, for example, a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM).
  • a non-volatile storage medium such as a read only memory (ROM), an electrically erasable programmable read only memory (EEPROM), a programmable read only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, or the like.
  • the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1; in other embodiments, the non-volatile storage medium may also be external to the electronic device 1.
  • a storage device such as a plug-in hard disk equipped with an electronic device 1, a smart memory card (SMC), a Secure Digital (SD) card, a flash card, or the like.
  • the readable storage medium of the memory 11 is generally used to store an operating system installed in the electronic device 1 and various types of application software, such as program codes of the processing system in an embodiment of the present application. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.
  • the processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments.
  • the processor 12 is typically used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication with the terminal device 2.
  • the processor 12 is configured to run program code or process data stored in the memory 11, such as running a processing system or the like.
  • the network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 1 and other electronic devices.
  • the network interface 13 is mainly used to connect the electronic device 1 with one or more terminal devices 2, and establish a data transmission channel and a communication connection between the electronic device 1 and one or more terminal devices 2.
  • the processing system is stored in the memory 11 and includes at least one computer readable instruction stored in the memory 11, the at least one computer readable instruction being executable by the processor 12 to implement the methods of various embodiments of the present application;
  • the at least one computer readable instruction can be classified into different logic modules depending on the functions implemented by its various parts.
  • Step S1 pre-defining the service type corresponding to each Excel data table, and configuring, for each service type, a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted;
  • an automatic parsing and extracting component of the Excel data table content is developed.
  • the business type corresponding to each Excel data table can be defined in advance, for example, for an Excel data table.
  • the “travel expense reimbursement template”, the corresponding business type is the reimbursement type.
  • the Excel data table “entry line upload template”, the corresponding business type is the financial system accounting line record type.
  • the field to be extracted associated with the configuration For each type of service, configure the field to be extracted associated with the service type. For example, for the type of reimbursement, the field to be extracted associated with the configuration includes “employee name or employee ID, department, reimbursement, reimbursement amount and Reimbursement time” and so on. For the financial system accounting line record type, the fields to be extracted associated with the configuration include “ticket type, reimbursement category, output tax rate, accounting processing type, detail type, description and flexfield information”.
  • the relationship between the service types of the various Excel data tables and the corresponding fields to be extracted is stored, for example, in the form of an association mapping table. storage.
  • Step S2 when the Excel data table is imported into the financial auxiliary system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data is determined according to the relationship between the stored service type and the field to be extracted.
  • the field to be extracted associated with the service type corresponding to the table;
  • one or more Excel data tables containing different contents may be imported at one time.
  • the service type corresponding to the Excel data table is identified based on the file name of the Excel data table. As described above, if the file name of the Excel data table is “travel expense reimbursement template”, then The business type of the Excel data table is identified as a reimbursement order type. If the file name of the Excel data table is “entry line upload template”, the business type of the Excel data table is identified as a financial system accounting line record type.
  • the association relationship between the service type and the field to be extracted determines the field to be extracted associated with the service type corresponding to the Excel data table.
  • Step S3 extracting a data object in the Excel data table based on the determined field to be extracted;
  • step S4 the determined field to be extracted and the extracted data object are displayed for confirmation by the user.
  • the fields to be extracted are the employee name or employee ID, the department, the reimbursement reason, the reimbursement time and the reimbursement amount.
  • the corresponding data objects under the fields to be extracted are “Zhang San, Sales Department, Beijing Business Travel, 2017.07.20,
  • the train ticket fee is 500 yuan
  • the air ticket fee is 1,500 yuan
  • the accommodation fee is 500 yuan.”
  • the field to be extracted and the extracted data object are displayed for the user to confirm and confirm. If the user confirms that the displayed content has no errors, it is put into the library for subsequent execution of corresponding data operations, such as data encapsulation, warehousing, and the like.
  • the embodiment identifies the service type of the Excel data table, determines the to-be-extracted field associated with the service type corresponding to the Excel data table, and extracts the to-be-extracted field.
  • the corresponding data object under the field, the determined to-be-extracted field and the extracted data object are displayed.
  • the data of the Excel data table imported into the financial auxiliary system can be automatically parsed and extracted, saving time. Labor-saving, no need to write a variety of code to analyze and extract data, to avoid differences, and to facilitate later maintenance.
  • the step S3 includes:
  • the first determined field to be extracted is compared with each fixed field in the Excel data table. If the fixed field in the Excel data table is the same as the first determined field to be extracted, The second determined field to be extracted is continuously compared with each fixed field in the Excel data table until all the determined fields to be extracted are compared.
  • the determined to-be-extracted field is in one-to-one correspondence with each fixed field, it is analyzed whether there is a corresponding data object under each fixed field. If each fixed field has a corresponding data object, the fixed field may be directly extracted. The corresponding data object.
  • the fields to be extracted include: employee name or employee ID, department, reimbursement reason, reimbursement time and reimbursement amount details, and the fixed fields in Table 1 are: employee name, The department, reimbursement reason, reimbursement time and reimbursement amount details, if the two are corresponding and identical, you can analyze whether there are corresponding data objects in each fixed field in Table 1, if any, you can extract.
  • step S3 further includes: if the determined to-be-extracted field does not correspond to each fixed field, or if there is no corresponding data object in the fixed field, the generating includes the determined to be extracted.
  • a prompt message for the field to prompt the user to manually check the Excel data table.
  • the following steps are further implemented: according to a predetermined conversion rule before displaying the extracted data object. Convert the extracted data object to the corresponding data format.
  • the user may set a plurality of conversion rules in advance, and set one or more of the conversion rules to be the predetermined conversion rule, or the user corresponding to the Excel data table after setting a plurality of conversion rules in advance.
  • the type automatically selects the corresponding conversion rule.
  • the extracted data object Before displaying the extracted data object, converting the extracted data object into a corresponding data format according to a predetermined conversion rule, for example, for the amount of money, uniformly converting it into data in units of yuan and two decimal places, for Time is unified into the form of "****-**-**", and so on.
  • the data object is converted into a corresponding data format, which is convenient for the user to confirm, and facilitates subsequent execution of corresponding data operations, such as data encapsulation, storage, and the like.
  • FIG. 2 is a schematic flowchart of a method for extracting data of a data table according to an embodiment of the present application.
  • the method for extracting data of a data table includes the following steps:
  • Step S1 pre-defining the service type corresponding to each Excel data table, and configuring, for each service type, a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted;
  • an automatic parsing and extracting component of the Excel data table content is developed.
  • the business type corresponding to each Excel data table can be defined in advance, for example, for an Excel data table.
  • the “travel expense reimbursement template”, the corresponding business type is the reimbursement type.
  • the Excel data table “entry line upload template”, the corresponding business type is the financial system accounting line record type.
  • the field to be extracted associated with the configuration For each type of service, configure the field to be extracted associated with the service type. For example, for the type of reimbursement, the field to be extracted associated with the configuration includes “employee name or employee ID, department, reimbursement, reimbursement amount and Reimbursement time” and so on. For the financial system accounting line record type, the fields to be extracted associated with the configuration include “ticket type, reimbursement category, output tax rate, accounting processing type, detail type, description and flexfield information”.
  • the relationship between the service types of the various Excel data tables and the corresponding fields to be extracted is stored, for example, in the form of an association mapping table. storage.
  • Step S2 when the Excel data table is imported into the financial auxiliary system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data is determined according to the relationship between the stored service type and the field to be extracted.
  • the field to be extracted associated with the service type corresponding to the table;
  • one or more Excel data tables containing different contents may be imported at one time.
  • the service type corresponding to the Excel data table is identified based on the file name of the Excel data table. As described above, if the file name of the Excel data table is “travel expense reimbursement template”, then The business type of the Excel data table is identified as a reimbursement order type. If the file name of the Excel data table is “entry line upload template”, the business type of the Excel data table is identified as a financial system accounting line record type.
  • the association relationship between the service type and the field to be extracted determines the field to be extracted associated with the service type corresponding to the Excel data table.
  • Step S3 extracting a data object in the Excel data table based on the determined field to be extracted;
  • step S4 the determined field to be extracted and the extracted data object are displayed for confirmation by the user.
  • the Excel data table is a "travel expense reimbursement template"
  • the data therein is as shown in Table 1 above.
  • the fields to be extracted are the employee name or employee ID, the department, the reimbursement reason, the reimbursement time and the reimbursement amount.
  • the corresponding data objects under the fields to be extracted are “Zhang San, Sales Department, Beijing Business Travel, 2017.07.20,
  • the train ticket fee is 500 yuan
  • the air ticket fee is 1,500 yuan
  • the accommodation fee is 500 yuan.”
  • the field to be extracted and the extracted data object are displayed for the user to confirm and confirm. If the user confirms that the displayed content has no errors, it is put into the library for subsequent execution of corresponding data operations, such as data encapsulation, warehousing, and the like.
  • the embodiment identifies the service type of the Excel data table, determines the to-be-extracted field associated with the service type corresponding to the Excel data table, and extracts the to-be-extracted field.
  • the corresponding data object under the field, the determined to-be-extracted field and the extracted data object are displayed.
  • the data of the Excel data table imported into the financial auxiliary system can be automatically parsed and extracted, saving time. Labor-saving, no need to write a variety of code to analyze and extract data, to avoid differences, and to facilitate later maintenance.
  • the step S3 includes:
  • the first determined field to be extracted is compared with each fixed field in the Excel data table. If the fixed field in the Excel data table is the same as the first determined field to be extracted, The second determined field to be extracted is continuously compared with each fixed field in the Excel data table until all the determined fields to be extracted are compared.
  • the determined to-be-extracted field is in one-to-one correspondence with each fixed field, it is analyzed whether there is a corresponding data object under each fixed field. If each fixed field has a corresponding data object, the fixed field may be directly extracted. The corresponding data object.
  • the fields to be extracted include: employee name or employee ID, department, reimbursement reason, reimbursement time and reimbursement amount details, and the fixed fields in Table 1 are: employee name, The department, reimbursement reason, reimbursement time and reimbursement amount details, if the two are corresponding and identical, you can analyze whether there are corresponding data objects in each fixed field in Table 1, if any, you can extract.
  • step S3 further includes: if the determined to-be-extracted field does not correspond to each fixed field, or if there is no corresponding data object in the fixed field, the generating includes the determined to be extracted.
  • a prompt message for the field to prompt the user to manually check the Excel data table.
  • the method further comprises: converting the extracted data object into a corresponding data format according to a predetermined conversion rule before displaying the extracted data object.
  • the user may set a plurality of conversion rules in advance, and set one or more of the conversion rules to be the predetermined conversion rule, or the user corresponding to the Excel data table after setting a plurality of conversion rules in advance.
  • the type automatically selects the corresponding conversion rule.
  • the extracted data object Before displaying the extracted data object, converting the extracted data object into a corresponding data format according to a predetermined conversion rule, for example, for the amount of money, uniformly converting it into data in units of yuan and two decimal places, for Time is unified into the form of "****-**-**", and so on.
  • the data object is converted into a corresponding data format, which is convenient for the user to confirm, and facilitates subsequent execution of corresponding data operations, such as data encapsulation, storage, and the like.
  • the present application also provides a computer readable storage medium having stored thereon a processing system that, when executed by a processor, implements the steps of the method of extracting data of a data table as described above.
  • 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, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes 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 application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application relates to an electronic device, a method and system for extracting data in a data table, and a storage medium. The method comprises: predefining service types corresponding to various Excel data tables, with regard to each service type, configuring a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted; when an Excel data table is imported into a financial assistance system, identifying, based on a file name of the Excel data table, a service type corresponding to the Excel data table, and determining a field to be extracted associated with the service type corresponding to the Excel data table according to the stored association relationship between the service type and the field to be extracted; based on the determined field to be extracted, extracting a data object in the Excel data table; and displaying the determined field to be extracted and the extracted data object for a user to confirm. The present application can automatically analyze and extract data of an Excel data table which is imported into a financial assistance system, thereby saving on time and labor, and facilitating later maintenance.

Description

电子装置、提取数据表的数据的方法、系统及存储介质Electronic device, method, system and storage medium for extracting data of data table

优先权申明Priority claim

本申请基于巴黎公约申明享有2017年09月30日递交的申请号为CN 201710914884.5、名称为“电子装置、提取数据表的数据的方法及存储介质”中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application is based on the priority of the Chinese Patent Application entitled "Electronic Device, Method of Extracting Data Table and Storage Medium", filed on September 30, 2017, with the application number of CN 201710914884.5, which is filed on September 30, 2017. The entire content is incorporated herein by reference.

技术领域Technical field

本申请涉及数据库技术领域,尤其涉及一种电子装置、提取数据表的数据的方法、系统及存储介质。The present application relates to the field of database technologies, and in particular, to an electronic device, a method, a system, and a storage medium for extracting data of a data table.

背景技术Background technique

目前,在财务辅助系统(Financial Assistant System,FAS)中存在非常多的数据导入操作,这些导入操作包括导入Excel数据表。每个Excel数据表包含的内容都不相同,鉴于业务数据的复杂性,目前开发人员针对每一个Excel数据表的导入,都需要编写代码去分析并提取其中的数据,然后再封装为相应的对象后,进行后续的入库操作。这种方式一方面费时费力,另一方面,由于编写的代码的差异性,导致后期维护较麻烦。Currently, there are a lot of data import operations in the Financial Assistant System (FAS), which include importing Excel data tables. Each Excel data table contains different contents. In view of the complexity of business data, developers currently need to write code to analyze and extract the data for each Excel data table import, and then package it into corresponding objects. After that, follow-up warehousing operations are performed. On the one hand, this method is time consuming and laborious. On the other hand, due to the difference in the code written, the latter maintenance is more troublesome.

发明内容Summary of the invention

本申请的目的在于提供一种电子装置、提取数据表的数据的方法、系统及存储介质,旨在自动解析及提取导入财务辅助系统中的Excel数据表的数据,省时省力,有利于后期的维护。The purpose of the present application is to provide an electronic device, a method, a system and a storage medium for extracting data of a data table, which are intended to automatically parse and extract data of an Excel data table imported into a financial auxiliary system, saving time and effort, and facilitating the later stage. maintain.

为实现上述目的,本申请提供一种电子装置,所述电子装置包括存储器及与所述存储器连接的处理器,所述存储器中存储有可在所述处理器上运行的处理系统,所述处理系统被所述处理器执行时实现如下步骤:To achieve the above object, the present application provides an electronic device including a memory and a processor coupled to the memory, the memory storing a processing system operable on the processor, the processing The system implements the following steps when executed by the processor:

S1,预先定义各Excel数据表对应的业务类型,对于每一种业务类型,配置与该种业务类型关联的待提取字段,存储该种业务类型与对应的待提取字段的关联关系;S1, pre-defining a service type corresponding to each Excel data table, and configuring, for each service type, a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted;

S2,当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,根据存储的业务类型与待提取字段的关联关系,确定该Excel数据表对应的业务类型关联的待提取字段;S2, when the Excel data table is imported into the financial auxiliary system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data table is determined according to the relationship between the stored service type and the field to be extracted. The field to be extracted associated with the corresponding service type;

S3,基于所确定的待提取字段提取该Excel数据表中的数据对象;S3. Extract a data object in the Excel data table based on the determined to-be-extracted field.

S4,将所确定的待提取字段及所提取的数据对象进行展示,供用户确认。S4: Display the determined to-be-extracted field and the extracted data object for user confirmation.

为实现上述目的,本申请还提供一种提取数据表的数据的方法,所述提取数据表的数据的方法包括:To achieve the above objective, the present application further provides a method for extracting data of a data table, where the method for extracting data of the data table includes:

S1,预先定义各Excel数据表对应的业务类型,对于每一种业务类型,配置与该种业务类型关联的待提取字段,存储该种业务类型与对应的待提取字段的关联关系;S1, pre-defining a service type corresponding to each Excel data table, and configuring, for each service type, a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted;

S2,当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,根据存储的业务类型与待提取字段的关联关系,确定该Excel数据表对应的业务类型关联的待提取字段;S2, when the Excel data table is imported into the financial auxiliary system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data table is determined according to the relationship between the stored service type and the field to be extracted. The field to be extracted associated with the corresponding service type;

S3,基于所确定的待提取字段提取该Excel数据表中的数据对象;S3. Extract a data object in the Excel data table based on the determined to-be-extracted field.

S4,将所确定的待提取字段及所提取的数据对象进行展示,供用户确认。S4: Display the determined to-be-extracted field and the extracted data object for user confirmation.

为实现上述目的,本申请还提供一种提取数据表的数据的系统,所述提取数据表的数据的系统包括:To achieve the above object, the present application further provides a system for extracting data of a data table, the system for extracting data of the data table includes:

配置模块,用于预先定义各Excel数据表对应的业务类型,对于每一种业务类型,配置与该种业务类型关联的待提取字段,存储该种业务类型与对应的待提取字段的关联关系;a configuration module, configured to pre-define a service type corresponding to each Excel data table, and for each service type, configure a to-be-extracted field associated with the service type, and store an association relationship between the service type and the corresponding to-be-extracted field;

确定模块,用于当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,根据存储的业务类型 与待提取字段的关联关系,确定该Excel数据表对应的业务类型关联的待提取字段;a determining module, configured to identify a service type corresponding to the Excel data table based on a file name of the Excel data table when the Excel data table is imported into the financial assistance system, and determine the relationship according to the stored service type and the relationship to be extracted The field to be extracted associated with the service type corresponding to the Excel data table;

提取模块,用于基于所确定的待提取字段提取该Excel数据表中的数据对象;An extracting module, configured to extract a data object in the Excel data table based on the determined field to be extracted;

展示模块,用于将所确定的待提取字段及所提取的数据对象进行展示,供用户确认。The display module is configured to display the determined to-be-extracted field and the extracted data object for confirmation by the user.

本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有处理系统,所述处理系统被处理器执行时实现上述的提取数据表的数据的方法的步骤。The present application also provides a computer readable storage medium having stored thereon a processing system that, when executed by a processor, implements the steps of the method of extracting data of a data table as described above.

本申请的有益效果是:本申请能够在将Excel数据表导入财务辅助系统中时,识别该Excel数据表的业务类型,确定该Excel数据表对应的业务类型关联的待提取字段,提取该待提取字段下对应的数据对象,将所确定的待提取字段及所提取的数据对象进行展示,本申请基于前述的组件,能够自动解析及提取导入财务辅助系统中的Excel数据表的数据,省时省力,不需要编写各种代码去分析并提取数据,避免存在差异性,有利于后期的维护。The utility model has the beneficial effects that the present application can identify the service type of the Excel data table when the Excel data table is imported into the financial assistance system, determine the field to be extracted associated with the service type corresponding to the Excel data table, and extract the to-be-extracted field. The corresponding data object under the field displays the determined to-be-extracted field and the extracted data object. Based on the foregoing components, the present application can automatically parse and extract the data of the Excel data table imported into the financial auxiliary system, saving time and effort. There is no need to write various code to analyze and extract data, to avoid differences, and to facilitate later maintenance.

附图说明DRAWINGS

图1为本申请各个实施例一可选的应用环境示意图;1 is a schematic diagram of an optional application environment of each embodiment of the present application;

图2为本申请提取数据表的数据的方法一实施例的流程示意图;2 is a schematic flowchart of a method for extracting data of a data table according to an embodiment of the present application;

图3为图2所示步骤S3的细化流程示意图。FIG. 3 is a schematic diagram of the refinement process of step S3 shown in FIG. 2.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。基于本申请中的实施例,本领 域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.

需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions of "first", "second" and the like in the present application are for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. . Thus, features defining "first" and "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. Nor is it within the scope of protection required by this application.

参阅图1所示,是本申请提取数据表的数据的方法的较佳实施例的应用环境示意图。该应用环境示意图包括电子装置1及终端设备2。电子装置1可以通过网络、近场通信技术等适合的技术与终端设备2进行数据交互。Referring to FIG. 1 , it is a schematic diagram of an application environment of a preferred embodiment of a method for extracting data of a data table. The application environment diagram includes an electronic device 1 and a terminal device 2. The electronic device 1 can perform data interaction with the terminal device 2 through a suitable technology such as a network or a near field communication technology.

所述终端设备2包括,但不限于,任何一种可与用户通过键盘、鼠标、遥控器、触摸板或者声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、游戏机、交互式网络电视(Internet Protocol Television,IPTV)、智能式穿戴式设备、导航装置等等的可移动设备,或者诸如数字TV、台式计算机、笔记本、服务器等等的固定终端。终端设备2用以接收用户的指令(例如配置各种业务类型关联的待提取字段的指令)并将其发送给电子装置1,以及将电子装置1反馈的信息进行展示等。The terminal device 2 includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a personal computer, a tablet computer, or a smart phone. , Personal Digital Assistant (PDA), game consoles, Internet Protocol Television (IPTV), smart wearable devices, navigation devices, etc., or mobile devices such as digital TVs, desktop computers, Fixed terminal for notebooks, servers, etc. The terminal device 2 is configured to receive an instruction of the user (for example, an instruction to configure a field to be extracted associated with various service types) and send it to the electronic device 1, and display information fed back by the electronic device 1 and the like.

在其他实施例中,终端设备2用以接收用户的指令并将其发送给电子装置1,以及将电子装置1反馈的信息进行展示等的软件和/硬件部分可以集成于电子装置1,而不需要专门的终端设备2。In other embodiments, the software and/or hardware components of the terminal device 2 for receiving the user's instructions and transmitting them to the electronic device 1 and displaying the information fed back by the electronic device 1 may be integrated into the electronic device 1 without A special terminal device 2 is required.

所述电子装置1是一种能够按照事先设定或者存储的指令,自动进行数值计算和/或信息处理的设备。所述电子装置1可以是计算机、也可以是单个 网络服务器、多个网络服务器组成的服务器组或者基于云计算的由大量主机或者网络服务器构成的云,其中云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。The electronic device 1 is an apparatus capable of automatically performing numerical calculation and/or information processing in accordance with an instruction set or stored in advance. The electronic device 1 may be a computer, a single network server, a server group composed of multiple network servers, or a cloud-based cloud composed of a large number of hosts or network servers, where cloud computing is a type of distributed computing. A super virtual computer consisting of a group of loosely coupled computers.

在本实施例中,电子装置1可包括,但不仅限于,可通过系统总线相互通信连接的存储器11、处理器12、网络接口13,存储器11存储有可在处理器12上运行的处理系统。需要指出的是,图1仅示出了具有组件11-13的电子装置1,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。In the present embodiment, the electronic device 1 may include, but is not limited to, a memory 11 communicably connected to each other through a system bus, a processor 12, and a network interface 13, and the memory 11 stores a processing system operable on the processor 12. It should be noted that FIG. 1 only shows the electronic device 1 having the components 11-13, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.

其中,存储器11包括内存及至少一种类型的可读存储介质。内存为电子装置1的运行提供缓存;可读存储介质可为如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等的非易失性存储介质。在一些实施例中,可读存储介质可以是电子装置1的内部存储单元,例如该电子装置1的硬盘;在另一些实施例中,该非易失性存储介质也可以是电子装置1的外部存储设备,例如电子装置1上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。本实施例中,存储器11的可读存储介质通常用于存储安装于电子装置1的操作系统和各类应用软件,例如本申请一实施例中的处理系统的程序代码等。此外,存储器11还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 11 includes a memory and at least one type of readable storage medium. The memory provides a cache for the operation of the electronic device 1; the readable storage medium may be, for example, a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM). A non-volatile storage medium such as a read only memory (ROM), an electrically erasable programmable read only memory (EEPROM), a programmable read only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, or the like. In some embodiments, the readable storage medium may be an internal storage unit of the electronic device 1, such as a hard disk of the electronic device 1; in other embodiments, the non-volatile storage medium may also be external to the electronic device 1. A storage device, such as a plug-in hard disk equipped with an electronic device 1, a smart memory card (SMC), a Secure Digital (SD) card, a flash card, or the like. In this embodiment, the readable storage medium of the memory 11 is generally used to store an operating system installed in the electronic device 1 and various types of application software, such as program codes of the processing system in an embodiment of the present application. Further, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.

所述处理器12在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器12通常用于控制所述电子装置1的总体操作,例如执行与所述终端设备2进行数据交互或者通信相关的控制和处理等。本实施例中,所述处理器12 用于运行所述存储器11中存储的程序代码或者处理数据,例如运行处理系统等。The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 12 is typically used to control the overall operation of the electronic device 1, such as performing control and processing related to data interaction or communication with the terminal device 2. In this embodiment, the processor 12 is configured to run program code or process data stored in the memory 11, such as running a processing system or the like.

所述网络接口13可包括无线网络接口或有线网络接口,该网络接口13通常用于在所述电子装置1与其他电子设备之间建立通信连接。本实施例中,网络接口13主要用于将电子装置1与一个或多个终端设备2相连,在电子装置1与一个或多个终端设备2之间建立数据传输通道和通信连接。The network interface 13 may comprise a wireless network interface or a wired network interface, which is typically used to establish a communication connection between the electronic device 1 and other electronic devices. In this embodiment, the network interface 13 is mainly used to connect the electronic device 1 with one or more terminal devices 2, and establish a data transmission channel and a communication connection between the electronic device 1 and one or more terminal devices 2.

所述处理系统存储在存储器11中,包括至少一个存储在存储器11中的计算机可读指令,该至少一个计算机可读指令可被处理器器12执行,以实现本申请各实施例的方法;以及,该至少一个计算机可读指令依据其各部分所实现的功能不同,可被划为不同的逻辑模块。The processing system is stored in the memory 11 and includes at least one computer readable instruction stored in the memory 11, the at least one computer readable instruction being executable by the processor 12 to implement the methods of various embodiments of the present application; The at least one computer readable instruction can be classified into different logic modules depending on the functions implemented by its various parts.

在一实施例中,上述处理系统被所述处理器12执行时实现如下步骤:In an embodiment, when the processing system is executed by the processor 12, the following steps are implemented:

步骤S1,预先定义各Excel数据表对应的业务类型,对于每一种业务类型,配置与该种业务类型关联的待提取字段,存储该种业务类型与对应的待提取字段的关联关系;Step S1, pre-defining the service type corresponding to each Excel data table, and configuring, for each service type, a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted;

本实施例中,以当前财务辅助系统的导入功能为样本,开发了Excel数据表内容自动解析及提取组件,在该组件中,可以预先定义各Excel数据表对应的业务类型,例如对于Excel数据表“差旅费用报销模板”,其对应的业务类型为报销单类型,对于Excel数据表“分录行上载模板”,其对应的业务类型为财务系统入账行记录类型。当然,在财务辅助系统中可导入的Excel数据表还有其他的种类,此处不再一一列举。In this embodiment, using the import function of the current financial auxiliary system as a sample, an automatic parsing and extracting component of the Excel data table content is developed. In this component, the business type corresponding to each Excel data table can be defined in advance, for example, for an Excel data table. The “travel expense reimbursement template”, the corresponding business type is the reimbursement type. For the Excel data table “entry line upload template”, the corresponding business type is the financial system accounting line record type. Of course, there are other types of Excel data tables that can be imported into the financial assistance system, which are not listed here.

对于每一种业务类型,配置与该种业务类型关联的待提取字段,例如对于报销单类型,配置与其关联的待提取字段包括“员工姓名或者员工ID、所属部门、报销事由、报销金额明细及报销时间”等。对于财务系统入账行记录类型,配置与其关联的待提取字段包括“票据类型、报销类别、销项税率、账务处理类型、明细类型、说明及弹性域信息”等。For each type of service, configure the field to be extracted associated with the service type. For example, for the type of reimbursement, the field to be extracted associated with the configuration includes “employee name or employee ID, department, reimbursement, reimbursement amount and Reimbursement time" and so on. For the financial system accounting line record type, the fields to be extracted associated with the configuration include “ticket type, reimbursement category, output tax rate, accounting processing type, detail type, description and flexfield information”.

在配置财务辅助系统中各种Excel数据表的业务类型关联的待提取字段后,将各种Excel数据表的业务类型与对应的待提取字段的关联关系进行存储,例如以关联映射表的形式进行存储。After the fields to be extracted associated with the service types of the various Excel data tables in the financial assistance system are configured, the relationship between the service types of the various Excel data tables and the corresponding fields to be extracted is stored, for example, in the form of an association mapping table. storage.

步骤S2,当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,根据存储的业务类型与待提取字段的关联关系,确定该Excel数据表对应的业务类型关联的待提取字段;Step S2, when the Excel data table is imported into the financial auxiliary system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data is determined according to the relationship between the stored service type and the field to be extracted. The field to be extracted associated with the service type corresponding to the table;

本实施例中,在财务辅助系统中,可以一次性导入一个或者多个包含不同内容的Excel数据表。当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,如上所述,若Excel数据表的文件名为“差旅费用报销模板”,则识别出该Excel数据表的业务类型为报销单类型,若Excel数据表的文件名为“分录行上载模板”,则识别出该Excel数据表的业务类型为财务系统入账行记录类型。In this embodiment, in the financial assistance system, one or more Excel data tables containing different contents may be imported at one time. When the Excel data table is imported into the financial assistance system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table. As described above, if the file name of the Excel data table is “travel expense reimbursement template”, then The business type of the Excel data table is identified as a reimbursement order type. If the file name of the Excel data table is “entry line upload template”, the business type of the Excel data table is identified as a financial system accounting line record type.

在根据Excel数据表的文件名识别该Excel数据表对应的业务类型后,与存储的业务类型进行匹配,以找到所存储的相同的业务类型,获取该业务类型与待提取字段的关联关系,根据该业务类型与待提取字段的关联关系确定该Excel数据表对应的业务类型关联的待提取字段。After identifying the service type corresponding to the Excel data table according to the file name of the Excel data table, matching the stored service type to find the stored same service type, and obtaining the association relationship between the service type and the field to be extracted, according to The association relationship between the service type and the field to be extracted determines the field to be extracted associated with the service type corresponding to the Excel data table.

步骤S3,基于所确定的待提取字段提取该Excel数据表中的数据对象;Step S3, extracting a data object in the Excel data table based on the determined field to be extracted;

步骤S4,将所确定的待提取字段及所提取的数据对象进行展示,供用户确认。In step S4, the determined field to be extracted and the extracted data object are displayed for confirmation by the user.

本实施例中,若Excel数据表为“差旅费用报销模板”,其中的数据如下表1所示:In this embodiment, if the Excel data table is a "travel expense reimbursement template", the data therein is as shown in Table 1 below:

Figure PCTCN2018089874-appb-000001
Figure PCTCN2018089874-appb-000001

Figure PCTCN2018089874-appb-000002
Figure PCTCN2018089874-appb-000002

表1Table 1

待提取字段分别为员工姓名或者员工ID、所属部门、报销事由、报销时间及报销金额明细,对应的这些待提取字段下的数据对象分别为“张三、销售部、北京出差、2017.07.20、火车票费500元、机票费1500元、住宿费500元”。The fields to be extracted are the employee name or employee ID, the department, the reimbursement reason, the reimbursement time and the reimbursement amount. The corresponding data objects under the fields to be extracted are “Zhang San, Sales Department, Beijing Business Travel, 2017.07.20, The train ticket fee is 500 yuan, the air ticket fee is 1,500 yuan, and the accommodation fee is 500 yuan."

在提取该Excel数据表中所确定的待提取字段下对应的数据对象后,将待提取字段及所提取的数据对象进行展示,供用户进行审核确认。如果用户确认所展示的内容没有错误,则将其进行入库,以供后续执行相应的数据操作,例如进行数据封装、入库等操作。After extracting the corresponding data object under the field to be extracted determined in the Excel data table, the field to be extracted and the extracted data object are displayed for the user to confirm and confirm. If the user confirms that the displayed content has no errors, it is put into the library for subsequent execution of corresponding data operations, such as data encapsulation, warehousing, and the like.

与现有技术相比,本实施例在将Excel数据表导入财务辅助系统中时,识别该Excel数据表的业务类型,确定该Excel数据表对应的业务类型关联的待提取字段,提取该待提取字段下对应的数据对象,将所确定的待提取字段及所提取的数据对象进行展示,本实施例基于前述的组件,能够自动解析及提取导入财务辅助系统中的Excel数据表的数据,省时省力,不需要编写各种代码去分析并提取数据,避免存在差异性,有利于后期的维护。Compared with the prior art, when the Excel data table is imported into the financial auxiliary system, the embodiment identifies the service type of the Excel data table, determines the to-be-extracted field associated with the service type corresponding to the Excel data table, and extracts the to-be-extracted field. The corresponding data object under the field, the determined to-be-extracted field and the extracted data object are displayed. In this embodiment, based on the foregoing components, the data of the Excel data table imported into the financial auxiliary system can be automatically parsed and extracted, saving time. Labor-saving, no need to write a variety of code to analyze and extract data, to avoid differences, and to facilitate later maintenance.

在一优选的实施例中,在上述图1的实施例的基础上,所述步骤S3包括:In a preferred embodiment, based on the above embodiment of FIG. 1, the step S3 includes:

S31,将所确定的待提取字段与该Excel数据表中的各固定字段进行比对;S31, comparing the determined to-be-extracted field with each fixed field in the Excel data table;

S32,若所确定的待提取字段与各固定字段一一对应且相同,则分析各固定字段下是否均有对应的数据对象;S32. If the determined to-be-extracted field is in one-to-one correspondence with each fixed field, analyze whether there is a corresponding data object under each fixed field.

S33,若均有对应的数据对象,则提取该Excel数据表中各固定字段下 对应的数据对象。S33: If there are corresponding data objects, extract the data objects corresponding to the fixed fields in the Excel data table.

其中,首先将第一个所确定的待提取字段与该Excel数据表中的各固定字段进行比对,若该Excel数据表中有固定字段与该第一个所确定的待提取字段相同,则继续将第二个所确定的待提取字段与该Excel数据表中的各固定字段进行比对,直至将所有的所确定的待提取字段对比完。First, the first determined field to be extracted is compared with each fixed field in the Excel data table. If the fixed field in the Excel data table is the same as the first determined field to be extracted, The second determined field to be extracted is continuously compared with each fixed field in the Excel data table until all the determined fields to be extracted are compared.

如果所确定的待提取字段与各固定字段一一对应且相同,则分析各固定字段下是否均有对应的数据对象,如果各固定字段下均有对应的数据对象,则可以直接提取各固定字段下对应的数据对象。If the determined to-be-extracted field is in one-to-one correspondence with each fixed field, it is analyzed whether there is a corresponding data object under each fixed field. If each fixed field has a corresponding data object, the fixed field may be directly extracted. The corresponding data object.

以上述表1为Excel数据表为例进行说明,待提取字段包括:员工姓名或者员工ID、所属部门、报销事由、报销时间及报销金额明细,而在表1中的固定字段为:员工姓名、所属部门、报销事由、报销时间及报销金额明细,两者一一对应且相同,则可以分析表1中各固定字段下是否均有对应的数据对象,若有,可以进行提取。Taking the above Table 1 as an Excel data table as an example, the fields to be extracted include: employee name or employee ID, department, reimbursement reason, reimbursement time and reimbursement amount details, and the fixed fields in Table 1 are: employee name, The department, reimbursement reason, reimbursement time and reimbursement amount details, if the two are corresponding and identical, you can analyze whether there are corresponding data objects in each fixed field in Table 1, if any, you can extract.

在其他可选的实施例中,上述步骤S3进一步包括:若有所确定的待提取字段与各固定字段均不对应,或者有固定字段下没有对应的数据对象,则生成包含所确定的待提取字段的提示消息,以提示用户人工检查该Excel数据表。In other optional embodiments, the foregoing step S3 further includes: if the determined to-be-extracted field does not correspond to each fixed field, or if there is no corresponding data object in the fixed field, the generating includes the determined to be extracted. A prompt message for the field to prompt the user to manually check the Excel data table.

其中,可能存在两种需要进行人工检查的异常情况:其一可能有一个或者若干个所确定的待提取字段与Excel数据表中的固定字段均不对应;另一为所确定的待提取字段与各固定字段一一对应且相同,但是有些固定字段下未填写有对应的数据对象,这两种情况下需要用户人工检查处理该Excel数据表,另外,用户在处理完Excel数据表后,可以重新提取数据对象。由此,本实施例结合人工检查的方式可以提高提取Excel数据表中的数据对象的准确性。There may be two abnormal situations that require manual checking: one may have one or several determined fields to be extracted that do not correspond to fixed fields in the Excel data table; the other is the determined field to be extracted and Each fixed field corresponds to one and the same, but some fixed fields are not filled with corresponding data objects. In these two cases, the user needs to manually check and process the Excel data table. In addition, the user can re-process the Excel data table. Extract data objects. Therefore, the embodiment can improve the accuracy of extracting data objects in the Excel data table by combining the manual inspection.

在一优选的实施例中,在上述图1的实施例的基础上,所述处理系统被所述处理器执行时,还实现如下步骤:在展示所提取的数据对象之前,按照预定的转换规则将所提取的数据对象转换为对应的数据格式。In a preferred embodiment, on the basis of the above-described embodiment of FIG. 1, when the processing system is executed by the processor, the following steps are further implemented: according to a predetermined conversion rule before displaying the extracted data object. Convert the extracted data object to the corresponding data format.

本实施例中,用户可以预先设置多种转换规则,并设置其中的一种或者多种转换规则为该预定的转换规则,或者,用户预先设置多种转换规则后,基于Excel数据表对应的业务类型自动选定对应的转换规则。In this embodiment, the user may set a plurality of conversion rules in advance, and set one or more of the conversion rules to be the predetermined conversion rule, or the user corresponding to the Excel data table after setting a plurality of conversion rules in advance. The type automatically selects the corresponding conversion rule.

在展示所提取的数据对象之前,按照预定的转换规则将所提取的数据对象转换为对应的数据格式,例如,对于金额,将其统一转换为以元为单位、小数点后两位的数据,对于时间,则统一转换为“****-**-**”的形式,等等。本实施例将数据对象转换为对应的数据格式,方便用户进行确认,以及便于后续可以直接执行相应的数据操作,例如进行数据封装、入库等操作。Before displaying the extracted data object, converting the extracted data object into a corresponding data format according to a predetermined conversion rule, for example, for the amount of money, uniformly converting it into data in units of yuan and two decimal places, for Time is unified into the form of "****-**-**", and so on. In this embodiment, the data object is converted into a corresponding data format, which is convenient for the user to confirm, and facilitates subsequent execution of corresponding data operations, such as data encapsulation, storage, and the like.

如图2所示,图2为本申请提取数据表的数据的方法一实施例的流程示意图,该提取数据表的数据的方法包括以下步骤:As shown in FIG. 2, FIG. 2 is a schematic flowchart of a method for extracting data of a data table according to an embodiment of the present application. The method for extracting data of a data table includes the following steps:

步骤S1,预先定义各Excel数据表对应的业务类型,对于每一种业务类型,配置与该种业务类型关联的待提取字段,存储该种业务类型与对应的待提取字段的关联关系;Step S1, pre-defining the service type corresponding to each Excel data table, and configuring, for each service type, a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted;

本实施例中,以当前财务辅助系统的导入功能为样本,开发了Excel数据表内容自动解析及提取组件,在该组件中,可以预先定义各Excel数据表对应的业务类型,例如对于Excel数据表“差旅费用报销模板”,其对应的业务类型为报销单类型,对于Excel数据表“分录行上载模板”,其对应的业务类型为财务系统入账行记录类型。当然,在财务辅助系统中可导入的Excel数据表还有其他的种类,此处不再一一列举。In this embodiment, using the import function of the current financial auxiliary system as a sample, an automatic parsing and extracting component of the Excel data table content is developed. In this component, the business type corresponding to each Excel data table can be defined in advance, for example, for an Excel data table. The “travel expense reimbursement template”, the corresponding business type is the reimbursement type. For the Excel data table “entry line upload template”, the corresponding business type is the financial system accounting line record type. Of course, there are other types of Excel data tables that can be imported into the financial assistance system, which are not listed here.

对于每一种业务类型,配置与该种业务类型关联的待提取字段,例如对于报销单类型,配置与其关联的待提取字段包括“员工姓名或者员工ID、 所属部门、报销事由、报销金额明细及报销时间”等。对于财务系统入账行记录类型,配置与其关联的待提取字段包括“票据类型、报销类别、销项税率、账务处理类型、明细类型、说明及弹性域信息”等。For each type of service, configure the field to be extracted associated with the service type. For example, for the type of reimbursement, the field to be extracted associated with the configuration includes “employee name or employee ID, department, reimbursement, reimbursement amount and Reimbursement time" and so on. For the financial system accounting line record type, the fields to be extracted associated with the configuration include “ticket type, reimbursement category, output tax rate, accounting processing type, detail type, description and flexfield information”.

在配置财务辅助系统中各种Excel数据表的业务类型关联的待提取字段后,将各种Excel数据表的业务类型与对应的待提取字段的关联关系进行存储,例如以关联映射表的形式进行存储。After the fields to be extracted associated with the service types of the various Excel data tables in the financial assistance system are configured, the relationship between the service types of the various Excel data tables and the corresponding fields to be extracted is stored, for example, in the form of an association mapping table. storage.

步骤S2,当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,根据存储的业务类型与待提取字段的关联关系,确定该Excel数据表对应的业务类型关联的待提取字段;Step S2, when the Excel data table is imported into the financial auxiliary system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data is determined according to the relationship between the stored service type and the field to be extracted. The field to be extracted associated with the service type corresponding to the table;

本实施例中,在财务辅助系统中,可以一次性导入一个或者多个包含不同内容的Excel数据表。当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,如上所述,若Excel数据表的文件名为“差旅费用报销模板”,则识别出该Excel数据表的业务类型为报销单类型,若Excel数据表的文件名为“分录行上载模板”,则识别出该Excel数据表的业务类型为财务系统入账行记录类型。In this embodiment, in the financial assistance system, one or more Excel data tables containing different contents may be imported at one time. When the Excel data table is imported into the financial assistance system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table. As described above, if the file name of the Excel data table is “travel expense reimbursement template”, then The business type of the Excel data table is identified as a reimbursement order type. If the file name of the Excel data table is “entry line upload template”, the business type of the Excel data table is identified as a financial system accounting line record type.

在根据Excel数据表的文件名识别该Excel数据表对应的业务类型后,与存储的业务类型进行匹配,以找到所存储的相同的业务类型,获取该业务类型与待提取字段的关联关系,根据该业务类型与待提取字段的关联关系确定该Excel数据表对应的业务类型关联的待提取字段。After identifying the service type corresponding to the Excel data table according to the file name of the Excel data table, matching the stored service type to find the stored same service type, and obtaining the association relationship between the service type and the field to be extracted, according to The association relationship between the service type and the field to be extracted determines the field to be extracted associated with the service type corresponding to the Excel data table.

步骤S3,基于所确定的待提取字段提取该Excel数据表中的数据对象;Step S3, extracting a data object in the Excel data table based on the determined field to be extracted;

步骤S4,将所确定的待提取字段及所提取的数据对象进行展示,供用户确认。In step S4, the determined field to be extracted and the extracted data object are displayed for confirmation by the user.

本实施例中,若Excel数据表为“差旅费用报销模板”,其中的数据如上述表1所示。待提取字段分别为员工姓名或者员工ID、所属部门、报销事 由、报销时间及报销金额明细,对应的这些待提取字段下的数据对象分别为“张三、销售部、北京出差、2017.07.20、火车票费500元、机票费1500元、住宿费500元”。In this embodiment, if the Excel data table is a "travel expense reimbursement template", the data therein is as shown in Table 1 above. The fields to be extracted are the employee name or employee ID, the department, the reimbursement reason, the reimbursement time and the reimbursement amount. The corresponding data objects under the fields to be extracted are “Zhang San, Sales Department, Beijing Business Travel, 2017.07.20, The train ticket fee is 500 yuan, the air ticket fee is 1,500 yuan, and the accommodation fee is 500 yuan."

在提取该Excel数据表中所确定的待提取字段下对应的数据对象后,将待提取字段及所提取的数据对象进行展示,供用户进行审核确认。如果用户确认所展示的内容没有错误,则将其进行入库,以供后续执行相应的数据操作,例如进行数据封装、入库等操作。After extracting the corresponding data object under the field to be extracted determined in the Excel data table, the field to be extracted and the extracted data object are displayed for the user to confirm and confirm. If the user confirms that the displayed content has no errors, it is put into the library for subsequent execution of corresponding data operations, such as data encapsulation, warehousing, and the like.

与现有技术相比,本实施例在将Excel数据表导入财务辅助系统中时,识别该Excel数据表的业务类型,确定该Excel数据表对应的业务类型关联的待提取字段,提取该待提取字段下对应的数据对象,将所确定的待提取字段及所提取的数据对象进行展示,本实施例基于前述的组件,能够自动解析及提取导入财务辅助系统中的Excel数据表的数据,省时省力,不需要编写各种代码去分析并提取数据,避免存在差异性,有利于后期的维护。Compared with the prior art, when the Excel data table is imported into the financial auxiliary system, the embodiment identifies the service type of the Excel data table, determines the to-be-extracted field associated with the service type corresponding to the Excel data table, and extracts the to-be-extracted field. The corresponding data object under the field, the determined to-be-extracted field and the extracted data object are displayed. In this embodiment, based on the foregoing components, the data of the Excel data table imported into the financial auxiliary system can be automatically parsed and extracted, saving time. Labor-saving, no need to write a variety of code to analyze and extract data, to avoid differences, and to facilitate later maintenance.

在一优选的实施例中,如图3所示,在上述图2的实施例的基础上,所述步骤S3包括:In a preferred embodiment, as shown in FIG. 3, based on the foregoing embodiment of FIG. 2, the step S3 includes:

S31,将所确定的待提取字段与该Excel数据表中的各固定字段进行比对;S31, comparing the determined to-be-extracted field with each fixed field in the Excel data table;

S32,若所确定的待提取字段与各固定字段一一对应且相同,则分析各固定字段下是否均有对应的数据对象;S32. If the determined to-be-extracted field is in one-to-one correspondence with each fixed field, analyze whether there is a corresponding data object under each fixed field.

S33,若均有对应的数据对象,则提取该Excel数据表中各固定字段下对应的数据对象。S33: If there is a corresponding data object, extract the corresponding data object in each fixed field in the Excel data table.

其中,首先将第一个所确定的待提取字段与该Excel数据表中的各固定字段进行比对,若该Excel数据表中有固定字段与该第一个所确定的待提取字段相同,则继续将第二个所确定的待提取字段与该Excel数据表中的各固 定字段进行比对,直至将所有的所确定的待提取字段对比完。First, the first determined field to be extracted is compared with each fixed field in the Excel data table. If the fixed field in the Excel data table is the same as the first determined field to be extracted, The second determined field to be extracted is continuously compared with each fixed field in the Excel data table until all the determined fields to be extracted are compared.

如果所确定的待提取字段与各固定字段一一对应且相同,则分析各固定字段下是否均有对应的数据对象,如果各固定字段下均有对应的数据对象,则可以直接提取各固定字段下对应的数据对象。If the determined to-be-extracted field is in one-to-one correspondence with each fixed field, it is analyzed whether there is a corresponding data object under each fixed field. If each fixed field has a corresponding data object, the fixed field may be directly extracted. The corresponding data object.

以上述表1为Excel数据表为例进行说明,待提取字段包括:员工姓名或者员工ID、所属部门、报销事由、报销时间及报销金额明细,而在表1中的固定字段为:员工姓名、所属部门、报销事由、报销时间及报销金额明细,两者一一对应且相同,则可以分析表1中各固定字段下是否均有对应的数据对象,若有,可以进行提取。Taking the above Table 1 as an Excel data table as an example, the fields to be extracted include: employee name or employee ID, department, reimbursement reason, reimbursement time and reimbursement amount details, and the fixed fields in Table 1 are: employee name, The department, reimbursement reason, reimbursement time and reimbursement amount details, if the two are corresponding and identical, you can analyze whether there are corresponding data objects in each fixed field in Table 1, if any, you can extract.

在其他可选的实施例中,上述步骤S3进一步包括:若有所确定的待提取字段与各固定字段均不对应,或者有固定字段下没有对应的数据对象,则生成包含所确定的待提取字段的提示消息,以提示用户人工检查该Excel数据表。In other optional embodiments, the foregoing step S3 further includes: if the determined to-be-extracted field does not correspond to each fixed field, or if there is no corresponding data object in the fixed field, the generating includes the determined to be extracted. A prompt message for the field to prompt the user to manually check the Excel data table.

其中,可能存在两种需要进行人工检查的异常情况:其一可能有一个或者若干个所确定的待提取字段与Excel数据表中的固定字段均不对应;另一为所确定的待提取字段与各固定字段一一对应且相同,但是有些固定字段下未填写有对应的数据对象,这两种情况下需要用户人工检查处理该Excel数据表,另外,用户在处理完Excel数据表后,可以重新提取数据对象。由此,本实施例结合人工检查的方式可以提高提取Excel数据表中的数据对象的准确性。There may be two abnormal situations that require manual checking: one may have one or several determined fields to be extracted that do not correspond to fixed fields in the Excel data table; the other is the determined field to be extracted and Each fixed field corresponds to one and the same, but some fixed fields are not filled with corresponding data objects. In these two cases, the user needs to manually check and process the Excel data table. In addition, the user can re-process the Excel data table. Extract data objects. Therefore, the embodiment can improve the accuracy of extracting data objects in the Excel data table by combining the manual inspection.

在一优选的实施例中,在上述图1的实施例的基础上,该还包括:在展示所提取的数据对象之前,按照预定的转换规则将所提取的数据对象转换为对应的数据格式。In a preferred embodiment, based on the above embodiment of FIG. 1, the method further comprises: converting the extracted data object into a corresponding data format according to a predetermined conversion rule before displaying the extracted data object.

本实施例中,用户可以预先设置多种转换规则,并设置其中的一种或者 多种转换规则为该预定的转换规则,或者,用户预先设置多种转换规则后,基于Excel数据表对应的业务类型自动选定对应的转换规则。In this embodiment, the user may set a plurality of conversion rules in advance, and set one or more of the conversion rules to be the predetermined conversion rule, or the user corresponding to the Excel data table after setting a plurality of conversion rules in advance. The type automatically selects the corresponding conversion rule.

在展示所提取的数据对象之前,按照预定的转换规则将所提取的数据对象转换为对应的数据格式,例如,对于金额,将其统一转换为以元为单位、小数点后两位的数据,对于时间,则统一转换为“****-**-**”的形式,等等。本实施例将数据对象转换为对应的数据格式,方便用户进行确认,以及便于后续可以直接执行相应的数据操作,例如进行数据封装、入库等操作。Before displaying the extracted data object, converting the extracted data object into a corresponding data format according to a predetermined conversion rule, for example, for the amount of money, uniformly converting it into data in units of yuan and two decimal places, for Time is unified into the form of "****-**-**", and so on. In this embodiment, the data object is converted into a corresponding data format, which is convenient for the user to confirm, and facilitates subsequent execution of corresponding data operations, such as data encapsulation, storage, and the like.

本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有处理系统,所述处理系统被处理器执行时实现上述的提取数据表的数据的方法的步骤。The present application also provides a computer readable storage medium having stored thereon a processing system that, when executed by a processor, implements the steps of the method of extracting data of a data table as described above.

上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present application 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, the technical solution of the present application, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes 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 application.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only a preferred embodiment of the present application, and is not intended to limit the scope of the patent application, and the equivalent structure or equivalent process transformations made by the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of this application.

Claims (20)

一种电子装置,其特征在于,所述电子装置包括存储器及与所述存储器连接的处理器,所述存储器中存储有可在所述处理器上运行的处理系统,所述处理系统被所述处理器执行时实现如下步骤:An electronic device, comprising: a memory and a processor coupled to the memory, wherein the memory stores a processing system operable on the processor, the processing system being The processor implements the following steps when it executes: S1,预先定义各Excel数据表对应的业务类型,对于每一种业务类型,配置与该种业务类型关联的待提取字段,存储该种业务类型与对应的待提取字段的关联关系;S1, pre-defining a service type corresponding to each Excel data table, and configuring, for each service type, a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted; S2,当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,根据存储的业务类型与待提取字段的关联关系,确定该Excel数据表对应的业务类型关联的待提取字段;S2, when the Excel data table is imported into the financial auxiliary system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data table is determined according to the relationship between the stored service type and the field to be extracted. The field to be extracted associated with the corresponding service type; S3,基于所确定的待提取字段提取该Excel数据表中的数据对象;S3. Extract a data object in the Excel data table based on the determined to-be-extracted field. S4,将所确定的待提取字段及所提取的数据对象进行展示,供用户确认。S4: Display the determined to-be-extracted field and the extracted data object for user confirmation. 根据权利要求1所述的电子装置,其特征在于,所述步骤S3包括:The electronic device according to claim 1, wherein the step S3 comprises: S31,将所确定的待提取字段与该Excel数据表中的各固定字段进行比对;S31, comparing the determined to-be-extracted field with each fixed field in the Excel data table; S32,若所确定的待提取字段与各固定字段一一对应且相同,则分析各固定字段下是否均有对应的数据对象;S32. If the determined to-be-extracted field is in one-to-one correspondence with each fixed field, analyze whether there is a corresponding data object under each fixed field. S33,若均有对应的数据对象,则提取该Excel数据表中各固定字段下对应的数据对象。S33: If there is a corresponding data object, extract the corresponding data object in each fixed field in the Excel data table. 根据权利要求2所述的电子装置,其特征在于,所述步骤S3进一步包括:The electronic device according to claim 2, wherein the step S3 further comprises: 若有所确定的待提取字段与各固定字段均不对应,或者有固定字段下没有对应的数据对象,则生成包含所确定的待提取字段的提示消息,以提示用户人工检查该Excel数据表。If the determined field to be extracted does not correspond to each fixed field, or there is no corresponding data object in the fixed field, a prompt message including the determined field to be extracted is generated to prompt the user to manually check the Excel data table. 根据权利要求1至3任一项所述的电子装置,其特征在于,所述处理 系统被所述处理器执行时,还实现如下步骤:The electronic device according to any one of claims 1 to 3, wherein when the processing system is executed by the processor, the following steps are further implemented: 在展示所提取的数据对象之前,按照预定的转换规则将所提取的数据对象转换为对应的数据格式。The extracted data objects are converted to a corresponding data format according to a predetermined conversion rule before the extracted data objects are presented. 根据权利要求1所述的电子装置,其特征在于,所述处理系统被所述处理器执行时,还实现如下步骤:当接收到用户的确认指令后,将所提取的数据对象进行入库处理。The electronic device according to claim 1, wherein when the processing system is executed by the processor, the step of: performing the storage processing of the extracted data object after receiving the confirmation instruction of the user is further implemented. . 一种提取数据表的数据的方法,其特征在于,所述提取数据表的数据的方法包括:A method for extracting data of a data table, wherein the method for extracting data of a data table comprises: S1,预先定义各Excel数据表对应的业务类型,对于每一种业务类型,配置与该种业务类型关联的待提取字段,存储该种业务类型与对应的待提取字段的关联关系;S1, pre-defining a service type corresponding to each Excel data table, and configuring, for each service type, a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted; S2,当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,根据存储的业务类型与待提取字段的关联关系,确定该Excel数据表对应的业务类型关联的待提取字段;S2, when the Excel data table is imported into the financial auxiliary system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data table is determined according to the relationship between the stored service type and the field to be extracted. The field to be extracted associated with the corresponding service type; S3,基于所确定的待提取字段提取该Excel数据表中的数据对象;S3. Extract a data object in the Excel data table based on the determined to-be-extracted field. S4,将所确定的待提取字段及所提取的数据对象进行展示,供用户确认。S4: Display the determined to-be-extracted field and the extracted data object for user confirmation. 根据权利要求6所述的提取数据表的数据的方法,其特征在于,所述步骤S3包括:The method of extracting data of a data table according to claim 6, wherein the step S3 comprises: S31,将所确定的待提取字段与该Excel数据表中的各固定字段进行比对;S31, comparing the determined to-be-extracted field with each fixed field in the Excel data table; S32,若所确定的待提取字段与各固定字段一一对应且相同,则分析各固定字段下是否均有对应的数据对象;S32. If the determined to-be-extracted field is in one-to-one correspondence with each fixed field, analyze whether there is a corresponding data object under each fixed field. S33,若均有对应的数据对象,则提取该Excel数据表中各固定字段下对应的数据对象。S33: If there is a corresponding data object, extract the corresponding data object in each fixed field in the Excel data table. 根据权利要求7所述的提取数据表的数据的方法,其特征在于,所述 步骤S3进一步包括:The method of extracting data of a data table according to claim 7, wherein the step S3 further comprises: 若有所确定的待提取字段与各固定字段均不对应,或者有固定字段下没有对应的数据对象,则生成包含所确定的待提取字段的提示消息,以提示用户人工检查该Excel数据表。If the determined field to be extracted does not correspond to each fixed field, or there is no corresponding data object in the fixed field, a prompt message including the determined field to be extracted is generated to prompt the user to manually check the Excel data table. 根据权利要求6至8任一项所述的提取数据表的数据的方法,其特征在于,还包括:The method for extracting data of a data table according to any one of claims 6 to 8, further comprising: 在展示所提取的数据对象之前,按照预定的转换规则将所提取的数据对象转换为对应的数据格式。The extracted data objects are converted to a corresponding data format according to a predetermined conversion rule before the extracted data objects are presented. 根据权利要求6所述的提取数据表的数据的方法,其特征在于,所述步骤S4之后还包括:当接收到用户的确认指令后,将所提取的数据对象进行入库处理。The method for extracting data of a data table according to claim 6, wherein the step S4 further comprises: after receiving the confirmation instruction of the user, performing the warehousing process on the extracted data object. 一种提取数据表的数据的系统,其特征在于,所述提取数据表的数据的系统包括:A system for extracting data of a data table, wherein the system for extracting data of a data table comprises: 配置模块,用于预先定义各Excel数据表对应的业务类型,对于每一种业务类型,配置与该种业务类型关联的待提取字段,存储该种业务类型与对应的待提取字段的关联关系;a configuration module, configured to pre-define a service type corresponding to each Excel data table, and for each service type, configure a to-be-extracted field associated with the service type, and store an association relationship between the service type and the corresponding to-be-extracted field; 确定模块,用于当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,根据存储的业务类型与待提取字段的关联关系,确定该Excel数据表对应的业务类型关联的待提取字段;a determining module, configured to identify a service type corresponding to the Excel data table based on a file name of the Excel data table when the Excel data table is imported into the financial assistance system, and determine the relationship according to the stored service type and the relationship to be extracted The field to be extracted associated with the service type corresponding to the Excel data table; 提取模块,用于基于所确定的待提取字段提取该Excel数据表中的数据对象;An extracting module, configured to extract a data object in the Excel data table based on the determined field to be extracted; 展示模块,用于将所确定的待提取字段及所提取的数据对象进行展示,供用户确认。The display module is configured to display the determined to-be-extracted field and the extracted data object for confirmation by the user. 根据权利要求11所述的提取数据表的数据的系统,其特征在于,所 述提取模块具体用于,将所确定的待提取字段与该Excel数据表中的各固定字段进行比对;若所确定的待提取字段与各固定字段一一对应且相同,则分析各固定字段下是否均有对应的数据对象;若均有对应的数据对象,则提取该Excel数据表中各固定字段下对应的数据对象。The system for extracting data of a data table according to claim 11, wherein the extracting module is specifically configured to compare the determined field to be extracted with each fixed field in the Excel data table; If the determined field to be extracted is in one-to-one correspondence with each fixed field, the corresponding data object is analyzed under each fixed field; if there is a corresponding data object, the corresponding corresponding field in the Excel data table is extracted. Data object. 根据权利要求12所述的提取数据表的数据的系统,其特征在于,所述提取模块进一步用于,若有所确定的待提取字段与各固定字段均不对应,或者有固定字段下没有对应的数据对象,则生成包含所确定的待提取字段的提示消息,以提示用户人工检查该Excel数据表。The system for extracting data of a data table according to claim 12, wherein the extracting module is further configured to: if the determined field to be extracted does not correspond to each fixed field, or if there is a corresponding field, there is no corresponding The data object generates a prompt message containing the determined field to be extracted to prompt the user to manually check the Excel data table. 根据权利要求11至13任一项所述的提取数据表的数据的系统,其特征在于,还包括:The system for extracting data of a data table according to any one of claims 11 to 13, further comprising: 转换模块,用于在展示所提取的数据对象之前,按照预定的转换规则将所提取的数据对象转换为对应的数据格式。And a conversion module, configured to convert the extracted data object into a corresponding data format according to a predetermined conversion rule before displaying the extracted data object. 根据权利要求11所述的提取数据表的数据的系统,其特征在于,还包括入库模块,用于当接收到用户的确认指令后,将所提取的数据对象进行入库处理。The system for extracting data of a data table according to claim 11, further comprising: a warehousing module, configured to perform the warehousing process on the extracted data object after receiving the confirmation instruction of the user. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有处理系统,所述处理系统被处理器执行时实现步骤:A computer readable storage medium, wherein the computer readable storage medium stores a processing system, and when the processing system is executed by the processor, the steps are: S1,预先定义各Excel数据表对应的业务类型,对于每一种业务类型,配置与该种业务类型关联的待提取字段,存储该种业务类型与对应的待提取字段的关联关系;S1, pre-defining a service type corresponding to each Excel data table, and configuring, for each service type, a field to be extracted associated with the service type, and storing an association relationship between the service type and the corresponding field to be extracted; S2,当将Excel数据表导入财务辅助系统中时,基于该Excel数据表的文件名识别该Excel数据表对应的业务类型,根据存储的业务类型与待提取字段的关联关系,确定该Excel数据表对应的业务类型关联的待提取字段;S2, when the Excel data table is imported into the financial auxiliary system, the service type corresponding to the Excel data table is identified based on the file name of the Excel data table, and the Excel data table is determined according to the relationship between the stored service type and the field to be extracted. The field to be extracted associated with the corresponding service type; S3,基于所确定的待提取字段提取该Excel数据表中的数据对象;S3. Extract a data object in the Excel data table based on the determined to-be-extracted field. S4,将所确定的待提取字段及所提取的数据对象进行展示,供用户确认。S4: Display the determined to-be-extracted field and the extracted data object for user confirmation. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述步骤S3包括:The computer readable storage medium of claim 16, wherein the step S3 comprises: S31,将所确定的待提取字段与该Excel数据表中的各固定字段进行比对;S31, comparing the determined to-be-extracted field with each fixed field in the Excel data table; S32,若所确定的待提取字段与各固定字段一一对应且相同,则分析各固定字段下是否均有对应的数据对象;S32. If the determined to-be-extracted field is in one-to-one correspondence with each fixed field, analyze whether there is a corresponding data object under each fixed field. S33,若均有对应的数据对象,则提取该Excel数据表中各固定字段下对应的数据对象。S33: If there is a corresponding data object, extract the corresponding data object in each fixed field in the Excel data table. 根据权利要求17所述的计算机可读存储介质,其特征在于,所述步骤S3进一步包括:The computer readable storage medium according to claim 17, wherein the step S3 further comprises: 若有所确定的待提取字段与各固定字段均不对应,或者有固定字段下没有对应的数据对象,则生成包含所确定的待提取字段的提示消息,以提示用户人工检查该Excel数据表。If the determined field to be extracted does not correspond to each fixed field, or there is no corresponding data object in the fixed field, a prompt message including the determined field to be extracted is generated to prompt the user to manually check the Excel data table. 根据权利要求16至18任一项所述的计算机可读存储介质,其特征在于,所述处理系统被所述处理器执行时,还实现如下步骤:The computer readable storage medium according to any one of claims 16 to 18, wherein when the processing system is executed by the processor, the following steps are further implemented: 在展示所提取的数据对象之前,按照预定的转换规则将所提取的数据对象转换为对应的数据格式。The extracted data objects are converted to a corresponding data format according to a predetermined conversion rule before the extracted data objects are presented. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述处理系统被所述处理器执行时,还实现如下步骤:当接收到用户的确认指令后,将所提取的数据对象进行入库处理。The computer readable storage medium according to claim 16, wherein when the processing system is executed by the processor, the method further comprises the steps of: after receiving the confirmation instruction of the user, performing the extracted data object Inbound processing.
PCT/CN2018/089874 2017-09-30 2018-06-05 Electronic device, method and system for extracting data in data table, and storage medium Ceased WO2019062191A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710914884.5 2017-09-30
CN201710914884.5A CN107870979A (en) 2017-09-30 2017-09-30 Electronic installation, extract tables of data data method and storage medium

Publications (1)

Publication Number Publication Date
WO2019062191A1 true WO2019062191A1 (en) 2019-04-04

Family

ID=61753006

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089874 Ceased WO2019062191A1 (en) 2017-09-30 2018-06-05 Electronic device, method and system for extracting data in data table, and storage medium

Country Status (2)

Country Link
CN (1) CN107870979A (en)
WO (1) WO2019062191A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110517740A (en) * 2019-07-03 2019-11-29 平安科技(深圳)有限公司 Medical data processing method, system, computer equipment and storage medium

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870979A (en) * 2017-09-30 2018-04-03 平安科技(深圳)有限公司 Electronic installation, extract tables of data data method and storage medium
CN110222104A (en) * 2019-04-30 2019-09-10 中国人民财产保险股份有限公司 Data extraction method, equipment and storage medium
CN111400135A (en) * 2020-03-13 2020-07-10 普信恒业科技发展(北京)有限公司 Method and device for extracting service data
CN111462845B (en) * 2020-03-17 2025-05-02 深圳平安智慧医健科技有限公司 Dynamic form generation method, device, computer equipment and storage medium
CN111625586A (en) * 2020-05-27 2020-09-04 北京思特奇信息技术股份有限公司 Method and system for importing general service data
CN111694867A (en) * 2020-06-16 2020-09-22 北京同邦卓益科技有限公司 Data management method and device, electronic equipment and storage medium
CN112882630B (en) * 2021-03-19 2022-07-29 腾讯科技(深圳)有限公司 Information configuration method and related product
CN113505580A (en) * 2021-07-26 2021-10-15 京东科技控股股份有限公司 Method and device for analyzing table file
CN114037304B (en) * 2021-11-16 2025-04-22 浪潮通用软件有限公司 A method, device and medium for collecting data of cost information
CN114547040A (en) * 2022-02-25 2022-05-27 北京北信源软件股份有限公司 Data processing method, apparatus, equipment and medium
CN114722109B (en) * 2022-04-13 2024-02-06 中国电信股份有限公司 Data importing method, system, equipment and storage medium
CN117009422B (en) * 2023-05-09 2024-04-12 三峡高科信息技术有限责任公司 Method for facilitating business personnel to import data
CN117235079A (en) * 2023-11-16 2023-12-15 中国人民财产保险股份有限公司 Data processing method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246651A (en) * 2012-02-02 2013-08-14 金蝶软件(中国)有限公司 Method and system for data inputting
CN103744982A (en) * 2014-01-15 2014-04-23 北京神州普惠科技股份有限公司 Method for importing Excel data into database
US20150339285A1 (en) * 2014-04-22 2015-11-26 Aman Safaei Methods and Systems for Batch Generation and Delivery of Customized Documents
CN105138497A (en) * 2015-07-13 2015-12-09 深圳市永兴元科技有限公司 Report uploadingmethod in report system and report system
CN107193788A (en) * 2017-06-13 2017-09-22 广东中建普联科技股份有限公司 Construction industry engineering project Excel file data format storage method and system
CN107870979A (en) * 2017-09-30 2018-04-03 平安科技(深圳)有限公司 Electronic installation, extract tables of data data method and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101251809B (en) * 2008-03-11 2011-03-16 浪潮集团山东通用软件有限公司 Implementing method of data interface
CN105376220B (en) * 2011-11-30 2019-09-17 阿里巴巴集团控股有限公司 A kind of service implementation method, system and server
CN102542038A (en) * 2011-12-27 2012-07-04 浪潮通信信息系统有限公司 Universal configurable standard bureau data storage method
CN103970758A (en) * 2013-01-29 2014-08-06 鸿富锦精密工业(深圳)有限公司 Database accessing system and method
CN103995908A (en) * 2014-06-17 2014-08-20 山东中创软件工程股份有限公司 Method and device for importing data
CN105117431A (en) * 2015-08-07 2015-12-02 北京思特奇信息技术股份有限公司 Dynamic configuration method and system for external imported data
CN105243117B (en) * 2015-09-28 2019-03-12 四川长虹电器股份有限公司 A kind of data processing system and method
CN105912698A (en) * 2016-04-25 2016-08-31 乐视控股(北京)有限公司 Deletion method and system of data file in disk
CN106503457B (en) * 2016-10-26 2018-12-11 清华大学 Clinical data based on translational medicine analysis platform integrates technical data introduction method
CN106682150B (en) * 2016-12-22 2020-12-01 北京锐安科技有限公司 Method and device for processing information
CN107463661B (en) * 2017-07-31 2021-04-27 绿湾网络科技有限公司 Data importing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246651A (en) * 2012-02-02 2013-08-14 金蝶软件(中国)有限公司 Method and system for data inputting
CN103744982A (en) * 2014-01-15 2014-04-23 北京神州普惠科技股份有限公司 Method for importing Excel data into database
US20150339285A1 (en) * 2014-04-22 2015-11-26 Aman Safaei Methods and Systems for Batch Generation and Delivery of Customized Documents
CN105138497A (en) * 2015-07-13 2015-12-09 深圳市永兴元科技有限公司 Report uploadingmethod in report system and report system
CN107193788A (en) * 2017-06-13 2017-09-22 广东中建普联科技股份有限公司 Construction industry engineering project Excel file data format storage method and system
CN107870979A (en) * 2017-09-30 2018-04-03 平安科技(深圳)有限公司 Electronic installation, extract tables of data data method and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110517740A (en) * 2019-07-03 2019-11-29 平安科技(深圳)有限公司 Medical data processing method, system, computer equipment and storage medium
CN110517740B (en) * 2019-07-03 2023-08-11 平安科技(深圳)有限公司 Medical data processing method, system, computer device and storage medium

Also Published As

Publication number Publication date
CN107870979A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
WO2019062191A1 (en) Electronic device, method and system for extracting data in data table, and storage medium
US20210109934A1 (en) Configurable and incremental database migration framework for heterogeneous databases
US10552439B2 (en) Grid format data viewing and editing environment
US20200110795A1 (en) Facilitating auto-completion of electronic forms with hierarchical entity data models
CN107392655B (en) Coupon push method, system, storage medium, electronic device and distribution method
CN110750654A (en) Knowledge graph acquisition method, device, equipment and medium
WO2019134340A1 (en) Salary calculation method, application server, and computer readable storage medium
CN111598122B (en) Data verification method and device, electronic equipment and storage medium
WO2019062189A1 (en) Electronic device, method and system for conducting data table filing processing, and storage medium
CN111815421B (en) Tax policy processing method and device, terminal equipment and storage medium
CN114281803A (en) Data migration method, device, equipment, medium and program product
CN108536715B (en) Preview page generation method, device, equipment and storage medium
CN110362630A (en) Data managing method, device, equipment and computer readable storage medium
WO2019136812A1 (en) Electronic device, data calling log generation and query method, and storage medium
WO2019169763A1 (en) Electronic apparatus, service system risk control method, and storage medium
CN115587575A (en) Data table creation method, target data query method, device and equipment
WO2019071907A1 (en) Method for identifying help information based on operation page, and application server
CN113515510A (en) Data processing method, data processing system, electronic device and readable storage medium
CN107729768B (en) A page display method, device, smart tablet and storage medium
CN113806522B (en) Abstract generation method, device, equipment and storage medium
CN114358636A (en) Index configuration method, data acquisition method, device, equipment and medium
CN110032513B (en) Data verification method and device and electronic equipment
WO2019024238A1 (en) Range value data statistical method and system, electronic device, and computer readable storage medium
WO2019095569A1 (en) Financial analysis method based on financial and economic event on microblog, application server, and computer readable storage medium
WO2019041525A1 (en) Method, electronic apparatus, and computer readable storage medium for identifying entities having identical name

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18860143

Country of ref document: EP

Kind code of ref document: A1