Data file processing method and device

文档序号:1087390 发布日期:2020-10-20 浏览:14次 中文

阅读说明:本技术 数据文件处理方法及装置 (Data file processing method and device ) 是由 武和 于 2020-07-10 设计创作,主要内容包括:本申请提供一种数据文件处理方法及装置,数据文件处理方法包括:获取数据文件,数据文件中包括文件标识;根据文件标识对应的第一解析模板,对数据文件进行解析处理,得到解析信息;若解析信息存在错误,则根据解析信息和第一解析模板,确定第二解析模板;根据第二解析模板,对数据文件进行解析处理,得到数据信息,并根据数据信息进行业务处理。用于节省人力劳动和抄录时间,提供高了业务处理的效率。(The application provides a data file processing method and a data file processing device, wherein the data file processing method comprises the following steps: acquiring a data file, wherein the data file comprises a file identifier; analyzing the data file according to a first analysis template corresponding to the file identifier to obtain analysis information; if the analysis information has errors, determining a second analysis template according to the analysis information and the first analysis template; and analyzing the data file according to the second analysis template to obtain data information, and performing service processing according to the data information. The method is used for saving labor and transcription time and provides high business processing efficiency.)

1. A method for processing a data file, the method comprising:

acquiring a data file, wherein the data file comprises a file identifier;

analyzing the data file according to a first analysis template corresponding to the file identifier to obtain analysis information;

if the analysis information has errors, determining a second analysis template according to the analysis information and the first analysis template;

and analyzing the data file according to the second analysis template to obtain data information, and performing service processing according to the data information.

2. The method of claim 1, wherein parsing the information comprises: field information, unit information, and file information; the analyzing the data file according to the first analysis template corresponding to the file identifier to obtain analysis information, including:

according to the first analysis template, performing field query processing on the data file to obtain field information;

according to the first analysis template, unit query processing is carried out on the data file to obtain unit information;

and according to the first analysis template, carrying out unit change query processing on the data file to obtain file information.

3. The method of claim 2, wherein the parsing the information in error comprises: at least one of the field information, the unit information, and the file information has an error.

4. The method of claim 3, wherein determining a second parsing template based on the parsing information and the first parsing template comprises:

determining error information in the analysis information, and updating the first analysis template according to the error information to obtain a second analysis template;

wherein the error information includes at least one of the field information, the unit information, and the file information.

5. The method of claim 4, wherein the updating the first parsing template according to the error information to obtain the second parsing template comprises:

displaying the error information and the first analysis template;

and receiving a template change instruction input by a user in the first analysis template according to the error information, and updating the first analysis template according to the template change instruction to obtain the second analysis template.

6. The method according to any one of claims 1 to 5, wherein before the analyzing the data file according to the first analysis template corresponding to the file identifier to obtain the analysis information, the method further includes:

judging whether the first analysis template is stored in advance;

and if the first analysis template is not stored, carrying out template configuration to obtain the first analysis template.

7. The method according to any one of claims 1 to 6, wherein before the analyzing the data file according to the first analysis template corresponding to the file identifier to obtain the analysis information, the method further includes:

receiving an updating instruction input by a user, wherein the updating instruction comprises an updating identifier, and the updating identifier is used for indicating that the template is updated or not updated.

8. The method according to any one of claims 1 to 7, wherein if the parsing information is correct, the data information is obtained after parsing the data file according to the first parsing template.

9. An electronic device, comprising: a processor and a memory;

the memory stores computer-executable instructions;

the processor executing the computer-executable instructions stored by the memory causes the processor to perform the data file processing method of any of claims 1 to 8.

10. A computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the data file processing method of any one of claims 1 to 8.

Technical Field

The present application relates to the field of computers, and in particular, to a data file processing method and apparatus.

Background

The information disclosure of the enterprise annuity mainly relates to the following hexagonal regulatory agencies: trusteeship mechanism, management mechanism, accepting mechanism, account management mechanism, entrusting mechanism and security and supervision.

Generally, in each quarter, a salesman of a trusted organization receives a credit report from a trustee of a hosting organization, a delivery organization and an account management organization related to a certain business plan through electronic equipment, the salesman of the trusted organization copies and records data information in each credit report into a preset processing template, and introduces the preset processing template including the data information into a business processing system, so that the business processing system checks and verifies the data information in the preset processing template, and after the data information passes the verification, business processing is performed according to the data information.

In the process, the operator of the entrusted organization transcribes the data information in each letter batch report into the preset processing template, which is time-consuming and labor-consuming, and moreover, the data information in the preset processing template needs to be checked to determine whether the transcribed data information is correct, so that the efficiency of business processing is reduced.

Disclosure of Invention

The application provides a data file processing method and device, which are used for saving labor and recording time and improving the efficiency of service processing.

In a first aspect, the present application provides a data file processing method, including:

acquiring a data file, wherein the data file comprises a file identifier;

analyzing the data file according to a first analysis template corresponding to the file identifier to obtain analysis information;

if the analysis information has errors, determining a second analysis template according to the analysis information and the first analysis template;

and analyzing the data file according to the second analysis template to obtain data information, and performing service processing according to the data information.

In one possible design, parsing the information includes: field information, unit information, and file information; according to a first analysis template corresponding to the file identification, analyzing the data file to obtain analysis information, including:

according to the first analysis template, performing field query processing on the data file to obtain field information;

according to the first analysis template, unit query processing is carried out on the data file to obtain unit information;

