Data analysis method and device, electronic equipment and computer readable medium

By utilizing scheduled tasks and thread pool technology in data parsing to scan public mailboxes and parse data files, the problems of low data parsing efficiency and poor security in the existing technology are solved, and more efficient and secure data processing is achieved.

CN118690741APending Publication Date: 2024-09-24CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing data analysis efficiency is low, the operation is cumbersome, and the data security is poor.

Method used

Trigger scheduled tasks through responses, scan public mailboxes, extract unique email identifiers of unread emails, perform email validity verification, obtain parsing rules, call the thread pool to parse data files, and update email attachment information when parsing errors occur until parsing errors occur The data record is empty.

Benefits of technology

It improves the efficiency of data analysis, simplifies the operation process, and improves the security during data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690741A
    Figure CN118690741A
Patent Text Reader

Abstract

The invention discloses a data analysis method and device, electronic equipment and a computer readable medium, and relates to the technical field of data analysis, and the method comprises the steps: responding to a triggered timed task, scanning a public mailbox, pulling an unread mail, extracting a unique identifier of the mail, and determining a corresponding type; reading email attachment information in response to the fact that email validity verification performed according to the type passes, and obtaining a data file; obtaining a corresponding associated data template identifier, and determining an analysis rule to analyze the data file; if the data file is analyzed completely and an analysis error exists, obtaining a mail sending record identifier and a reply batch identifier corresponding to the unique identifier of the mail to obtain a corresponding analysis error data record, and further updating mail attachment information and returning the mail attachment information to a corresponding user; and receiving feedback information of the corresponding user, and then executing data analysis until the analysis error data record is empty, and ending the data analysis. The data analysis efficiency and the data security are improved, and the data analysis operation is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data analysis technology, and in particular to a data analysis method, device, electronic device and computer-readable medium. Background Art

[0002] In the past, data collection was usually done offline. First, auditors sorted out what types of data were needed, then found the audit contact person of the audit agency to obtain the data file, and finally used the data import function in the system to import the data into the system, and then performed tests based on this data. This resulted in low data analysis efficiency, cumbersome operations, and poor data security. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a data analysis method, device, electronic device and computer-readable medium, which can solve the problems of low efficiency, cumbersome operation and poor data security of existing data analysis.

[0004] To achieve the above object, according to one aspect of an embodiment of the present application, a data parsing method is provided, comprising:

[0005] In response to triggering the scheduled task, scanning the public mailbox, and then pulling unread emails, extracting the email unique identifier corresponding to the unread email, and determining the type of the email unique identifier;

[0006] Performing email validity check according to the type, and in response to the email validity check passing, reading email attachment information of the unread email to obtain a corresponding data file;

[0007] Obtain the associated data template identifier corresponding to the unique identifier of the email, and then determine the corresponding parsing rule, and call the thread pool to parse the data file based on the parsing rule;

[0008] In response to the data file being parsed and having a parsing error, obtaining an email sending record identifier and a reply batch identifier corresponding to the email unique identifier, and then obtaining a corresponding parsing error data record based on the email sending record identifier and the reply batch identifier;

[0009] Update the email attachment information based on the parsed error data record, and return the updated email attachment information to the corresponding user via email;

[0010] Receive feedback information from the corresponding user based on the updated email attachment information, perform data parsing based on the feedback information until the parsed error data record is empty, and end the data parsing.

[0011] Optionally, perform email validity checks based on the type, including:

[0012] In response to the type being a universal unique identifier, querying the mail sending record table based on the mail unique identifier to obtain a query result;

[0013] In response to the query result that there is a unique email identifier in the email sending record table, determining that the corresponding email is a valid email;

[0014] In response to the query result that the email unique identifier does not exist in the email sending record table, it is determined that the corresponding email is an invalid email.

[0015] Optionally, perform email validity checks based on the type, including:

[0016] In response to the type being a hash value, extracting the email title and the email sending user identifier corresponding to the email unique identifier, and concatenating the email title and the email sending user identifier to obtain concatenated data;

[0017] Perform hash calculation on the concatenated data to obtain the target hash value;

[0018] The target hash value is compared with the unique identifier of the email. If they are the same, the corresponding email is determined to be a valid email. If they are different, the corresponding email is determined to be an invalid email.

[0019] Optionally, extract the unique identifier of the unread email, including:

[0020] The position of the preset symbol in the title of the unread email is identified, and the identifier in the preset symbol at the position is extracted to determine the identifier as the corresponding email unique identifier.

[0021] Optionally, before determining the type of the email unique identifier, the method further includes:

[0022] In response to the email sending record status corresponding to the email unique identifier being completed, automatically replying to the corresponding email with invalid information.

[0023] Optionally, in response to the email validity check passing, the method further includes:

[0024] The email status of the email corresponding to the email unique identifier is set to read, and the corresponding email sending record status is changed to being parsed.

[0025] Optionally, before determining the type of the email unique identifier, the method further includes:

[0026] In response to the email sending record status corresponding to the email unique identifier being parsed, email attachment information in the email corresponding to the email unique identifier is not parsed during the execution of this scheduled task.

[0027] In addition, the present application also provides a data analysis device, including:

[0028] A type determination unit is configured to scan the public mailbox in response to triggering the scheduled task, and then pull out the unread emails, extract the email unique identifier corresponding to the unread email, and determine the type of the email unique identifier;

[0029] The verification unit is configured to perform a mail validity check according to the type, and in response to the mail validity check passing, read the mail attachment information of the unread mail to obtain a corresponding data file;

[0030] The parsing unit is configured to obtain the associated data template identifier corresponding to the unique identifier of the email, and then determine the corresponding parsing rule, and call the thread pool to parse the data file based on the parsing rule;

