A document processing method, an electronic device, and a storage medium
By acquiring and verifying the attachment file information in the business list, constructing index relationships and performing precise matching, the problem of poor consistency between vouchers and attachment files was solved, and efficient file uploading and archiving were achieved.
Patent Information
- Application Number
- CN202611262911.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-19
- Publication Date
- 2026-11-17
AI Technical Summary
In business scenarios such as e-commerce procurement, life service procurement, and labor protection procurement, the consistency verification of vouchers and attachments involves a large amount of manual work, is time-consuming, and is prone to problems such as duplicate uploads, omissions, and mistransmissions.
By obtaining the business list and attachment file information, performing verification and index relationship construction, accurate matching and encapsulation of attachment files are achieved, ensuring the consistency between vouchers and attachment files.
It improved the consistency of uploaded vouchers and attachments, reduced manual verification time, avoided duplication and omissions, and achieved accurate archiving of attachments.
Smart Images

Figure CN123115053A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and more particularly to a file processing method, electronic device, and storage medium. Background Technology
[0002] In business scenarios such as e-commerce procurement, life service procurement, and labor protection procurement, users need to upload corresponding attachment files according to the list in the voucher in order to complete subsequent reconciliation, settlement and financial archiving.
[0003] In existing technologies, users typically manually verify the consistency between the list in the voucher and the uploaded attachments. Since the same voucher can correspond to multiple different attachments, manual verification is labor-intensive and time-consuming, and there may be issues such as duplicate uploads, omissions, and mis-uploads of attachments, resulting in inconsistencies between the list in the voucher and the uploaded attachments. Summary of the Invention
[0004] This invention provides a file processing method, an electronic device, and a storage medium to achieve accurate uploading of attachment files corresponding to vouchers.
[0005] According to one aspect of the present invention, a document processing method is provided, comprising: Obtain the business list corresponding to the target voucher in the current business batch. The business list includes the business identifier and the first attachment file information corresponding to the business identifier. The information in the first attachment file is verified to obtain a first verification result, which includes the information of the first attachment file that has passed verification. The second attachment file information is obtained based on the preset attachment location information. The first attachment file information and the business identifier are used to construct a first index relationship. The second attachment file information is used to match the first index relationship to obtain the first matching result. If the first matching result is successful, the information of the second attachment file is encapsulated to obtain an encapsulated attachment file, and the encapsulated attachment file is transmitted to the attachment file database; In response to the transmission status of the encapsulated attachment file being successful, the transmission management information corresponding to the target credential is determined based on the business identifier corresponding to the encapsulated attachment file. The transmission management information indicates whether the target credential and the second attachment file information have been successfully bound.
[0006] According to another aspect of the present invention, a document processing apparatus is provided, comprising: The business list acquisition module is used to acquire the business list corresponding to the target voucher in the current business batch. The business list includes the business identifier and the first attachment file information corresponding to the business identifier. The first attachment file information verification module is used to verify the information of the first attachment file and obtain a first verification result, which includes the first attachment file information that has passed the verification. The first matching result determination module is used to obtain the second attachment file information based on the preset attachment location information, construct a first index relationship based on the verified first attachment file information and business identifier, and perform matching based on the second attachment file information in the first index relationship to obtain the first matching result; The attachment file encapsulation and transmission module is used to encapsulate the information of the second attachment file when the first matching result is a successful match, to obtain an encapsulated attachment file, and to transmit the encapsulated attachment file to the attachment file database. The transmission management information determination module is used to determine the transmission management information corresponding to the target credential based on the business identifier corresponding to the encapsulated attachment file when the transmission status of the encapsulated attachment file is successful. The transmission management information indicates whether the target credential and the second attachment file information have been successfully bound.
[0007] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and A memory that is communicatively connected to at least one processor; wherein, The memory stores a computer program that can be executed by at least one processor, such that the at least one processor can perform the file processing method of any embodiment of the present invention.
[0008] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute and implement the file processing method of any embodiment of the present invention.
[0009] According to another aspect of the present invention, a computer program product is provided, comprising a computer program that, when executed by a processor, implements a file processing method as described in any embodiment of the present invention.
[0010] The technical solution of this invention provides comprehensive data support for subsequent matching and processing by obtaining a business list corresponding to the target voucher in the current business batch. The business list includes a business identifier and the corresponding first attachment file information, providing comprehensive data support for subsequent matching and processing. The first attachment file information is verified to obtain a first verification result, which includes the verified first attachment file information, achieving accurate verification of the first attachment file information and providing a high-quality data foundation for subsequent analysis and processing. Second attachment file information is obtained based on preset attachment location information. A first index relationship is constructed based on the verified first attachment file information and the business identifier. The second attachment file information is then matched within the first index relationship to obtain a first matching result, achieving rapid matching of the second attachment file information and ensuring accurate matching. This system accurately identifies mistransmission, over-transmission, and omission of attachment files, thereby improving the accuracy of attachment archiving. If the first matching result is successful, the information in the second attachment file is encapsulated to obtain an encapsulated attachment file, which is then transmitted to the attachment file database, enabling the transmission of encapsulated attachment files corresponding to different vouchers. In response to a successful transmission status for the encapsulated attachment file, the transmission management information corresponding to the target voucher is determined based on the business identifier corresponding to the encapsulated attachment file. This transmission management information indicates whether the target voucher and the second attachment file information are successfully bound, solving the problem of inconsistency between the voucher-corresponding list and the uploaded attachment files in existing technologies. This enables the transmission of encapsulated attachment files corresponding to different vouchers, improving the consistency between the voucher-corresponding business list and the uploaded attachment files.
[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a flowchart of a file processing method provided in an embodiment of the present invention; Figure 2 This is a flowchart of another file processing method provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a file processing device provided in an embodiment of the present invention; Figure 4This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0014] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0015] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0016] Figure 1 This is a flowchart of a file processing method provided in an embodiment of the present invention. This embodiment is applicable to the uploading of attachment files corresponding to vouchers. This method can be executed by a file processing device, which can be implemented in hardware and / or software. The file processing device can be configured in the electronic device provided in this embodiment of the present invention. The electronic device can be a server, computer, or mobile terminal, such as a mobile phone or tablet computer. Figure 1 As shown, the method specifically includes the following steps: S110. Obtain the business list corresponding to the target voucher in the current business batch. The business list includes the business identifier and the first attachment file information corresponding to the business identifier.
[0017] The current business batch is the task group identifier for batch processing electronic voucher attachments within the same batch. Different business batches correspond to different unique business batch identifiers, which include, but are not limited to, the business batch number. The target voucher is the voucher to be associated and archived as an attachment. Target vouchers include, but are not limited to, invoices, such as electronic invoices and paper invoices. It should be noted that the current business batch may include one target voucher or multiple target vouchers.
[0018] The business list is a detailed list of the supporting attachments for the target voucher. Different target vouchers correspond to different business lists. The business list includes a business identifier and the corresponding first attachment file information. The business identifier is a globally unique number for the target voucher, representing its unique identity code. The first attachment file information contains the attachment description data corresponding to the target voucher. It should be noted that a target voucher may correspond to one or multiple first attachment files.
[0019] Specifically, the system matches the business batch number of the current business batch with the business list database to obtain the business list corresponding to the target voucher in the current business batch, providing comprehensive data support for subsequent processing.
[0020] Based on the above embodiments, the method further includes: responding to a user's business list upload operation on the interactive interface of the business system, obtaining the business list corresponding to the target voucher in the current business batch. For example, a user can fill in a business list according to a business list template on the interactive interface of the business system to obtain the business list corresponding to the target voucher in the current business batch.
[0021] S120. Verify the information of the first attachment file to obtain a first verification result, which includes the first attachment file information that has passed verification.
[0022] The first verification result indicates whether the information in the first attachment file has passed verification. The first verification result includes the verified information in the first attachment file. Verifying the information in the first attachment file can be achieved by inputting the information into a trained first attachment file information verification model for processing to obtain the first verification result. The first attachment file information verification model includes, but is not limited to, machine learning models. The appropriate first attachment file information verification model can be selected based on requirements; this invention does not impose any limitations.
[0023] Specifically, the information of the first attachment file is input into the trained first attachment file information verification model for processing to obtain the first verification result, thus achieving accurate verification of the first attachment file information and providing a high-quality data foundation for subsequent analysis and processing.
[0024] Optionally, the first attachment file information includes the name of the first attachment file; the first attachment file information is verified, including at least one of the following: file name splitting processing, file type verification, file name length verification, and file name compliance verification.
[0025] The first attachment file name is the filename text of the first attachment file information. Different attachment files correspond to different first attachment file names. Filename splitting can be performed by splitting the first attachment file name according to a preset delimiter. For example, it can be split using the semicolon ";" to obtain multiple filename strings.
[0026] File type verification can be performed on the name of the first attachment file according to preset file type verification rules. For example, the string after the last period in the name of the first attachment file is determined as the extension. The extension is then matched against a pre-set file type mapping relationship to determine the file type corresponding to the extension. This file type is then used as the file type corresponding to the first attachment file name. The file type corresponding to the first attachment file name is then compared against a pre-set file type whitelist. If the file type corresponding to the first attachment file name exists in the whitelist, the verification is successful; otherwise, it fails. The file type whitelist stores the allowed file types for uploading and archiving, corresponding to each credential.
[0027] The file name length check can determine whether the length of the first attachment file name is within the preset name length range. When the length of the first attachment file name is within the name length range, the first attachment file name check passes; when the length of the first attachment file name is outside the name length range, the first attachment file name check fails.
[0028] The file name compliance verification can be performed on the first attachment file name according to a preset file name compliance verification model to determine whether the first attachment file name is compliant. If the first attachment file name is compliant, it means that the first attachment file name verification has passed; if the first attachment file name is not compliant, it means that the first attachment file name verification has failed.
[0029] Specifically, by verifying the information of the first attachment file, invalid attachment files that are allowed to be uploaded and archived can be filtered out, thereby improving the accuracy of attachment file matching.
[0030] Based on the above embodiments, the verification of the first attachment file information may further include: file name duplication verification. For example, the first attachment file name is matched against the first attachment file names that have undergone file name duplication verification. If the first attachment file name exists among the first attachment file names that have undergone file name duplication verification, it indicates that the first attachment file name is duplicated, and the first attachment file information fails the verification. A file name duplication prompt message is generated based on the duplicate first attachment file name, and the file name duplication prompt message is used to indicate that the first attachment file name has a duplicated file name.
[0031] Based on the above embodiments, verifying the information in the first attachment file may further include: removing spaces and normalizing the data.
[0032] Optionally, the first verification result may also include information about the first attachment file that failed verification; the method may further include: generating a second prompt message based on the first attachment file information that failed verification, the second prompt message being used to indicate the type of verification failure corresponding to the first attachment file information that failed verification.
[0033] The second prompt message is a standardized prompt text generated for the first attachment file information that failed verification. It indicates the type of verification failure corresponding to the first attachment file information that failed verification. Types of verification failure include, but are not limited to, an empty first attachment file name, the first attachment file name containing characters that do not conform to preset compliance rules, and the file type corresponding to the first attachment file name not being in the file type whitelist. Optionally, file types include, but are not limited to, Portable Document Format (PDF), Joint Photographic Experts Group (JPEG), Portable Network Graphics (PNG), Open Fixed-layout Document (OFD), and Extensible Markup Language (XML).
[0034] Specifically, when the first verification result also includes the first attachment file information that failed verification, the second prompt information generation logic is triggered to generate the second prompt information. The first attachment file information that failed verification can be modified according to the second prompt information to correct the first attachment file information that failed verification.
[0035] Optionally, before verifying the information in the first attachment file, the method further includes: determining the business status corresponding to the target credential based on the business identifier; and generating a third prompt message if the business status includes an invalid status, wherein the third prompt message is used to indicate that the target credential is invalid.
[0036] The business status indicates whether the target voucher can perform the attachment upload operation. The business status includes a valid status and an invalid status. The third prompt message is a standardized prompt text generated when the target voucher is invalid, used to indicate that the target voucher is invalid.
[0037] Specifically, the system matches the target credential database based on the business identifier. If a target credential corresponding to the business identifier exists in the database, it means that the target credential corresponding to the business identifier has already been uploaded as an attachment, and the corresponding business status is invalid. In response to the invalid business status, a third prompt message is generated, which can effectively prevent the duplicate archiving of already archived attachment files, thereby reducing the number of duplicate submissions by users.
[0038] S130. Obtain the second attachment file information based on the preset attachment location information, construct a first index relationship based on the verified first attachment file information and business identifier, and perform matching based on the second attachment file information in the first index relationship to obtain the first matching result.
[0039] The attachment location information is the addressing data of the attachment file to be uploaded, representing the storage path of the attachment file. The attachment location information is pre-set. The second attachment file information is the actual uploaded attachment file obtained based on the attachment location information. Optionally, the second attachment file information includes the second attachment file and its corresponding name.
[0040] The first index relationship is a mapping index describing the binding relationship between the business identifier and the first attachment file information. The first index relationship can be constructed based on the validated first attachment file information and the business identifier. For example, using the business identifier as the primary key and the validated first attachment file information as the associated index value, a key-value mapping relationship between the business identifier and the validated first attachment file information is established, serving as the first index relationship. It should be noted that the same business identifier can correspond to one validated first attachment file information, or it can correspond to multiple validated first attachment file information.
[0041] The first matching result indicates whether the information in the second attachment file matches the first index relationship. The first matching result can include successful matching or failed matching. The first matching result can be determined based on the information in the second attachment file and the first index relationship. For example, the first matching result is obtained by matching the information in the second attachment file within the first index relationship corresponding to the same business identifier; if the information in the second attachment file exists within the first index relationship corresponding to the same business identifier, the first matching result is successful; if the information in the second attachment file does not exist within the first index relationship corresponding to the same business identifier, the first matching result is failed.
[0042] Specifically, the system obtains the information of the actually uploaded second attachment file based on the preset attachment location information; using the business identifier as the primary index key, and the verified first attachment file information as the index association value, a key-value mapping relationship between the business identifier and the verified first attachment file information is established as the first index relationship; the second attachment file information is matched in the first index relationship corresponding to the same business identifier to obtain the first matching result, which realizes the rapid matching of the second attachment file information, can accurately identify the mistransmission, overtransmission and omission of attachment files, and thus helps to improve the accuracy of attachment archiving.
[0043] S140. If the first matching result is successful, the information of the second attachment file is encapsulated to obtain the encapsulated attachment file, and the encapsulated attachment file is transmitted to the attachment file database.
[0044] The encapsulated attachment file is a data packet obtained by encapsulating the information in the second attachment file. Optionally, the encapsulated attachment file may also include a business identifier corresponding to the information in the second attachment file. Encapsulating the information in the second attachment file can be done by inputting the information into a trained encapsulation model for processing to obtain the encapsulated attachment file. The encapsulation model includes, but is not limited to, a neural network model. The encapsulation model is selected according to requirements, and this invention does not impose any restrictions.
[0045] The attachment file database serves as the storage medium for archived credential attachments. It stores the encapsulated attachment files corresponding to different credentials. It should be noted that the attachment file database is archived and stored in partitions based on the business identifier corresponding to each encapsulated attachment file.
[0046] Specifically, if the first matching result is successful, the information of the second attachment file is input into the trained encapsulation model for processing to obtain the encapsulated attachment file. The encapsulated attachment file is then transmitted to the attachment file database via communication, thereby realizing the encapsulation and transmission of encapsulated attachment files corresponding to different vouchers.
[0047] S150. In response to the transmission status of the encapsulated attachment file being successful, determine the transmission management information corresponding to the target credential based on the business identifier corresponding to the encapsulated attachment file. The transmission management information indicates whether the target credential and the second attachment file information have been successfully bound.
[0048] The transmission status refers to the status identifier data generated during the transmission of the encapsulated attachment file to the attachment file database, including transmission in progress, transmission failure, and transmission success. Transmission management information is ledger record data describing the binding relationship between the target voucher and the second attachment file information, indicating whether the binding of the target voucher and the second attachment file information has been completed. Transmission management information can be determined based on the business identifier corresponding to the encapsulated attachment file. For example, the business identifier corresponding to the encapsulated attachment file can be used as the transmission management information corresponding to the target voucher.
[0049] Specifically, in response to the transmission status of the packaged attachment file being successful, the business identifier corresponding to the packaged attachment file is used as the transmission management information corresponding to the target voucher. This enables the accurate establishment of a binding ledger for the target voucher and the second attachment file information, ensuring that the packaged attachment file is successfully stored in the database.
[0050] The technical solution of this embodiment obtains a business list corresponding to the target voucher in the current business batch. The business list includes a business identifier and the first attachment file information corresponding to the business identifier, providing comprehensive data support for subsequent matching and processing. The first attachment file information is verified to obtain a first verification result, which includes the verified first attachment file information, achieving accurate verification of the first attachment file information and providing a high-quality data foundation for subsequent analysis and processing. Second attachment file information is obtained based on preset attachment location information. A first index relationship is constructed based on the verified first attachment file information and the business identifier. The second attachment file information is then matched within the first index relationship to obtain a first matching result, achieving rapid matching of the second attachment file information and enabling accurate identification. This method avoids mistransmission, over-transmission, and omission of attachment files, thereby improving the accuracy of attachment archiving. If the first matching result is successful, the information of the second attachment file is encapsulated to obtain an encapsulated attachment file, which is then transmitted to the attachment file database, enabling the transmission of encapsulated attachment files corresponding to different vouchers. In response to a successful transmission status for the encapsulated attachment file, the transmission management information corresponding to the target voucher is determined based on the business identifier corresponding to the encapsulated attachment file. This transmission management information indicates whether the target voucher and the second attachment file information are successfully bound, solving the problem of inconsistency between the voucher-corresponding list and the uploaded attachment files in existing technologies. This achieves the transmission of encapsulated attachment files corresponding to different vouchers, improving the consistency between the voucher-corresponding business list and the actual uploaded attachment files.
[0051] Figure 2This is a flowchart of another file processing method provided by an embodiment of the present invention. This embodiment is a refinement of the above embodiments. Based on the foregoing embodiments, it provides a detailed description of the steps after constructing the first index relationship based on the verified first attachment file information and the business identifier. For specific implementation details, please refer to the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here. Figure 2 As shown, the method specifically includes the following steps: S210. Obtain the business list corresponding to the target voucher in the current business batch. The business list includes the business identifier and the first attachment file information corresponding to the business identifier.
[0052] S220. Verify the information in the first attachment file to obtain a first verification result, which includes the first attachment file information that has passed verification.
[0053] S230. Obtain the second attachment file information based on the preset attachment location information, and construct the first index relationship based on the verified first attachment file information and business identifier.
[0054] Optionally, the method further includes: verifying the business identifier to obtain a second verification result, the second verification result including that the business identifier has passed verification; obtaining second attachment file information based on attachment location information, and constructing a first index relationship based on the verified first attachment file information and the verified business identifier; wherein, verifying the business identifier includes at least one of the following: non-empty verification, duplicate verification, and format compliance verification.
[0055] The second verification result indicates whether the business identifier passes verification. The second verification result may include whether the business identifier passes verification or fails verification. Verification of the business identifier may involve one or more of the following: non-empty verification, duplicate verification, and format compliance verification. Non-empty verification checks whether the business identifier is blank, an empty value, or consists of completely blank characters. Duplicate verification checks whether there are duplicate business identifiers in the current business batch. Format compliance verification checks whether the character format, length, and encoding rules of the business identifier conform to preset format rules.
[0056] The first index relationship can also be constructed based on the verified first attachment file information and the verified business identifier. For example, using the verified business identifier as the primary key of the index and the verified first attachment file information as the index association value, a key-value mapping relationship between the verified business identifier and the verified first attachment file information is established, which serves as the first index relationship.
[0057] Specifically, the business identifier is verified to obtain a second verification result. When the second verification result includes the business identifier, the information of the actually uploaded second attachment file is obtained according to the preset attachment location information. Using the verified business identifier as the primary index key and the verified first attachment file information as the index association value, a key-value mapping relationship between the verified business identifier and the verified first attachment file information is established as the first index relationship. This enables rapid matching of the second attachment file information, accurately identifies mistransmission, overtransmission, and omission of attachment files, and thus helps improve the accuracy of attachment archiving.
[0058] S240. Construct a second index relationship based on the attachment location information and the second attachment file information; match the first index relationship and the second index relationship to obtain a second matching result; if the second matching result includes a successful match, encapsulate the successfully matched second attachment file information in the second index relationship to obtain an encapsulated attachment file, and transmit the encapsulated attachment file to the attachment file database.
[0059] The second index relationship is a mapping index describing the binding relationship between attachment location information and second attachment file information. The second index relationship can be constructed based on the attachment location information and the second attachment file information. For example, using the attachment location information as the primary key and the second attachment file information as the associated index value, a key-value mapping relationship between attachment location information and second attachment file information can be established as the second index relationship. It should be noted that the same attachment location information can correspond to one or multiple second attachment file information.
[0060] The second matching result indicates whether the first index relationship and the second index relationship are consistent. The first matching result may include successful matching or failed matching. The second matching result can be determined based on the first index relationship and the second index relationship. For example, firstly, the second index relationship is traversed, and all corresponding second attachment file information is retrieved from the attachment location information; then, all verified first attachment file information in the first index relationship is determined based on the business identifier; finally, the second attachment file information and the first attachment file information corresponding to the same business identifier are compared one by one to obtain the second matching result.
[0061] The encapsulated attachment file can also be obtained based on the information of the second attachment file that is successfully matched in the second index relationship. For example, the information of the second attachment file that is successfully matched in the second index relationship can be input into the trained encapsulation model for processing to obtain the encapsulated attachment file. The encapsulation model includes, but is not limited to, a neural network model. The encapsulation model is selected according to the requirements, and this invention does not impose any restrictions.
[0062] Specifically, using the attachment location information as the primary key and the second attachment file information as the index association value, a key-value mapping relationship between the attachment location information and the second attachment file information is established as the second index relationship. First, the second index relationship is traversed to retrieve all corresponding second attachment file information from the attachment location information. Then, based on the business identifier, all verified first attachment file information in the first index relationship is determined. Finally, the second attachment file information and the first attachment file information corresponding to the same business identifier are compared one by one to obtain the second matching result. If the second matching result includes a successful match, the successfully matched second attachment file information in the second index relationship is input into the trained encapsulation model for processing to obtain the encapsulated attachment file. The encapsulated attachment file is then transmitted to the file database via communication, realizing the encapsulation and transmission of encapsulated attachment files corresponding to different vouchers.
[0063] Optionally, the second attachment file information is encapsulated to obtain an encapsulated attachment file, including: determining the business type corresponding to the target credential based on the business identifier corresponding to the second attachment file information; determining the encapsulation rule corresponding to the second attachment file information based on the business type; and encapsulating the second attachment file information based on the encapsulation rule to obtain the encapsulated attachment file.
[0064] The business types include, but are not limited to, life service types, labor protection types, and operation types. The business type can be determined based on the business identifier corresponding to the information in the second attachment file. For example, the business type corresponding to the business identifier is determined by matching it against a preset business type mapping relationship. The encapsulation rules are the set of data packet packaging constraints corresponding to the information in the second attachment file. It should be noted that different business types correspond to different encapsulation rules in the second attachment file. The encapsulation rules can be determined based on the business type. For example, the encapsulation rules corresponding to the information in the second attachment file are determined by matching it against a preset encapsulation rule mapping relationship.
[0065] Specifically, the business type corresponding to the business identifier of the second attachment file information is matched in the preset business type mapping relationship to determine the business type of the business identifier; the encapsulation rule corresponding to the second attachment file information is determined by matching the business type in the preset encapsulation rule mapping relationship; the second attachment file information is encapsulated according to the encapsulation rule to obtain the encapsulated attachment file. This realizes the differentiated encapsulation of the second attachment file information by business, which can simplify the encapsulation logic and improve the encapsulation efficiency, thereby facilitating the classification, storage and management of the attachment file database.
[0066] Optionally, the method further includes: if the second matching result includes a matching failure, generating a first prompt message based on the second attachment file information that failed to match in the second index relationship, the first prompt message being used to indicate the matching failure type of the second attachment file information that failed to match; wherein, when the second attachment file information in the second index relationship does not match the corresponding verified first attachment file information in the first index relationship, and / or, the first attachment file information in the first index relationship does not match the corresponding second attachment file information in the second index relationship, the second matching result includes a matching failure.
[0067] The first prompt message is a standardized prompt text generated for the second attachment file information that failed to match, used to indicate the type of failure in matching the second attachment file information. The types of failure in matching the second attachment file information include, but are not limited to, multiple attachment files being sent, attachment files being missed, and attachment files being mistakenly sent.
[0068] It should be noted that when the second attachment file information in the second index relationship does not match the corresponding verified first attachment file information in the first index relationship, the second matching result includes a matching failure; when the first attachment file information in the first index relationship does not match the corresponding second attachment file information in the second index relationship, the second matching result includes a matching failure; when the second attachment file information in the second index relationship does not match the corresponding verified first attachment file information in the first index relationship, and when the first attachment file information in the first index relationship does not match the corresponding second attachment file information in the second index relationship, the second matching result includes a matching failure.
[0069] Specifically, when the second attachment file information in the second index relationship does not match the corresponding verified first attachment file information in the first index relationship, and / or when the first attachment file information in the first index relationship does not match the corresponding second attachment file information in the second index relationship, the second matching result includes a matching failure. Based on the second attachment file information that failed to match in the second index relationship, a first prompt message is generated. This can accurately determine the attachment file corresponding to the attachment file matching anomaly, and achieve accurate detection of multiple file transmissions, missing attachment file transmissions, and mistransmissions of attachment files. In turn, it can improve the accurate binding of the business list corresponding to the voucher and the actual uploaded file, and the consistency between the business list corresponding to the voucher and the actual uploaded file.
[0070] Based on the above embodiments, the method further includes: in response to the second matching result including a matching failure, generating a business upload interface pause call instruction, and sending the business upload interface pause call instruction to the business upload interface, the business upload interface pause call instruction being used to block the attachment upload operation of the business upload interface; in response to the business upload interface pause call instruction, the business upload interface suspends the execution of the attachment upload operation.
[0071] S250. In response to the transmission status of the encapsulated attachment file being successful, determine the transmission management information corresponding to the target credential based on the business identifier corresponding to the encapsulated attachment file. The transmission management information indicates whether the target credential and the second attachment file information have been successfully bound.
[0072] The technical solution of this embodiment obtains the business list corresponding to the target voucher in the current business batch. The business list includes a business identifier and the first attachment file information corresponding to the business identifier, providing comprehensive data support for subsequent matching and processing. The first attachment file information is verified to obtain a first verification result, which includes the verified first attachment file information, achieving accurate verification of the first attachment file information and providing a high-quality data foundation for subsequent analysis and processing. Second attachment file information is obtained based on preset attachment location information. A first index relationship is constructed based on the verified first attachment file information and the business identifier, realizing the index mapping of attachment files in the business list with the business identifier as the core. This avoids the problems of mismatch between attachment files and business identifiers and chaotic attachment file archiving caused by the order of manually uploaded attachment files, thereby achieving... The system achieves precise binding between the business list and the actual uploaded attachment files. A second index relationship is constructed based on attachment location information and second attachment file information. The first and second index relationships are matched to obtain a second matching result. If the second matching result includes a successful match, the successfully matched second attachment file information in the second index relationship is encapsulated to obtain an encapsulated attachment file, which is then transmitted to the attachment file database. This enables the encapsulation and transmission of encapsulated attachment files corresponding to different vouchers. In response to a successful transmission status for the encapsulated attachment file, the transmission management information corresponding to the target voucher is determined based on the business identifier corresponding to the encapsulated attachment file. This transmission management information indicates whether the target voucher and the second attachment file information are successfully bound, thus enabling the transmission of encapsulated attachment files corresponding to different vouchers and improving the consistency between the business list and the uploaded attachment files corresponding to the voucher.
[0073] Figure 3 This is a schematic diagram of the structure of a file processing device provided in an embodiment of the present invention. Figure 3As shown, the device includes a business list acquisition module 310, a first attachment file information verification module 320, a first matching result determination module 330, an encapsulated attachment file transmission module 340, and a transmission management information determination module 350.
[0074] The system includes the following modules: a business list acquisition module 310, which acquires the business list corresponding to the target voucher in the current business batch, including a business identifier and the first attachment file information corresponding to the business identifier; a first attachment file information verification module 320, which verifies the first attachment file information to obtain a first verification result, including the verified first attachment file information; a first matching result determination module 330, which acquires the second attachment file information based on preset attachment location information, constructs a first index relationship based on the verified first attachment file information and the business identifier, and performs matching based on the second attachment file information in the first index relationship to obtain a first matching result; an attachment file encapsulation and transmission module 340, which encapsulates the second attachment file information to obtain an encapsulated attachment file when the first matching result is successful, and transmits the encapsulated attachment file to the attachment file database; and a transmission management information determination module 350, which, in response to the transmission status of the encapsulated attachment file being successful, determines the transmission management information corresponding to the target voucher based on the business identifier corresponding to the encapsulated attachment file, wherein the transmission management information indicates whether the target voucher and the second attachment file information have been successfully bound.
[0075] The technical solution of this embodiment obtains the business list corresponding to the target voucher in the current business batch through a business list acquisition module. The business list includes a business identifier and the first attachment file information corresponding to the business identifier, providing comprehensive data support for subsequent matching and processing. A first attachment file information verification module verifies the first attachment file information to obtain a first verification result, which includes the verified first attachment file information, achieving accurate verification of the first attachment file information and providing a high-quality data foundation for subsequent analysis and processing. A first matching result determination module obtains the second attachment file information based on preset attachment location information, constructs a first index relationship based on the verified first attachment file information and the business identifier, and matches the second attachment file information within the first index relationship to obtain a first matching result. This system enables rapid matching of information in the second attachment file, accurately identifying mistransmission, overtransmission, and omission of attachment files, thereby improving the accuracy of attachment archiving. Through the attachment file encapsulation transmission module, when the first matching result is successful, the second attachment file information is encapsulated to obtain an encapsulated attachment file, which is then transmitted to the attachment file database, enabling the transmission of encapsulated attachment files corresponding to different vouchers. Through the transmission management information determination module, in response to the successful transmission status of the encapsulated attachment file, the transmission management information corresponding to the target voucher is determined based on the business identifier corresponding to the encapsulated attachment file. The transmission management information indicates whether the target voucher and the second attachment file information are successfully bound, enabling the transmission of encapsulated attachment files corresponding to different vouchers and improving the consistency between the business list corresponding to the voucher and the uploaded attachment files.
[0076] Optionally, based on the above embodiments, the encapsulated attachment file transmission module 340 is further configured to: after constructing a first index relationship based on the verified first attachment file information and the business identifier, construct a second index relationship based on the attachment location information and the second attachment file information; match the first index relationship and the second index relationship to obtain a second matching result; and, if the second matching result includes a successful match, encapsulate the successfully matched second attachment file information in the second index relationship to obtain an encapsulated attachment file.
[0077] Optionally, the device further includes a first prompt information generation module, configured to: generate a first prompt information based on the second attachment file information that failed to match in the second index relationship when the second matching result includes a matching failure; the first prompt information is used to indicate the matching failure type of the second attachment file information that failed to match; wherein, when the second attachment file information in the second index relationship does not match the corresponding verified first attachment file information in the first index relationship, and / or, the first attachment file information in the first index relationship does not match the corresponding second attachment file information in the second index relationship, the second matching result includes a matching failure.
[0078] Optionally, the device further includes a business identifier verification module, used for: verifying the business identifier to obtain a second verification result, the second verification result including business identifier verification passed; obtaining second attachment file information based on attachment location information, and constructing a first index relationship based on the verified first attachment file information and the verified business identifier; wherein, verifying the business identifier includes at least one of the following: non-empty verification, duplicate verification, and format compliance verification.
[0079] Optionally, the encapsulated attachment file transmission module 340 is further configured to: determine the business type corresponding to the target credential based on the business identifier corresponding to the second attachment file information; determine the encapsulation rule corresponding to the second attachment file information based on the business type; and encapsulate the second attachment file information based on the encapsulation rule to obtain the encapsulated attachment file.
[0080] Optionally, the first verification result also includes information about the first attachment file that failed verification; the device further includes: a second prompt information generation module, used to: generate second prompt information based on the first attachment file information that failed verification, the second prompt information being used to indicate the type of verification failure corresponding to the first attachment file information that failed verification.
[0081] Optionally, the first attachment file information includes the name of the first attachment file; the first attachment file information verification module 320 is also used to: verify the first attachment file information, including at least one of the following: file name splitting processing, file type verification, file name length verification, and file name compliance verification.
[0082] Optionally, the device further includes a third prompt information generation module, used to: determine the business status corresponding to the target credential based on the business identifier before verifying the information of the first attachment file; and generate a third prompt information if the business status includes an invalid status, the third prompt information being used to indicate that the target credential status is invalid.
[0083] The document processing apparatus provided in this embodiment of the invention can execute a document processing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0084] Figure 4This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0085] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0086] Multiple components in electronic device 10 are connected to input / output (I / O) interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of monitors, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0087] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a file processing method.
[0088] In some embodiments, a file processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via read-only memory (ROM) 12 and / or communication unit 19. When the computer program is loaded into random access memory (RAM) 13 and executed by processor 11, one or more steps of a file processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a file processing method by any other suitable means (e.g., by means of firmware).
[0089] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0090] A computer program for implementing a document processing method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer program causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer program can be executed entirely on the machine, partially on the machine, as a standalone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0091] This invention also provides a computer-readable storage medium storing computer instructions for causing a processor to execute a file processing method, the method comprising: Obtain the business list corresponding to the target voucher in the current business batch. The business list includes a business identifier and the first attachment file information corresponding to the business identifier. Verify the first attachment file information to obtain a first verification result, which includes the first attachment file information that has passed verification. Obtain the second attachment file information based on preset attachment location information. Construct a first index relationship based on the first attachment file information that has passed verification and the business identifier. Match the second attachment file information in the first index relationship to obtain a first matching result. If the first matching result is successful, encapsulate the second attachment file information to obtain an encapsulated attachment file and transmit the encapsulated attachment file to the attachment file database. In response to the transmission status of the encapsulated attachment file being successful, determine the transmission management information corresponding to the target voucher based on the business identifier corresponding to the encapsulated attachment file. The transmission management information indicates whether the target voucher and the second attachment file information have been successfully bound.
[0092] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0093] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0094] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0095] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0096] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements a file processing method according to any embodiment of the invention.
[0097] In implementing the computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0098] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0099] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A file processing method, characterized in that, include: Obtain the business list corresponding to the target voucher in the current business batch, the business list including the business identifier and the first attachment file information corresponding to the business identifier; The first attachment file information is verified to obtain a first verification result, which includes the first attachment file information that has passed verification. The second attachment file information is obtained based on the preset attachment location information. A first index relationship is constructed based on the verified first attachment file information and the business identifier. The second attachment file information is matched in the first index relationship to obtain a first matching result. If the first matching result is a successful match, the second attachment file information is encapsulated to obtain an encapsulated attachment file, and the encapsulated attachment file is transmitted to the attachment file database; In response to the transmission status of the encapsulated attachment file being successful, the transmission management information corresponding to the target credential is determined based on the business identifier corresponding to the encapsulated attachment file. The transmission management information indicates whether the target credential and the second attachment file information have been successfully bound.
2. The method according to claim 1, characterized in that, After constructing the first index relationship based on the verified first attachment file information and the business identifier, the method further includes: A second index relationship is constructed based on the attachment location information and the second attachment file information; The first index relationship and the second index relationship are matched to obtain a second matching result; If the second matching result includes a successful match, the information of the second attachment file that was successfully matched in the second index relationship is encapsulated to obtain the encapsulated attachment file.
3. The method according to claim 2, characterized in that, The method further includes: If the second matching result includes a matching failure, a first prompt message is generated based on the second attachment file information that failed to match in the second index relationship. The first prompt message is used to indicate the matching failure type of the second attachment file information that failed to match. Wherein, when the second attachment file information in the second index relationship does not match the corresponding verified first attachment file information in the first index relationship, and / or the first attachment file information in the first index relationship does not match the corresponding second attachment file information in the second index relationship, the second matching result includes a matching failure.
4. The method according to claim 1, characterized in that, The method further includes: The service identifier is verified to obtain a second verification result, wherein the second verification result includes that the service identifier has passed verification. The second attachment file information is obtained based on the attachment location information, and a first index relationship is constructed based on the verified first attachment file information and the verified business identifier. The verification of the business identifier includes at least one of the following: non-empty verification, duplicate verification, and format compliance verification.
5. The method according to claim 1, characterized in that, The process of encapsulating the information in the second attachment file to obtain an encapsulated attachment file includes: The business type corresponding to the target credential is determined based on the business identifier corresponding to the information in the second attachment file. Determine the encapsulation rules corresponding to the second attachment file information based on the business type; The second attachment file information is encapsulated based on the encapsulation rules to obtain the encapsulated attachment file.
6. The method according to claim 1, characterized in that, The first attachment file information includes the name of the first attachment file; The first verification result also includes information about the first attachment file that failed verification; The method further includes: A second prompt message is generated based on the first attachment file information that failed the verification. The second prompt message is used to indicate the verification failure type corresponding to the first attachment file information that failed the verification.
7. The method according to claim 1, characterized in that, The first attachment file information includes the name of the first attachment file; The first attachment file information is verified, including at least one of the following: file name splitting processing, file type verification, file name length verification, and file name compliance verification.
8. The method according to claim 1, characterized in that, Before verifying the information in the first attachment file, the method further includes: The business status corresponding to the target credential is determined based on the business identifier; If the business status includes an invalid status, a third prompt message is generated, which is used to indicate that the target credential is invalid.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the file processing method according to any one of claims 1-8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the file processing method of any one of claims 1-8.