and according to the first analysis template, carrying out unit change query processing on the data file to obtain file information.

In one possible design, resolving the information with the error includes: at least one of the field information, the unit information, and the file information has an error.

In one possible design, determining the second parsing template according to the parsing information and the first parsing template includes:

determining error information in the analysis information, and updating the first analysis template according to the error information to obtain a second analysis template;

wherein the error information includes at least one of field information, unit information, and file information.

In one possible design, updating the first parsing template according to the error information to obtain a second parsing template includes:

displaying error information and a first analysis template;

and receiving a template change instruction input by a user in the first analysis template according to the error information, and updating the first analysis template according to the template change instruction to obtain a second analysis template.

In a possible design, before analyzing the data file according to the first analysis template corresponding to the file identifier to obtain analysis information, the method further includes:

judging whether a first analysis template is stored in advance;

and if the first analysis template is not stored, carrying out template configuration to obtain the first analysis template.

In a possible design, before analyzing the data file according to the first analysis template corresponding to the file identifier to obtain analysis information, the method further includes:

and receiving an updating instruction input by a user, wherein the updating instruction comprises an updating identifier which is used for indicating that the template is updated or not updated.

In one possible design, if the parsing information is correct, the data information is obtained after the data file is parsed according to the first parsing template.

In a second aspect, the present application provides a data file processing apparatus, comprising: an acquisition module, an analysis module, a determination module and a service processing module, wherein,

the acquisition module is used for acquiring a data file, and the data file comprises a file identifier;

the analysis module is used for analyzing the data file according to the first analysis template corresponding to the file identifier to obtain analysis information;

the determining module is used for determining a second analysis template according to the analysis information and the first analysis template if the analysis information has errors;

the analysis module is also used for analyzing the data file according to the second analysis template to obtain data information;

and the service processing module is used for processing the service according to the data information.

In one possible design, parsing the information includes: field information, unit information, and file information; the parsing module is specifically configured to:

according to the first analysis template, performing field query processing on the data file to obtain field information;

according to the first analysis template, unit query processing is carried out on the data file to obtain unit information;

and according to the first analysis template, carrying out unit change query processing on the data file to obtain file information.

In one possible design, resolving the information with the error includes: at least one of the field information, the unit information, and the file information has an error.

In one possible design, the determining module is specifically configured to:

determining error information in the analysis information, and updating the first analysis template according to the error information to obtain a second analysis template;

wherein the error information includes at least one of field information, unit information, and file information.

In one possible design, the determining module is specifically configured to:

displaying error information and a first analysis template;

and receiving a template change instruction input by a user in the first analysis template according to the error information, and updating the first analysis template according to the template change instruction to obtain a second analysis template.

In one possible design, the apparatus further includes a determination module and a configuration module, wherein,

the judging module is used for judging whether a first analysis template is stored in advance before analyzing the data file according to the first analysis template corresponding to the file identifier to obtain analysis information;

and the configuration module is used for configuring the template to obtain the first analysis template if the first analysis template is not stored.

In one possible design, the apparatus further includes a receiving module, wherein,

the receiving module is used for analyzing the data file according to the first analysis template corresponding to the file identifier, and receiving an update instruction input by a user before analysis information is obtained, wherein the update instruction comprises an update identifier which is used for indicating whether to update the template or not.

In a possible design, the parsing module is further configured to, if the parsing information is correct, obtain the data information after parsing the data file according to the first parsing template.

In a third aspect, the present application provides an electronic device, comprising: a processor and a memory;

the memory stores computer-executable instructions;

the processor executes computer-executable instructions stored by the memory, causing the processor to perform the data file processing method of any of the first aspects.

In a fourth aspect, the present application provides a readable storage medium comprising a program or instructions, which when run on a computer, performs the data file processing method of any one of the above first aspects.

The data file processing method provided by the embodiment comprises the following steps: acquiring a data file, wherein the data file comprises a file identifier; analyzing the data file according to a first analysis template corresponding to the file identifier to obtain analysis information; if the analysis information has errors, determining a second analysis template according to the analysis information and the first analysis template; and analyzing the data file according to the second analysis template to obtain data information, and performing service processing according to the data information. In the method, the data file is analyzed according to the analysis template to obtain the data information, so that a salesman can be prevented from copying the data information in each letter batch report into a preset processing template, the labor and the copying time are saved, furthermore, the data information obtained by analyzing the data file through the analysis template is more accurate, the data information does not need to be checked, and the efficiency of business processing is improved.

Drawings

In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.

Fig. 1 is a schematic structural diagram of an enterprise annuity business system provided by the present application;

FIG. 2 is a first schematic flow chart illustrating a data file processing method according to the present application;

FIG. 3 is a schematic diagram of a configuration structure of an analytic template provided by a user;

fig. 4 is a schematic flow chart of a data file processing method provided in the present application;

fig. 5 is a third schematic flowchart of a data file processing method provided in the present application;

FIG. 6 is a first data file provided by the application;

FIG. 7 is a second data file provided for by the application;

FIG. 8 is a third data file provided by the application;

FIG. 9 is a fourth data file provided by the application;

FIG. 10 is a first schematic structural diagram of a data file processing apparatus provided in the present application;

FIG. 11 is a second schematic structural diagram of a data file processing apparatus provided in the present application;

FIG. 12 is a third schematic structural diagram of a data file processing apparatus provided in the present application;

fig. 13 is a schematic diagram of a hardware structure of an electronic device provided in the present application.

Detailed Description

To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

25页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:文本处理方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!