[0031] an acquisition unit, configured to, in response to the data file being parsed and having a parsing error, acquire an email sending record identifier and a reply batch identifier corresponding to the email unique identifier, and then acquire a corresponding parsing error data record based on the email sending record identifier and the reply batch identifier;

[0032] An updating unit, configured to update the email attachment information based on the parsing error data record, and return the updated email attachment information to the corresponding user via email;

[0033] The receiving unit is configured to receive feedback information from the corresponding user based on the updated email attachment information, perform data parsing based on the feedback information until the parsing error data record is empty, and end the data parsing.

[0034] Optionally, the verification unit is further configured to:

[0035] In response to the type being a universal unique identifier, querying the mail sending record table based on the mail unique identifier to obtain a query result;

[0036] In response to the query result that there is a unique email identifier in the email sending record table, determining that the corresponding email is a valid email;

[0037] In response to the query result that the email unique identifier does not exist in the email sending record table, it is determined that the corresponding email is an invalid email.

[0038] Optionally, the verification unit is further configured to:

[0039] In response to the type being a hash value, extracting the email title and the email sending user identifier corresponding to the email unique identifier, and concatenating the email title and the email sending user identifier to obtain concatenated data;

[0040] Perform hash calculation on the concatenated data to obtain the target hash value;

[0041] The target hash value is compared with the unique identifier of the email. If they are the same, the corresponding email is determined to be a valid email. If they are different, the corresponding email is determined to be an invalid email.

[0042] Optionally, the type determination unit is further configured to:

[0043] The position of the preset symbol in the title of the unread email is identified, and the identifier in the preset symbol at the position is extracted to determine the identifier as the corresponding email unique identifier.

[0044] Optionally, the device further comprises an automatic reply unit configured to:

[0045] In response to the email sending record status corresponding to the email unique identifier being completed, automatically replying to the corresponding email with invalid information.

[0046] Optionally, the device further comprises a state modification unit configured to:

[0047] The email status of the email corresponding to the email unique identifier is set to read, and the corresponding email sending record status is changed to being parsed.

[0048] Optionally, the type determination unit is further configured to:

[0049] In response to the email sending record status corresponding to the email unique identifier being parsed, email attachment information in the email corresponding to the email unique identifier is not parsed during the execution of this scheduled task.

[0050] In addition, the present application also provides a data analysis electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by one or more processors, the one or more processors implement the data analysis method as described above.

[0051] In addition, the present application also provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the data parsing method as described above is implemented.

[0052] To achieve the above objective, according to another aspect of the embodiments of the present application, a computer program product is provided.

[0053] A computer program product according to an embodiment of the present application includes a computer program, and when the program is executed by a processor, the data parsing method provided by the embodiment of the present application is implemented.

[0054] One embodiment of the above invention has the following advantages or beneficial effects: the present application scans the public mailbox in response to triggering a scheduled task, and then pulls unread mails, extracts the mail unique identifier corresponding to the unread mails, and determines the type of the mail unique identifier; performs mail validity check according to the type, and reads the mail attachment information of the unread mail in response to the mail validity check passing, so as to obtain the corresponding data file; obtains the associated data template identifier corresponding to the mail unique identifier, and then determines the corresponding parsing rule, and calls the thread pool to parse the data file based on the parsing rule; in response to the completion of data file parsing and the existence of parsing errors, obtains the mail sending record identifier and reply batch identifier corresponding to the mail unique identifier, and then obtains the corresponding parsing error data record based on the mail sending record identifier and the reply batch identifier; updates the mail attachment information based on the parsing error data record, and returns the updated mail attachment information to the corresponding user through mail; receives feedback information from the corresponding user based on the updated mail attachment information, performs data parsing based on the feedback information until the parsing error data record is empty, and ends the data parsing. Thus, the data parsing efficiency is improved, the data parsing operation is simplified, and the data security during data parsing is improved.

[0055] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The accompanying drawings are used to better understand the present application and do not constitute an improper limitation on the present application.

[0057] Figure 1 is a schematic diagram of the main process of a data analysis method according to an embodiment of the present application;

[0058] Figure 2 is a schematic diagram of the main process of a data analysis method according to an embodiment of the present application;

[0059] Figure 3 It is a schematic diagram of the main process of a data analysis method according to an embodiment of the present application;

[0060] Figure 4 is a schematic diagram of the main units of the data analysis device according to an embodiment of the present application;

[0061] Figure 5 is an exemplary system architecture diagram to which the embodiments of the present application can be applied;

[0062] Figure 6 It is a structural diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present application. DETAILED DESCRIPTION

[0063] The following is a description of the exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, and they should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of known functions and structures is omitted in the following description. It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of the present application are in compliance with the relevant provisions of national laws and regulations. It should be noted that in the embodiments of the present application, certain software, components, models, and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or must have used the solution. In the technical solution of the present application, the collection, analysis, use, transmission, storage, and other aspects of the user's personal information involved are in compliance with the provisions of relevant laws and regulations, and are used for legal and reasonable purposes, and are not shared, leaked, or sold outside of these legal uses, and are subject to supervision and management by regulatory authorities. Take necessary measures to prevent illegal access to such personal information, ensure that persons with access to personal information comply with relevant laws and regulations, and ensure the security of personal information. Once such personal information is no longer needed, risks should be minimized by limiting or even prohibiting data collection and / or deleting data.

[0064] When used, including in certain related applications, user privacy is protected by de-identifying data, such as by removing specific identifiers when used, controlling the amount or specificity of data stored, controlling how data is stored, and / or other methods of de-identification.

[0065] Figure 1 is a schematic diagram of the main process of a data analysis method according to an embodiment of the present application, such as Figure 1 As shown, the data parsing method includes:

[0066] Step S101, in response to triggering a scheduled task, scanning a public mailbox, further pulling out unread emails, extracting email unique identifiers corresponding to the unread emails, and determining the type of the email unique identifier.

[0067] In this embodiment, the execution subject of the data analysis method (for example, it can be a server) can detect whether a scheduled task is triggered by a wired connection or a wireless connection. The scheduled task can be a task of regularly reading emails in a public mailbox. When the execution subject detects that a scheduled task is triggered, it can scan the public mailbox corresponding to the scheduled task, pull all unread emails or pull unread emails in a certain time period, and then extract the email unique identifier in the email title of the unread email. The email unique identifier can be used to verify the validity of the email. The email unique identifier can carry a type identifier, and the type of the email unique identifier is determined according to the type identifier in the email unique identifier. The type of the email unique identifier can include a universally unique identifier (Universally Unique Identifier, UUID) and a hash value.

[0068] Specifically, before determining the type of the unique email identifier, the method further includes: in response to the email sending record status corresponding to the unique email identifier being completed, automatically replying to the corresponding email with invalid information.

[0069] For example, if the email sending record status corresponding to the email is completed, the attachment in the email will not be parsed. This means that if the data provided by the data provider has been successfully submitted to the database, the submitted data will be invalid if the data provider replies to the email later.

[0070] Step S102: performing an email validity check according to the type, and in response to the email validity check passing, reading email attachment information of the unread email to obtain a corresponding data file.

[0071] Specifically, according to the type, the email validity check is performed, including: in response to the type being a hash value, extracting the email title and the email sending user identifier corresponding to the email unique identifier, splicing the email title and the email sending user identifier to obtain spliced ​​data; performing a hash calculation on the spliced ​​data to obtain a target hash value; comparing the target hash value with the email unique identifier, if they are the same, determining that the corresponding email is a valid email, if they are different, determining that the corresponding email is an invalid email.

[0072] The email sending user identifier can be, for example, the email sender's email address. For example, if the hash value (i.e., email unique identifier) ​​generated by the message digest algorithm (MD5) is extracted, the email header is extracted to remove the email unique identifier, and the email sender's email address is extracted. The MD5 calculation is performed after the string is concatenated, and the calculated MD5 value is compared with the email unique identifier corresponding to the original extracted unread email. If they are the same, it is determined to be a valid email and the email validity check passes; if they are different, it is determined to be an invalid email and the email validity check fails.

[0073] Specifically, in response to the email validity check being passed, the method further includes: setting the email status of the email corresponding to the email unique identifier to read, and modifying the corresponding email sending record status to being parsed.

[0074] For example, after the email validity check is passed, the email status is set to read and the email attachment information is read, the data file provided by the data provider (i.e., the email sender) is downloaded, and the data file and the email sending record queried above are submitted to the thread pool to perform data file parsing. At this time, the email sending record status is changed to parsing.

[0075] Step S103, obtaining the associated data template identifier corresponding to the email unique identifier, further determining the corresponding parsing rule, and calling the thread pool to parse the data file based on the parsing rule.

[0076] The execution subject can obtain the associated data template identifier associated with the unique identifier of the email from the email sending record table, and query the parsing rules and the associated template data table name configured using the data template management component based on the associated data template identifier. Then the execution subject can submit the data file to the thread pool for data file parsing, and change the email sending record status to parsing.

[0077] Step S104, in response to the data file being parsed and having parsing errors, obtaining the email sending record identifier and the reply batch identifier corresponding to the email unique identifier, and then obtaining the corresponding parsing error data record based on the email sending record identifier and the reply batch identifier.

[0078] If there are verification errors during the parsing of the data file, all verification errors that occur in the parsing of this batch of files will be exported to an Excel file. The Excel file stores the parsing error data records. The corresponding parsing error data records in the Excel file can be queried using the email sending record ID + reply batch ID as the query condition.

[0079] Step S105: updating the email attachment information based on the parsed error data record, and returning the updated email attachment information to the corresponding user via email.

[0080] The execution subject can update the parsing error data record obtained based on the email sending record identifier and reply batch identifier corresponding to the email unique identifier to the email attachment information. It will be sent to the corresponding user (i.e., data provider) again via email. The email format is the same as before, but the attachment is different. At this time, the email sending record status will be modified to the sent data verification feedback email.

[0081] The execution entity may also return the Excel file exported when a verification error occurs during the parsing of the data file as an email attachment to the corresponding user (ie, the data provider).

[0082] Step S106, receiving feedback information from the corresponding user based on the updated email attachment information, performing data parsing based on the feedback information until the parsed error data record is empty, and then terminating the data parsing.

[0083] The corresponding user (i.e., data provider) who receives the email can modify the original data file according to the verification error and reply to the email again, and repeat this process until the data format is completely correct. The reply batch of each reply email sending record will be increased by 1.

[0084] In this embodiment, in response to triggering a scheduled task, the public mailbox is scanned, and then unread emails are pulled, and the email unique identifier corresponding to the unread emails is extracted to determine the type of the email unique identifier; according to the type, the email validity check is performed, and in response to the email validity check passing, the email attachment information of the unread email is read to obtain the corresponding data file; the associated data template identifier corresponding to the email unique identifier is obtained, and then the corresponding parsing rule is determined, and the thread pool is called to parse the data file based on the parsing rule; in response to the data file parsing being completed and there being a parsing error, the email sending record identifier and the reply batch identifier corresponding to the email unique identifier are obtained, and then the corresponding parsing error data record is obtained based on the email sending record identifier and the reply batch identifier; the email attachment information is updated based on the parsing error data record, and the updated email attachment information is returned to the corresponding user through an email; feedback information based on the updated email attachment information is received from the corresponding user, and data parsing is performed based on the feedback information until the parsing error data record is empty, and the data parsing is terminated. In this way, the data parsing efficiency is improved, the data parsing operation is simplified, and the data security during data parsing is improved.

[0085] Figure 2 is a schematic diagram of the main flow of a data parsing method according to an embodiment of the present application. Figure 2 As shown, the data parsing method includes:

[0086] Step S201, in response to triggering a scheduled task, scan the public mailbox, and then pull out unread emails, identify the position of a preset symbol in the title of the unread email, extract the identifier in the preset symbol at the position, and determine the identifier as the corresponding email unique identifier, and determine the type of the email unique identifier.

[0087] When a scheduled task is triggered, the execution entity can scan the public mailbox and pull all or a specified portion of unread emails. In an embodiment of the present application, the preset symbol, for example, can be "[ ]", and the embodiment of the present application does not specifically limit the preset symbol. When the execution entity identifies the location of the preset symbol in the title of the pulled unread email, the identifier inside the preset symbol can be extracted, such as extracting the UUID in [UUID]. The identifier in the extracted preset symbol is determined as the unique email identifier of the corresponding unread email.

[0088] Specifically, before determining the type of the unique email identifier, the method further includes: in response to the email sending record status corresponding to the unique email identifier being parsed, not parsing email attachment information in the email corresponding to the unique email identifier during the execution of the current scheduled task.

[0089] For example, if the email sending record status of the email is being parsed, the attachments in the email will not be parsed during the execution of this scheduled task to avoid repeated parsing and waste of resources.

[0090] There are two ways to generate a unique email ID: 1) directly generate a UUID. 2) use the template name, the year, month, day, hour, minute, second, and the recipient's email address to concatenate the string to calculate the MD5 value. The ID generated by the first method does not have the verification function and is suitable for a fully trusted environment. The second method can verify whether the reply email is a reply to the email sent by the system.

[0091] Step S202: performing an email validity check according to the type, and in response to the email validity check passing, reading email attachment information of the unread email to obtain a corresponding data file.

[0092] According to the type of the unique identifier of the email, the object required for the corresponding verification is determined. After the object required for the verification is determined, the corresponding verification object is obtained, the unique identifier of the email is matched with the verification object, and whether the email validity verification is passed is determined according to the matching result. After the email validity verification is passed, the email attachment information of the corresponding unread email is read, and the corresponding data file is obtained from the email attachment information. For example, the data file may include business data or certification materials provided by the data provider, etc., and the embodiment of the present application does not specifically limit the data file.

[0093] Step S203, obtaining the associated data template identifier corresponding to the unique email identifier, further determining the corresponding parsing rule, and calling the thread pool to parse the data file based on the parsing rule.

[0094] The associated data template identifier is stored in the email sending record table. The execution subject can obtain the associated data template identifier corresponding to the email unique identifier from the email sending record table. The corresponding parsing rule for parsing the data file is obtained by querying the associated data template identifier. The thread pool is called to parse the data file based on the parsing rule obtained by the query.

[0095] Step S204, in response to the data file being parsed and having parsing errors, obtaining the email sending record identifier and the reply batch identifier corresponding to the email unique identifier, and then obtaining the corresponding parsing error data record based on the email sending record identifier and the reply batch identifier.

[0096] After the data file is parsed, the file parsing log record table can be queried based on the email sending record identifier and reply batch identifier corresponding to the email unique identifier to obtain the parsing error data record when parsing the data file in this batch (which may include data such as the time and location of the error).

[0097] Step S205: updating the email attachment information based on the parsed error data record, and returning the updated email attachment information to the corresponding user via email.

[0098] The email attachment information is updated with the obtained parsing error data record, so as to be returned to the corresponding user via email for modification and improvement.

[0099] Step S206, receiving feedback information from the corresponding user based on the updated email attachment information, performing data parsing based on the feedback information until the parsed error data record is empty, and then terminating the data parsing.

[0100] The corresponding user (i.e., the data provider) modifies the original data file according to the verification error and replies to the email again. The execution subject receives the email with the modified data file returned by the corresponding user, and can perform the email validity check again and perform the parsing of the modified data file after the email validity check passes. This is repeated until the data format is completely correct. The reply batch identifier of each reply email sending record will be increased by 1. In this way, the data security during data parsing can be improved, the data parsing efficiency can be improved, and the data parsing operation can be simplified.

[0101] Figure 3 is a schematic diagram of the main flow of a data parsing method according to an embodiment of the present application. Figure 3 As shown, the data parsing method includes:

[0102] Step S301, in response to triggering a scheduled task, scanning a public mailbox, and then pulling out unread emails, extracting email unique identifiers corresponding to the unread emails, and determining the type of the email unique identifier.

[0103] The scheduled task may carry the identifier of a public mailbox, for example, it may be a public mailbox name or a public mailbox address. The embodiment of the present application does not specifically limit the identifier of the public mailbox. According to the identifier of the public mailbox carried in the scheduled task, the corresponding public mailbox is scanned to ensure the correctness of the data parsing object. Pull the unread emails in the scanned public mailbox and obtain the unique identifier of the email in the email title or email body. The embodiment of the present application does not specifically limit the source of the unique identifier of the email. After obtaining the unique identifier of the email, the executing entity can determine the type of the unique identifier of the email based on the length and arrangement of the letters or numbers contained in the unique identifier of the email.

[0104] Step S302: In response to the type being a universal unique identifier, querying the email sending record table based on the email unique identifier to obtain a query result.

[0105] Universally Unique Identifier (UUID). If the extracted email UUID is a unique identifier, use it to query the email sending record table. If it can be found, it is determined to be a valid email (the email sending record status will be changed to replied at this time). If it cannot be found, it is determined to be an invalid email.

[0106] Step S303: in response to the query result that there is a unique email identifier in the email sending record table, determining that the corresponding email is a valid email.

[0107] When the type of the email unique identifier is a universal unique identifier UUID, it is necessary to query the email sending record table to see whether the email unique identifier exists. If so, it is determined that the email is a valid email.

[0108] Step S304, in response to the email validity check being passed, reading the email attachment information of the unread email to obtain the corresponding data file.

[0109] After the email validity check is passed, the email status is set to read and the email attachment information is read, the data file provided by the corresponding user (i.e., the data provider) is downloaded, and the data file and the email sending record queried above are submitted to the thread pool to perform data file parsing (at this time, the email sending record status is changed to parsing).

[0110] Step S305, obtaining the associated data template identifier corresponding to the email unique identifier, and then determining the corresponding parsing rule, and calling the thread pool to parse the data file based on the parsing rule.

[0111] The execution subject can obtain the associated data template identifier associated with the unique identifier of the email from the email sending record table, and query the parsing rules for the data file based on the associated data template identifier to call the thread pool to parse the data file according to the parsing rules, thereby improving the accuracy of the data file parsing.

[0112] Step S306, in response to the data file being parsed and having parsing errors, obtaining the email sending record identifier and the reply batch identifier corresponding to the email unique identifier, and then obtaining the corresponding parsing error data record based on the email sending record identifier and the reply batch identifier.

[0113] File parsing verification error feedback is divided into two modes: 1) Stop when an error is encountered, and feedback the verification error. 2) After the entire file is parsed, all verification errors are fed back at once. The first method can feedback results faster and save system resources. The second method allows the data provider to complete data correction at one time, reducing the number of repetitions and providing a better user experience. The execution entity can parse data files in batches. If a parsing error occurs during the data file parsing process, the error information can be fed back in real time. The parsing errors that occurred can also be summarized and an Excel file generated after all data files are parsed. The execution entity can obtain the corresponding parsing error data record in the Excel file based on the email sending record identifier and reply batch identifier corresponding to the email unique identifier.

[0114] Step S307: updating the email attachment information based on the parsed error data record, and returning the updated email attachment information to the corresponding user via email.

[0115] The execution subject updates the attachment information of the email based on the obtained parsing error data record of this batch and then replies to the email to return the updated email attachment information to the corresponding user. The reply batch identifier of each reply email sending record is increased by 1.

[0116] Step S308, receiving feedback information from the corresponding user based on the updated email attachment information, performing data parsing based on the feedback information until the parsed error data record is empty, and then terminating the data parsing.

[0117] The feedback information can be a new data file obtained by the user after modifying the original data file based on the updated email attachment information. After obtaining the new data file, the execution subject can perform data parsing again until the parsing error record is empty and the data format is completely correct, and the data parsing is terminated.

[0118] Step S309: in response to the query result that the unique email identifier does not exist in the email sending record table, it is determined that the corresponding email is an invalid email.

[0119] If the type of the email unique identifier is a universal unique identifier, and the query result in the email sending record table is that the email unique identifier does not exist, the execution entity can determine that the corresponding email is an invalid email without performing data analysis.

[0120] The data parsing method of the embodiment of the present application can collect data by automatically or manually sending an email with a data template to the data provider (i.e. the corresponding user), and the provider replies to the email after filling in the data. The system uses a scheduled task to regularly scan the newly received emails in the data collection mailbox, and matches the parsing rules of the template through the specific identification in the email, parses Excel and saves the data in the database. In the embodiment of the present application, after the data provider replies to the email, the system will automatically scan and match the corresponding parsing rules, parse the Excel data file in the email, without downloading the data file and manually uploading it to the system. By adopting a configuration method, the parsing and processing rules, data filling requirements and other information of all types of data files are solidified, and a complete set of data template management functions is established. The data retrieval application is sent to the data provider in the form of an email, and the email contains a data template file, data filling requirements, and a unique email identifier. The data provider fills in the data template file in the email as required and replies to the email; the system automatically reads the email and matches the parsing and processing rules that have been configured in the early stage, automatically parses the data template file, and saves the data. According to the pre-configured rules, the data is automatically verified, and the verification results are automatically fed back through emails.

[0121] The implementation of the data parsing method of the embodiment of the present application requires the following components: a data template management component, an email sending component, and an email reading and parsing component.

[0122] Specifically, the data template management component: the data template management component is used to pre-configure the data template. The data template contains three parts of information: basic information: including the template name, filling requirements, data template file storage path, associated template data table name, creator, creation time and other business-related configurations. Field information: including field sequence number, field name, field type, field length, field options, field processing rules (simple processing rules can be configured, such as field addition, splicing, substring extraction, etc.). Data template file: uploaded to the data template information as an attachment. This component needs to create the following data tables: Template basic information table: used to save the above template basic information. Template field information table: used to save the above field information. There can be multiple field options, separated by commas; field processing rules, usually only one is configured for each field. Template data table: This table will be automatically created when the data is first imported, and the table name will be written into the associated template data table name field of the "template basic information table". The table name can be generated in the format of tmp_data_list_data template number, where "data template number" is the primary key generated by the data template information in the database. Due to historical data issues in the data template table (changing the data type may not be compatible with historical data), field information in the template data table is not allowed to be modified after the initial data import.

[0123] Specifically, the mail sending component: multiple data templates can be created using the above data template management component. The mail sending component will first query all the effective data template information, then check one or more (each data will send an email), select the data provider (in conjunction with other system functions, the mailbox can be automatically brought out or the receiving mailbox can be manually entered). Here, it is usually limited to only one person. This component contains the following 4 parts: Mail sending processing interface: After selecting the template and the recipient, click Send to call this interface to send the email. Mail unique identification generation tool: used to generate a unique identifier for the email. Mail compensation sending scheduled task: used to compensate for the mail sending records with a sending status of "failed to send", executed every 10 minutes, and scan the "mail sending record table". Public mailbox: used to send data template emails and receive reply emails. The sent email contains the following content: Email title: The email title is usually automatically generated in the format of: template name + sending year, month, day, hour, minute, second + [mail unique identification]. The body of the email contains the data template filling requirements. When sending an email, the system will find the data template file according to the data template file storage path recorded in the above data template basic information, and send it as an attachment to the email. There are two ways to generate a unique email identifier: directly generate a UUID. UUID is a universally unique identifier; the MD5 value is calculated using the string of template name, sending year, month, day, hour, minute, second, and recipient mailbox. The identifier generated by the first method does not have the verification function and is suitable for a fully trusted environment. The second method can verify whether the reply email is a reply to the email sent by the system. This component needs to create the following table structure: Email sending record table: contains the associated data template identifier, associated data template name, receiving mailbox, sending mailbox (usually a fixed public mailbox), generated email title, email unique identifier, reply batch (multiple replies may occur in the case of data verification failure), status (successful sending, failed sending, replied, parsing, parsed, parsing failure, data verification feedback email sent, completed), sender, sending time, etc.

[0124] Specifically, the email reading and parsing component: This component is a scheduled task that is executed once every hour and scans the public mailbox mentioned in the above email sending component; after the data provider receives the above email, he downloads the data template file in the email, fills in the data according to the filling requirements in the email, and replies to the email. The email needs to remind the data provider that the email title cannot be modified when replying to the email, only the email attachment can be modified, otherwise the email cannot be parsed. The working steps of this component are as follows: Scan the above public mailbox that receives feedback and pull unread emails (you can pull all unread emails or unread emails in a certain time period. For example, the scheduled task is executed once every hour, and you can pull unread emails within three hours. Redundant pull can be more compatible with the situation of pull failure). Use regular expressions to extract the unique identifier of the email from the email title. Here, the unique identifier of the email is agreed to be at the end of the title and enclosed in []. If the value can be extracted, continue to the next step, otherwise terminate. If the extracted email unique identifier UUID is used, the extracted email unique identifier is used to query the email sending record table. If it can be queried, it means that it is a valid email (the email sending record status will be changed to replied at this time). If it cannot be queried, the email is invalid. If the extracted email unique identifier is generated by MD5, the email title is extracted to remove the email unique identifier part, and the sender of the email is extracted. After the string is concatenated, the MD5 calculation is performed. The calculated MD5 value is compared with the original extracted email unique identifier. If they are the same, it means that it is a valid email. After the email validity check passes, the email status is set to read and the email attachment information is read. The data file provided by the data provider is downloaded, and the data file and the email sending record queried above are submitted to the thread pool to perform data file parsing (at this time, the email sending record status will be changed to parsing). According to the associated data template identifier in the email sending record table, the parsing rules configured using the data template management component (that is, the content of the field information configuration) and the name of the associated template data table are queried. According to the parsing rules, the type and length of the field are checked, whether it is within the optional value range, and the value of the field is calculated according to the configured processing rules. If there is data that fails verification, the verification information will be recorded in the "File Parsing Log Record Table". File parsing verification error feedback is divided into two modes: 1) Stop when an error occurs, and feedback the verification error; 2) After the entire file is parsed, all verification errors are fed back at once. The embodiment of this application adopts the second mode. The data file is read in a streaming manner using EasyExcel. Every time 1,000 data are parsed, it is written once to the template data table associated with the template in the database (in the data template management component) to prevent OOM exceptions caused by excessive memory usage. All operations of inserting data tables are in the same transaction.If a verification error is encountered (such as incorrect date format leading to inability to convert, data too long, incorrect number format, etc.), the data will stop being written to the template data table, but the file will continue to be parsed to verify the data of each cell. When the entire file is parsed, an exception is thrown to roll back the operation previously written to the template data table, that is, all the data parsed this time will not be written to the template data table (at this time, the email sending record status will be changed to parsing failure). If there is a verification error, all the verification errors that occurred in the parsing of this batch of files can be exported to an Excel file (data records are recorded in the file parsing log record table using the email sending record identifier + reply batch as the query condition), and the file is sent to the data provider again by email. The format of the email is the same as the previous format, but the attachment is different (at this time, the email sending record status will be changed to sent data verification feedback email). The data provider modifies the original data file according to the verification error and replies to the email again, and repeats this until the data format is completely correct. The reply batch of each reply to the email sending record will be increased by 1. If there is no verification error in the data, all data will be written to the template data table, and the email sending record status will be changed to completed. If the email sending record status of the email is Completed, the attachments in the email will not be parsed. This means that if the data provided by the data provider has been successfully submitted to the database, the subsequent reply email submission data will be invalid. If the email sending record status of the email is Parsing, the attachments in the email will not be parsed during the execution of this scheduled task.

[0125] The data parsing method of the embodiment of the present application strengthens the automation of the system in the entire data collection process and minimizes manual intervention. Through induction and summary, the data collection templates of the same type are solidified in the system through configuration. Later, you only need to select the corresponding data template and directly send the data retrieval email. The collected data are classified, and the same type of data is stored in the same Excel table, which reduces the number of temporary tables in the database. At the same time, the same type of data is accumulated and can be used directly in subsequent work. The analysis of the file and the feedback of the analysis results are all automatic, without the need for manual repeated communication in this process. The provided data no longer needs to be downloaded to the data retriever locally, reducing the risk of data diffusion and improving data security.

[0126] Figure 4 Schematic diagram of the main units of the data analysis device according to an embodiment of the present application. Figure 4 As shown, the data parsing device 400 includes a type determination unit 401 , a verification unit 402 , a parsing unit 403 , an acquisition unit 404 , an updating unit 405 and a receiving unit 406 .

[0127] The type determination unit 401 is configured to scan the public mailbox in response to triggering the scheduled task, and then pull out the unread emails, extract the email unique identifier corresponding to the unread email, and determine the type of the email unique identifier.

[0128] The verification unit 402 is configured to perform email validity verification according to the type, and in response to the email validity verification passing, read the email attachment information of the unread email to obtain the corresponding data file.

[0129] The parsing unit 403 is configured to obtain the associated data template identifier corresponding to the email unique identifier, further determine the corresponding parsing rule, and call the thread pool to parse the data file based on the parsing rule.

[0130] The acquisition unit 404 is configured to acquire the email sending record identifier and the reply batch identifier corresponding to the email unique identifier in response to the data file being parsed and having parsing errors, and then acquire the corresponding parsing error data record based on the email sending record identifier and the reply batch identifier.

[0131] The updating unit 405 is configured to update the email attachment information based on the parsing error data record, and return the updated email attachment information to the corresponding user via email.

[0132] The receiving unit 406 is configured to receive feedback information from the corresponding user based on the updated email attachment information, perform data parsing based on the feedback information until the parsed error data record is empty, and then terminate the data parsing.

[0133] In some embodiments, the verification unit 402 is further configured to: in response to the type being a universal unique identifier, query the email sending record table based on the email unique identifier to obtain a query result; in response to the query result being that the email unique identifier exists in the email sending record table, determine that the corresponding email is a valid email; in response to the query result being that the email unique identifier does not exist in the email sending record table, determine that the corresponding email is an invalid email.

[0134] In some embodiments, the verification unit 402 is further configured to: in response to the type being a hash value, extract the email title and the email sending user identifier corresponding to the email unique identifier, and splice the email title and the email sending user identifier to obtain spliced ​​data; perform a hash calculation on the spliced ​​data to obtain a target hash value; compare the target hash value with the email unique identifier, and if they are the same, determine that the corresponding email is a valid email; if they are different, determine that the corresponding email is an invalid email.

[0135] In some embodiments, the type determination unit 401 is further configured to: identify the position of a preset symbol in the title of the unread email, extract the identifier in the preset symbol at the position, and determine the identifier as the corresponding email unique identifier.

[0136] In some embodiments, the data analysis device further includes Figure 4 The automatic reply unit not shown in the figure is configured to: in response to the email sending record status corresponding to the email unique identifier being completed, automatically reply to the corresponding email with invalid information.

[0137] In some embodiments, the data analysis device further includes Figure 4 The status modification unit not shown in the figure is configured to: set the email status of the email corresponding to the email unique identifier to read, and modify the corresponding email sending record status to being parsed.

[0138] In some embodiments, the type determination unit 401 is further configured to: in response to the email sending record status corresponding to the email unique identifier being parsed, not parse the email attachment information in the email corresponding to the email unique identifier during the execution of the current scheduled task.

[0139] It should be noted that the data analysis method and the data analysis device of the present application have a corresponding relationship in terms of specific implementation contents, so the repeated contents will not be described again.

[0140] Figure 5 An exemplary system architecture 500 is shown to which the data parsing method or data parsing device according to the embodiments of the present application can be applied.

[0141] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0142] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0143] The terminal devices 501, 502, 503 may be various electronic devices having a data analysis and processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0144] The server 505 may be a server that provides various services, such as a background management server that provides support for the scheduled tasks triggered by the terminal devices 501, 502, and 503 (for example only). In response to triggering the scheduled task, the background management server may scan the public mailbox, and then pull the unread mail, extract the mail unique identifier corresponding to the unread mail, and determine the type of the mail unique identifier; perform mail validity check according to the type, and in response to the mail validity check passing, read the mail attachment information of the unread mail to obtain the corresponding data file; obtain the associated data template identifier corresponding to the mail unique identifier, and then determine the corresponding parsing rule, and call the thread pool to parse the data file based on the parsing rule; in response to the data file being parsed and there being a parsing error, obtain the mail sending record identifier and reply batch identifier corresponding to the mail unique identifier, and then obtain the corresponding parsing error data record based on the mail sending record identifier and the reply batch identifier; update the mail attachment information based on the parsing error data record, and return the updated mail attachment information to the corresponding user via mail; receive feedback information from the corresponding user based on the updated mail attachment information, perform data parsing based on the feedback information until the parsing error data record is empty, and end the data parsing. Thereby improving the efficiency of data analysis, simplifying the data analysis operation, and improving the data security during data analysis.

[0145] It should be noted that the data analysis method provided in the embodiment of the present application is generally executed by the server 505 , and accordingly, the data analysis device is generally arranged in the server 505 .

[0146] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0147] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present application. Figure 6 The terminal device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0148] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0149] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0150] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present application are executed.

[0151] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. Computer-readable storage media may include, for example, but are not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0152] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0153] The units involved in the embodiments described in the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a type determination unit, a verification unit, a parsing unit, an acquisition unit, an update unit, and a receiving unit. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0154] As another aspect, the present application further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The computer-readable medium carries one or more programs. When the one or more programs are executed by a device, the device responds to triggering a scheduled task, scans a public mailbox, and then pulls out unread emails, extracts the email unique identifier corresponding to the unread email, and determines the type of the email unique identifier; performs an email validity check according to the type, and in response to the email validity check passing, reads the email attachment information of the unread email to obtain the corresponding data file; obtains the associated data template identifier corresponding to the email unique identifier, and then determines the corresponding parsing rule, and calls a thread pool to parse the data file based on the parsing rule; in response to the data file being parsed and there being a parsing error, obtains the email sending record identifier and reply batch identifier corresponding to the email unique identifier, and then obtains the corresponding parsing error data record based on the email sending record identifier and the reply batch identifier; updates the email attachment information based on the parsing error data record, and returns the updated email attachment information to the corresponding user via email; receives feedback information from the corresponding user based on the updated email attachment information, performs data parsing based on the feedback information until the parsing error data record is empty, and ends the data parsing.

[0155] The computer program product of the present application includes a computer program, and when the computer program is executed by a processor, the data parsing method in the embodiment of the present application is implemented.

[0156] According to the technical solution of the embodiment of the present application, the data analysis efficiency can be improved, the data analysis operation can be simplified, and the data security during data analysis can be improved.

[0157] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A data analysis method, It is characterized in that include: In response to triggering the scheduled task, scanning the public mailbox, further pulling out unread emails, extracting the email unique identifier corresponding to the unread email, and determining the type of the email unique identifier; Performing an email validity check according to the type, and in response to the email validity check passing, reading email attachment information of the unread email to obtain a corresponding data file; Obtaining the associated data template identifier corresponding to the unique identifier of the email, and then determining the corresponding parsing rule, and calling the thread pool to parse the data file based on the parsing rule; In response to the data file being parsed and having a parsing error, obtaining an email sending record identifier and a reply batch identifier corresponding to the email unique identifier, and then obtaining a corresponding parsing error data record based on the email sending record identifier and the reply batch identifier; updating the email attachment information based on the parsing error data record, and returning the updated email attachment information to the corresponding user via email; Receive feedback information from the corresponding user based on the updated email attachment information, perform data parsing based on the feedback information until the parsing error data record is empty, and end the data parsing.

2. The method according to claim 1, It is characterized in that The performing of email validity check according to the type includes: In response to the type being a universal unique identifier, querying the mail sending record table based on the mail unique identifier to obtain a query result; In response to the query result that the unique identifier of the email exists in the email sending record table, determining that the corresponding email is a valid email; In response to the query result that the email unique identifier does not exist in the email sending record table, it is determined that the corresponding email is an invalid email.

3. The method according to claim 1, It is characterized in that The performing of email validity check according to the type includes: In response to the type being a hash value, extracting the email title and the email sending user identifier corresponding to the email unique identifier, and concatenating the email title and the email sending user identifier to obtain concatenated data; Performing hash calculation on the spliced ​​data to obtain a target hash value; The target hash value is compared with the unique identifier of the email. If they are the same, the corresponding email is determined to be a valid email. If they are different, the corresponding email is determined to be an invalid email.

4. The method according to claim 1, It is characterized in that The extracting the unique email identifier corresponding to the unread email includes: The position of the preset symbol in the title of the unread email is identified, and the identifier in the preset symbol at the position is extracted to determine the identifier as the corresponding email unique identifier.

5. The method according to claim 1, It is characterized in that Before determining the type of the mail unique identifier, the method further includes: In response to the email sending record status corresponding to the email unique identifier being completed, automatically replying to the corresponding email with invalid information.

6. The method according to claim 1, It is characterized in that After the response to the email validity check being passed, the method further includes: The email status of the email corresponding to the unique email identifier is set to read, and the corresponding email sending record status is modified to being parsed.

7. The method according to claim 1, It is characterized in that Before determining the type of the mail unique identifier, the method further includes: In response to the email sending record status corresponding to the email unique identifier being parsed, email attachment information in the email corresponding to the email unique identifier is not parsed during the execution of this scheduled task.

8. A data analysis device, It is characterized in that include: A type determination unit is configured to scan the public mailbox in response to triggering the scheduled task, and then pull out unread emails, extract the email unique identifier corresponding to the unread email, and determine the type of the email unique identifier; a verification unit configured to perform a mail validity check according to the type, and in response to passing the mail validity check, read mail attachment information of the unread mail to obtain a corresponding data file; A parsing unit is configured to obtain an associated data template identifier corresponding to the email unique identifier, further determine a corresponding parsing rule, and call a thread pool to parse the data file based on the parsing rule; an acquisition unit, configured to, in response to the data file being parsed and having a parsing error, acquire an email sending record identifier and a reply batch identifier corresponding to the email unique identifier, and then acquire a corresponding parsing error data record based on the email sending record identifier and the reply batch identifier; an updating unit, configured to update the email attachment information based on the parsing error data record, and return the updated email attachment information to the corresponding user via email; The receiving unit is configured to receive feedback information from the corresponding user based on the updated email attachment information, perform data parsing based on the feedback information until the parsing error data record is empty, and terminate the data parsing.

9. The device according to claim 8, It is characterized in that The verification unit is further configured to: In response to the type being a universal unique identifier, querying the mail sending record table based on the mail unique identifier to obtain a query result; In response to the query result that the unique identifier of the email exists in the email sending record table, determining that the corresponding email is a valid email; In response to the query result that the email unique identifier does not exist in the email sending record table, it is determined that the corresponding email is an invalid email.

10. The device according to claim 8, It is characterized in that The verification unit is further configured to: In response to the type being a hash value, extracting the email title and the email sending user identifier corresponding to the email unique identifier, and concatenating the email title and the email sending user identifier to obtain concatenated data; Performing hash calculation on the spliced ​​data to obtain a target hash value; The target hash value is compared with the unique identifier of the email. If they are the same, the corresponding email is determined to be a valid email. If they are different, the corresponding email is determined to be an invalid email.

11. The device according to claim 8, It is characterized in that The type determination unit is further configured to: The position of the preset symbol in the title of the unread email is identified, and the identifier in the preset symbol at the position is extracted to determine the identifier as the corresponding email unique identifier.

12. The device according to claim 8, It is characterized in that The device further comprises an automatic reply unit configured to: In response to the email sending record status corresponding to the email unique identifier being completed, automatically replying to the corresponding email with invalid information.

13. The device according to claim 8, It is characterized in that The device also includes a state modification unit configured to: The email status of the email corresponding to the unique email identifier is set to read, and the corresponding email sending record status is modified to being parsed.

14. A data analysis electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

15. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

16. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.