Document data processing method, electronic equipment, storage medium and program product
By generating and applying document data splitting strategy to process the original document source data, the problem of low document recognition and accuracy is solved, and efficient statistics and management of document data is realized.
Patent Information
- Application Number
- CN202411534766.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-11
AI Technical Summary
In the prior art, the identification and accuracy of documents are low, and other information other than partners cannot be obtained from the aggregated documents, and cannot meet the needs of document management.
By obtaining the original document source data and the current document splitting reference data, a document data splitting strategy is generated, and the original document source data is splitting and processing to obtain the target processed document data.
It improves the recognition and accuracy of data in documents, facilitates statistics and correction of data in documents, and meets the manager's document management needs.
Smart Images

Figure CN119415522A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a document data processing method, electronic equipment, storage medium and program product. Background Art
[0002] In the daily operation of an enterprise, a large number of documents will be generated, and these documents will involve the company's various businesses and multiple partners. There are many types of documents and the information involved is also different, which makes it inconvenient for the enterprise to manage.
[0003] In order to facilitate management, these documents need to be processed. The existing processing method is generally to summarize these transaction flow documents according to the cooperation objects of the documents to achieve document management.
[0004] Although the solution of processing documents according to their partners can summarize and manage documents of different time periods, the accuracy of the summarized document data is low. The management personnel cannot obtain other information except the partners from the summarized documents, which cannot meet the needs of document management. Summary of the invention
[0005] The present invention provides a document data processing method, electronic equipment, storage medium and program product, which can improve the recognition and accuracy of data in the document and facilitate the statistics and correction of data in the document.
[0006] According to one aspect of the present invention, a document data processing method is provided, the method comprising:
[0007] Obtain the original document source data and the current document split reference data;
[0008] Generate a document data splitting strategy matching the original document source data according to the current document splitting reference data;
[0009] The original document source data is processed by data splitting according to the document data splitting strategy to obtain target processed document data.
[0010] According to another aspect of the present invention, there is provided a document data processing device, the device comprising:
[0011] Data acquisition module, used to obtain original document source data and current document split reference data;
[0012] A document data splitting and combining strategy generating module, used for generating a document data splitting and combining strategy matching the original document source data according to the current document splitting and combining reference data;
[0013] The document data splitting module is used to perform data splitting processing on the original document source data according to the document data splitting strategy to obtain target processed document data.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the document data processing method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the document data processing method described in any embodiment of the present invention when executed.
[0019] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the document data processing method described in any embodiment of the present invention is implemented.
[0020] The technical solution of the embodiment of the present invention, after obtaining the original document source data and the current document splitting reference data, generates a document data splitting strategy that matches the original document source data according to the current document splitting reference data, and performs data splitting processing on the original document source data according to the document data splitting strategy, thereby solving the problem of low recognition and accuracy of documents issued in the prior art, and can improve the recognition and accuracy of data in the document, facilitate statistics of data in the document, and thus meet the manager's management needs for documents.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a flow chart of a document data processing method provided according to Embodiment 1 of the present invention;
[0024] Figure 2 is a flow chart of another document data processing method provided according to Embodiment 2 of the present invention;
[0025] Figure 3 A target processing document data traceability diagram for backtracing the transaction flow corresponding to the target processing document data in an embodiment of the present invention;
[0026] Figure 4 A target processing document data tracing diagram for back-tracing the transaction flow corresponding to the target processing document data in an embodiment of the present invention;
[0027] Figure 5 is a structural schematic diagram of a document data processing device provided according to Embodiment 3 of the present invention;
[0028] Figure 6 It is a schematic diagram of the structure of an electronic device for implementing the document data processing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] Embodiment 1
[0032] Figure 1This is a flowchart of a document data processing method provided in the first embodiment of the present invention. This embodiment is applicable to the case where documents are to be disassembled and reassembled as needed. The method can be executed by a document data processing device. The document data processing device can be implemented in the form of hardware and / or software. The document data processing device can be configured in an electronic device. The electronic device can be a terminal device or a server device. As long as it can execute the document data processing method, the embodiment of the present invention does not limit the specific device type of the electronic device. Accordingly, if Figure 1 As shown, the method may include:
[0033] S110. Obtain the original document source data and the current document split reference data.
[0034] Among them, the original document source data can be the document record of the actual business flow data generated by the enterprise in the process of doing business. The original document source data can be the document record of the business flow data generated by the enterprise within a period of time, or it can be the document record of the business flow data of a certain business, or it can be the document record of any business flow data specified by the user, wherein the document record can include a bill record. For example, if a department of an enterprise purchases a batch of equipment, then the information such as the time, model, quantity and amount of the equipment collected by the department can be used as the business flow data; for another example, if a department of an enterprise completes a decoration task, then the information such as the time, specific business and amount of the decoration task completed by the department can be used as the business flow data; and these business flow data can be regarded as the original document source data.
[0035] The current document splitting reference data may be reference data for splitting or merging the current original document source data, wherein different original document source data correspond to different current document splitting reference data. The current document splitting reference data may be determined according to the needs of the user; or may be determined according to the management needs of the enterprise or the issuance restrictions of the value-added tax invoice, and may be reference data for splitting or merging the current original document source data. For example, if the amount of the original document source data corresponding to a certain business of the enterprise is large and is likely to exceed the issuance restrictions of the value-added tax invoice, the maximum amount may be set as the current document splitting reference data. Further, when the transaction flow amount of the original document source data is greater than the issuance restrictions of the value-added tax invoice, it is split into two or more documents; for another example, if a department of the enterprise involves many types of business, including large and small businesses, a classification standard may be set as the current document splitting reference data. Further, when the transaction flow of the original document source data is relatively messy, it is split into multiple types of documents. Exemplarily, the user can designate the document records of the enterprise's actual business flow data within a week as the original document source data, and formulate document splitting and combining reference data for the designated original document source data as the current document splitting and combining reference data for the designated original document source data; the user can also designate the document records of the enterprise's actual business flow data with a certain cooperation partner within a week as the original document source data, and formulate document splitting and combining reference data for the designated original document source data as the current document splitting and combining reference data for the designated original document source data.
[0036] By specifying the user as the running data as the original document source data, and formulating the document splitting and combining reference data for the specified original document source data as the current document splitting and combining reference data for the specified original document source data, the original document source data can meet the user's management needs and make it more convenient for the enterprise to manage the original document source data.
[0037] S120. Generate a document data splitting and combining strategy that matches the original document source data according to the current document splitting and combining reference data.
[0038] The document data splitting and merging strategy may be generated based on the current document splitting and merging reference data and is used to split or merge the original document source data. One original document source data may correspond to one or more document data splitting and merging strategies of different priorities.
[0039] Specifically, a document data splitting strategy matching the original document source data is generated based on the current document splitting reference data. The current document splitting reference data corresponding to the original document source data can be obtained, and one or more document data splitting strategies of different levels can be generated based on the current document splitting reference data corresponding to the original document source data.
[0040] Exemplarily, if the current document splitting reference data is to split the transaction flow in which the transaction amount is greater than the issuance limit of the value-added tax invoice into two or more documents, then the transaction flow in which the transaction amount is greater than the issuance limit of the value-added tax invoice can be split into two or more documents to determine as the document data splitting strategy that matches the original document source data; if the current document splitting reference data is to set a classification standard to split or merge transaction flows with different standards, then the classification standard can be set to split or merge transaction flows with different standards to determine as the document data splitting strategy that matches the original document source data; if the previous document splitting reference data includes the above two current document splitting reference data at the same time, then the two current document splitting reference data can be determined as the document data splitting strategy that matches the original document source data. If the previous document splitting reference data includes two or more current document splitting reference data at the same time, then the two or more current document splitting reference data can be determined as the document data splitting strategy that matches the original document source data.
[0041] S130. Perform data splitting and combining processing on the original document source data according to the document data splitting and combining strategy to obtain target processed document data.
[0042] The target processed document data may be document data obtained by processing the original document source data according to one or more document data splitting and combining strategies of the original document source data. Exemplarily, the target processed document data may include transaction flow information, transaction flow time information, transaction flow department information, transaction flow amount information and other information related to the transaction flow of the target processed document data.
[0043] Specifically, the original document source data is subjected to data splitting processing according to the document data splitting strategy, and obtaining the target processed document data can be achieved by obtaining one or more document data splitting strategies of the original document source data. If there is only one document data splitting strategy for the original document source data, the original document source data is directly processed according to this document data splitting strategy to obtain the target processed document data; if there are multiple document data splitting strategies for the original document source data, it is necessary to obtain the priority level corresponding to each of the multiple document data splitting strategies, and split the original document source data at least once according to the priority level corresponding to each document data splitting strategy.
[0044] Exemplarily, if the document data splitting strategy matched by the original document source data is: split the transaction flow with a transaction amount greater than 10,000 in the transaction flow into multiple document data less than 10,000. Then the transaction flow with a transaction amount greater than 10,000 in the original document source data can be split until the transaction amount of all the split document data is less than 10,000, and the document data with a transaction amount less than 10,000 of these documents is the target processing document data. If the document data splitting strategy matched by the original document source data is: merge transaction flows of different amount ranges into one document data. Then the transaction amount of multiple transaction flow document data in the original document source data can be judged, and the corresponding transaction flow document data can be divided into the corresponding transaction amount range according to the transaction amount of the transaction flow document data, and the document data corresponding to the transaction amount range is generated. If the document data splitting strategy matched by the original document source data is: merge transaction flows of different business types into one document data. Then, the business types of multiple transaction flow document data in the original document source data can be judged, and the corresponding transaction flow document data can be divided into corresponding business types according to the business types of the transaction flow document data, so as to generate multiple document data corresponding to different business types. If the document data splitting strategy matched by the original document source data is multiple document data splitting strategies of the above document data splitting strategy, the priorities corresponding to these document data splitting strategies can be obtained, and the original document source data can be split at least once according to the priorities corresponding to each document data splitting strategy.
[0045] If the previous document splitting reference data includes two or more current document splitting reference data at the same time, then the two or more current document splitting reference data can be determined as the document data splitting strategy matching the original document source data. For example, if the document data splitting strategy matching the original document source data is: merging transaction flows of different business types into one document data and splitting a transaction flow with a transaction amount greater than 10,000 in the transaction flow into multiple document data with a transaction amount less than 10,000, and the priority of splitting a transaction flow with a transaction amount greater than 10,000 in the transaction flow into multiple document data with a transaction amount less than 10,000 If the transaction flows of different business types are merged into one document data, the transaction flows of different business types can be merged into one document data first, and then the transaction flows with transaction amounts greater than ten thousand in the transaction flows can be split into multiple document data with transaction amounts less than ten thousand for secondary splitting; or the transaction flows of different business types can be merged into one document data first, and then the merged document data can be judged. If the amounts of the merged document data are all less than ten thousand, the transaction flows with transaction amounts greater than ten thousand in the transaction flows can no longer be split into multiple document data with transaction amounts less than ten thousand for secondary splitting.
[0046] The technical solution of the embodiment of the present invention, after obtaining the original document source data and the current document splitting reference data, generates a document data splitting strategy that matches the original document source data according to the current document splitting reference data, and performs data splitting processing on the original document source data according to the document data splitting strategy, thereby solving the problem of low recognition and accuracy of documents issued in the prior art, and can improve the recognition and accuracy of data in the document, facilitate statistics of data in the document, and thus meet the manager's management needs for documents.
[0047] Embodiment 2
[0048] Figure 2 This is a flowchart of another document data processing method provided by the second embodiment of the present invention. Based on the above embodiment, this embodiment obtains the original document source data and the current document splitting reference data; generates a document data splitting strategy matching the original document source data according to the current document splitting reference data; performs data splitting processing on the original document source data according to the document data splitting strategy to obtain the target processed document data. Figure 2 As shown, the method of this embodiment may include:
[0049] S210. Obtain the original document source data and the current document split reference data.
[0050] Specifically, obtaining the original document source data and the current document splitting reference data may include: querying historical form records to obtain the original document source data that meets preset conditions in the historical form records; obtaining the document processing requirement information and preset document processing rule information triggered by the user as the current document splitting reference data.
[0051] Among them, the historical form record can be a historical transaction flow record generated by the enterprise during the transaction process. The historical form record can include transaction flow information such as transaction object, transaction type, transaction time and transaction amount, wherein the transaction amount can be a positive amount or a negative amount. The preset condition can be a screening condition for the original document source data that the user needs to filter out from the historical form record. For example, the screening condition can be the transaction flow record with the transaction object A within a week; or all transaction flow records within a week; or the transaction flow record after a project is completed; or all transaction flow records within a month, etc. The embodiment of the present invention does not specifically limit the method for determining the preset condition, and those skilled in the art can set the preset condition for filtering the historical form records according to their needs.
[0052] Among them, the document processing demand information can be a processing demand for the original document source data set according to the requirements put forward by the user. For example, the user wants to merge the transaction flow documents of the same transaction type in the original document source data into one document; or sort them according to the transaction amount and generate a document in groups of three; or issue a separate document for the transaction flow with a transaction amount greater than 10,000, a document for the transaction flow with a transaction amount greater than 5,000 and less than 10,000, and a document for the transaction flow with a transaction amount less than 5,000 in a group of five; or the user wants to merge the documents of the same work type in the original document source data into one document. Exemplarily, if a decoration business includes indoor decoration and outdoor decoration business, then the document processing demand information can be to open the indoor decoration business on one document and the outdoor decoration business on another document. The embodiment of the present invention does not specifically limit the setting of the document processing demand information, and the document processing demand information for processing the original document source data can be set according to the user's needs.
[0053] Among them, the preset document processing rule information is the rule information for processing documents pre-set according to the type of document or some restrictions on document issuance, and is used to restrict the original document source data after being processed by the document processing demand information, so as to avoid the document data obtained after processing not meeting the issuance conditions of the document. For example, the preset document processing rule information can be that the amount of the document data obtained by the document processing demand information exceeds the upper limit of the issuance of value-added tax invoices; or the two transaction flows involved in the document data obtained after processing by the document processing demand information have a long time difference; or the document data obtained after processing by the document processing demand information involves too many types of transaction flows, etc. The embodiment of the present invention does not specifically limit the setting method of the preset document processing rule information, and the preset document processing rule information can be set by the enterprise according to its actual needs.
[0054] Specifically, the user may input the filter conditions of the original document source data to be processed into the data filter box, and then filter out the original document source data that meets the filter conditions, that is, the original document source data to be processed, from the historical form records. Then, the document processing requirement information and the preset document processing rule information input by the user are determined as the current document splitting and combining reference data for the currently filtered original document source data. It should be noted that different original document source data correspond to different filter conditions and different current document splitting and combining reference data.
[0055] S220. Generate a document data splitting and combining strategy that matches the original document source data according to the current document splitting and combining reference data.
[0056] Generating a document data splitting strategy that matches the original document source data based on the current document splitting reference data may include: generating a first document data splitting strategy that matches the original document source data based on the document processing requirement information triggered by the user; when it is determined that the first document data splitting strategy meets the preset document processing rule information, using the first document data splitting strategy as the document data splitting strategy that matches the original document source data; or when it is determined that the first document data splitting strategy does not meet the preset document processing rule information, integrating the first document data splitting strategy according to the preset document processing rule information to obtain a second document data splitting strategy; and using the second document data splitting strategy as the document data splitting strategy that matches the original document source data.
[0057] The document data splitting and merging strategy may include a strategy for splitting and / or merging the original document source data at least once. The first document data splitting and merging strategy may be a strategy for splitting and / or merging the original document source data generated according to the document processing requirement information. The second document data splitting and merging strategy may be a strategy for splitting and / or merging the document data obtained by integrating the first document data splitting and merging strategy according to the preset document processing rule information when the first document data splitting and merging strategy does not conform to the preset document processing rule information.
[0058] Specifically, after determining the document processing requirement information triggered by the user, a first document data splitting strategy for processing the original document source data can be generated according to the document processing requirement information, and the first document data splitting strategy can be judged by the preset document processing rule information triggered by the user. If the result of processing the original document source data according to the first document data splitting strategy can meet the preset document processing rule information, then the first document data splitting strategy can be directly determined as the document data splitting strategy for processing the original document source data; if the result of processing the original document source data according to the first document data splitting strategy cannot meet the preset document processing rule information, then it is necessary to integrate the first document data splitting strategy according to the preset document processing rule information, so that the result of processing the original document source data according to the first document data splitting strategy can meet the preset document processing rule information, and the strategy after processing the original document source data is determined as the second document data splitting strategy, and the second document data splitting strategy is used as the strategy for processing the original document source data.
[0059] For example, if the document processing requirement information triggered by the user is to issue a single document for transaction flows with transaction amounts greater than 10,000, and issue a single document for three sets of transaction flows with transaction amounts less than 10,000, and the preset document processing rule information triggered by the user is that the amount of a single document must be less than 10,000. Then, it can be determined as the first document data splitting strategy that a single document for transaction flows with transaction amounts greater than 10,000 is issued, and a single document for three sets of transaction flows with transaction amounts less than 10,000 is issued, and it is determined whether the amount of a single document obtained according to the first document data splitting strategy is less than 10,000. If the result is that each single document is less than ten thousand (there is no transaction flow greater than ten thousand), the first document data splitting strategy can be directly determined as the document data splitting strategy; if the result is that a single document has a transaction flow greater than ten thousand, it is necessary to integrate the first document data splitting strategy that each single document is less than ten thousand to obtain a second document data splitting strategy that satisfies the requirement that each single document is less than ten thousand, and determine the second document data splitting strategy as the document data splitting strategy.
[0060] S230. Perform data splitting and combining processing on the original document source data according to the document data splitting and combining strategy to obtain target processed document data.
[0061] Performing data splitting processing on original document source data according to the document data splitting strategy to obtain target processing document data may include: when it is determined that the first document data splitting strategy conforms to the preset document processing rule information, performing data splitting processing on the original document source data according to the first document data splitting strategy to obtain the target processing document data; when it is determined that the first document data splitting strategy does not conform to the preset document processing rule information, performing data splitting processing on the original document source data according to the second document data splitting strategy to obtain the target processing document data.
[0062] The target processed document data may be one or more document data corresponding to the original document source data obtained after the original document source data is split and / or merged at least once through the document data splitting and merging strategy.
[0063] Specifically, if the first document data splitting and merging strategy conforms to the preset document processing rule information, it indicates that after the original document source data is processed by the first document data splitting and merging strategy, the target processed document data conforming to the preset document processing rule information can be obtained. At this time, the original document source data can be directly split and / or merged at least once by the first document data splitting and merging strategy, thereby obtaining one or more document data corresponding to the original document source data. If the first document data splitting and merging strategy does not conform to the preset document processing rule information, it indicates that after the original document source data is processed by the first document data splitting and merging strategy, the target processed document data conforming to the preset document processing rule information cannot be obtained. At this time, it is necessary to split and / or merge the original document source data at least once by the second document data splitting and merging strategy, thereby obtaining one or more document data corresponding to the original document source data.
[0064] Exemplarily, Table 1 is a first document data splitting table. As shown in Table 1, the original document source data can be split to generate two new target processing document data. Table 2 is a second document data splitting table. As shown in Table 2, the original document source data can be split to generate two new target processing document data, wherein negative document data can be negative transaction flows generated in cases of user returns or losses incurred during business handling. Table 3 is a third document data splitting table. As shown in Table 3, the original document source data can be split multiple times to generate multiple new target processing document data. Table 4 is a document data merging table. As shown in Table 4, the original document source data can be merged to generate a new target processing document data.
[0065] Table 1 First document data split table
[0066]
[0067] Table 2 Second document data split table
[0068]
[0069] Table 3 The third document data split table
[0070]
[0071] Table 4 Document data consolidation table
[0072]
[0073] Exemplarily, assuming that Table 5 is the first document data splitting table, as shown in Table 5, multiple original document source data can be split and then merged to generate multiple new target processing document data. Assuming that Table 6 is the second document data splitting table, as shown in Table 6, multiple original document source data can be merged and then split to generate multiple new target processing document data. Assuming that Table 7 is the third document data splitting table, as shown in Table 7, multiple original document source data can be split and then merged, and the merged data can be split again to generate multiple new target processing document data. Assuming that Table 8 is the fourth document data splitting table, as shown in Table 8, multiple original document source data can be split and then merged to generate multiple new target processing document data, wherein negative document data can be negative transaction flows generated in cases such as user returns or losses incurred during business processing. Assuming that Table 9 is the fifth document data splitting table, as shown in Table 9, multiple original document source data can be merged and then split to generate multiple new target processing document data. Assuming that Table 10 is the sixth document data splitting table, as shown in Table 10, multiple original document source data can be split and then merged, and the merged data can be split again to generate multiple new target processing document data.
[0074] Table 5: First document data split table
[0075]
[0076] Table 6 Second document data split table
[0077]
[0078] Table 7 The third document data split table
[0079]
[0080] Table 8 Fourth document data split table
[0081]
[0082] Table 9 Fifth document data split table
[0083]
[0084] Table 10 Sixth document data split table
[0085]
[0086] After processing the original document source data, one or more target processing document data can be obtained, wherein the original document source data may include one or more order transaction data; each group of target processing document data may include one or more order transaction data, and each group of target processing document data may include one or more corresponding transaction amount information.
[0087] S240: Establishing an association relationship between the transaction order and the transaction amount in the order transaction data.
[0088] The order transaction data may be a set of order transaction flow data corresponding to the target processing document data, and a set of order transaction flow data may include one or more transaction orders and transaction amount data of each transaction order.
[0089] Specifically, to establish an association relationship between transaction orders and transaction amounts in order transaction data, one or more transaction orders included in a set of order transaction flow data corresponding to the target processing document data, and transaction amount data corresponding to one or more transaction orders can be associated together to form a set of association relationships corresponding to the target processing document data, including transaction order data and transaction order amounts.
[0090] S250: Generate invoice data for the transaction order based on the order transaction data and the association relationship between the transaction order and the transaction amount in the order transaction data.
[0091] The invoice data of the transaction order may be invoice data generated according to the association relationship between the transaction order data and the transaction order amount corresponding to the target processing document data, and the invoice data may include the transaction order data and the transaction order amount information. The invoice data of the transaction order may be value-added tax invoice data, or other types of invoices, such as ordinary invoices, special invoices, machine-printed invoices, fixed-amount invoices, and electronic invoices.
[0092] Specifically, the order transaction data and the transaction amounts of one or more transaction orders in the order transaction data may be associated based on the association between the transaction order and the transaction amount in the order transaction data, thereby generating invoice data corresponding to the transaction order.
[0093] Optionally, after performing data splitting processing on the original document source data according to the document data splitting strategy to obtain the target processed document data, it may also include: obtaining log record data of the data splitting processing on the original document source data according to the document data splitting strategy; wherein the log record data may include the target document source data, the operation type information of the target document source data and the number of operations of the target document source data; and constructing a document data processing model according to the log record data.
[0094] The log data may be log data for recording the generation of invoice data corresponding to the transaction order, and may be used to construct a document data processing model. The document data processing model may be a model for recording the generation process of invoice data corresponding to the transaction order, and may be used to trace the invoice data corresponding to the transaction order.
[0095] Among them, the target document source data can be one or more original document source data used to generate the invoice data of the transaction order. For example, the invoice data A of the transaction order is the invoice data generated by splitting and merging the original document source data B and the original document source data C. In this case, the original document source data B and the original document source data C can be determined as the target document source data of the invoice data A of the transaction order; the process of splitting and / or merging the original document source data B and the original document source data C is the operation type information of the target document source data of the invoice data A of the transaction order; the number of times the original document source data B and the original document source data C are split and / or merged is the number of operations on the target document source data of the invoice data A of the transaction order.
[0096] Specifically, the target document source data, operation type information of the target document source data and the number of operations on the target document source data may be included in the log record data of data splitting processing on the original document source data according to the document data splitting strategy, and then the target document source data, operation type information of the target document source data and the number of operations on the target document source data included in the log record data are associated and stored to build a document data processing model.
[0097] Optionally, after constructing the document data processing model based on the log record data, it may also include: responding to the tracing instruction of the target query document, determining the original document information corresponding to the target query document; querying the document data processing model based on the original document information to obtain the processing process data of the target query document; generating a target document traceability table based on the processing process data of the target query document and displaying it.
[0098] The target query document may be a document that the user wants to trace, such as an electronic invoice or a value-added tax invoice that has been issued. The traceability instruction may be an instruction issued according to the user's traceability request, and is used to trace the electronic invoice or the value-added tax invoice that has been issued, and obtain the generation process of the electronic invoice or the value-added tax invoice that has been issued.
[0099] Among them, the target document traceability table can be a generation process table of an already issued electronic invoice or value-added tax invoice, which is used to display the generation process of the already issued electronic invoice or value-added tax invoice.
[0100] For example, Figure 3 The target processing document data traceability diagram for backtracing the transaction flow corresponding to the target processing document data according to the embodiment of the present invention is as follows: Figure 3 As shown in the figure, an operation log is recorded for each split or merge operation. When a transaction flow is split, the corresponding relationship data between the multiple newly generated transaction flows and the source flows, as well as the operation type and the number of operations on the flow are recorded. When a transaction flow is merged, the corresponding relationship between the newly generated transaction flow and the multiple source flows and the operation type are recorded. However, in the merge operation scenario, when merging the number of operations recorded by the newly generated transaction flow, the number of operations will be calculated separately for different merged source flows, such as Figure 3 The number of operations of the merged source transactions 2-3 and 2-1 in 3-1 is 1 and 2 respectively. This is because the transaction transaction 2-3 is participating in the merge operation for the first time, while the transaction transaction 2-1 has been split once before, so the number of operations is 2.
[0101] According to the operation log data recorded in the process of splitting and merging transaction flow, we can trace back all the related transaction flow that participated in the operation through the tree data structure according to any final transaction flow, and then build a document data processing model. By recursively associating the relationship between trade_id and parent_id and controlling the number of recursions, we can find the transaction flow of any node at any level in the model.
[0102] At the same time, according to the recorded operation log data, the final state data of any operation can be traced back arbitrarily. According to trade_id, search the operation type and source transaction flow in the log data. If it is a merge operation, delete the final state flow that needs to be traced back, and then search in the intermediate state transaction flow retention data according to the multiple source flow IDs queried, restore the found intermediate state transaction flow to the final state data, and then trace back the final state transaction flow data. If the operation type is split, search the parent_id in the log data according to trade_id, and then search for the child transaction flow generated by all operations according to parent_id, so that all the same-level transaction flows corresponding to the current trade_id can be queried. Determine whether all the same-level transaction flows have been subjected to subsequent operations. If no other operations have been performed, you can backtrack. If any of the same-level transaction flows have been subjected to other operations, backtracking is not allowed to prevent the destruction of the entire operation tree structure.
[0103] Among them, it should be noted that Figure 3Each circle in the figure represents a transaction flow or the result of processing a transaction flow; opt_type is the operation type, 1 represents a split operation, and 2 represents a merge operation; the number in the circle can be used to mark the level of the transaction flow in the process of splitting and merging the transaction flow; after processing the transaction flow data, the intermediate data and the final data will be saved separately to achieve the purpose of isolating the intermediate data and the final data; the final data generated in the splitting and merging process can be used to issue the final electronic invoice or value-added tax invoice.
[0104] For example, Figure 4 The target processing document data tracing diagram is a diagram for tracing back the transaction flow corresponding to the target processing document data in an embodiment of the present invention, such as Figure 4 As shown, after querying the processing data of the document according to the target, the final transaction flow that meets the actual needs can be obtained after various splitting, merging, and mixing operations, which can be used to issue documents such as value-added tax invoices or electronic invoices. Figure 4 It is assumed that VAT invoices or electronic invoices are issued according to transaction flows 4-1, 4-2, and 4-3 respectively. If the transaction flow amount and commodity type meet the invoicing requirements, the final transaction flow can be directly associated to issue the invoice. For example, when the invoice is associated with transaction flow 4-1, the association relationship data between the transaction flow and the invoice will be recorded during the invoice issuance process. At the same time, the business information in transaction flow 4-1 can be noted in the notes of the invoice, such as order number, transaction time, etc. In some special invoicing scenarios, users issue invoices according to the final transaction flow 4-1, and note that the source flow information of the previous level or multiple levels needs to be noted. In this scenario, all source flows at any level can be found through the transaction flow backtracking search method and noted in the notes column of the invoice.
[0105] After the invoice is issued, most order systems and tax systems have corresponding query demand scenarios. The order system will need to query the issued invoice information based on the transaction order flow, for example, the customer needs to query and download the invoice file based on the order. The tax system needs to query and verify whether the transaction amount in the business system is consistent with the amount in the tax system based on the invoice information. Based on the association relationship data between the invoice code and number recorded during the invoicing process and the transaction flow ID, combined with the transaction flow backtracking search function, this demand can be quickly realized.
[0106] The technical solution of the embodiment of the present invention can improve the recognition and accuracy of the data in the document, facilitate the statistics of the data in the document, meet the user's invoicing needs, and take the document's restrictions into consideration, thereby issuing a document that meets the user's triggered document processing demand information and preset document processing rule information. By constructing a document data processing model, when the user's tracing instructions are monitored, the document generation process is displayed, which is conducive to data tracing processing and convenient for the statistics and management of document data.
[0107] Embodiment 3
[0108] Figure 5 This is a schematic diagram of the structure of a document data processing device provided in Embodiment 3 of the present invention. Figure 5 As shown, the device may include: a data acquisition module 310 , a document data disassembly strategy generation module 320 and a document data disassembly module 330 .
[0109] The data acquisition module 310 is used to acquire the original document source data and the current document splitting reference data.
[0110] The document data splitting and combining strategy generating module 320 is used to generate a document data splitting and combining strategy matching the original document source data according to the current document splitting and combining reference data.
[0111] The document data splitting module 330 is used to perform data splitting processing on the original document source data according to the document data splitting strategy to obtain target processed document data.
[0112] Furthermore, the data acquisition module 310 is specifically used to: query historical form records to obtain original document source data that meets preset conditions in historical form records; obtain document processing requirement information and preset document processing rule information triggered by the user as reference data for current document splitting and merging.
[0113] Furthermore, the document data splitting strategy generation module 320 is specifically used to: generate a first document data splitting strategy that matches the original document source data according to the document processing demand information triggered by the user; when it is determined that the first document data splitting strategy meets the preset document processing rule information, use the first document data splitting strategy as the document data splitting strategy that matches the original document source data; or when it is determined that the second document data splitting strategy does not meet the preset document processing rule information, integrate the first document data splitting strategy according to the preset document processing rule information to obtain the second document data splitting strategy; use the second document data splitting strategy as the document data splitting strategy that matches the original document source data.
[0114] The document data splitting and merging strategy may include a strategy for splitting and / or merging the original document source data at least once.
[0115] Furthermore, the document data splitting module 330 is specifically used to: when it is determined that the first document data splitting strategy conforms to the preset document processing rule information, perform data splitting processing on the original document source data according to the first document data splitting strategy to obtain target processing document data; when it is determined that the first document data splitting strategy does not conform to the preset document processing rule information, perform data splitting processing on the original document source data according to the second document data splitting strategy to obtain target processing document data.
[0116] Optionally, the original document source data may include order transaction data. Accordingly, the device may further include: an invoice data generation module, which is used to perform data splitting processing on the original document source data according to the document data splitting strategy, and after obtaining the target processed document data, establish an association relationship between the transaction order and the transaction amount in the order transaction data; and generate invoice data for the transaction order according to the order transaction data and the association relationship between the transaction order and the transaction amount in the order transaction data.
[0117] Furthermore, the device may also include: a document data processing model construction module, which is used to obtain log record data of data splitting processing on the original document source data according to the document data splitting strategy after obtaining the target processed document data; wherein the log record data may include the target document source data, the operation type information of the target document source data and the number of operations of the target document source data; and construct a document data processing model based on the log record data.
[0118] Furthermore, the device may also include: an invoice tracing module, which is used to determine the original document information corresponding to the target query document in response to the tracing instruction of the target query document after building a document data processing model based on the log record data; query the document data processing model based on the original document information to obtain the processing process data of the target query document; generate a target document traceability table based on the processing process data of the target query document and display it.
[0119] The document data processing device provided in the embodiment of the present invention can execute the document data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0120] Embodiment 4
[0121] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device 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 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, 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 examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0122] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0123] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0124] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a document data processing method.
[0125] In some embodiments, the document data processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the document data processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the document data processing method in any other appropriate manner (e.g., by means of firmware).
[0126] Various implementations 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), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0127] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0128] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.
[0129] To provide interaction with a user, the systems and techniques described herein may 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0130] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0131] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0132] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0133] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A document data processing method, characterized in that: include: Obtain the original document source data and the current document split reference data; Generate a document data splitting strategy matching the original document source data according to the current document splitting reference data; Perform data splitting processing on the original document source data according to the document data splitting strategy to obtain target processed document data; Acquire log record data of data splitting processing on the original document source data according to the document data splitting strategy; wherein the log record data includes target document source data, operation type information of the target document source data, and operation times of the target document source data; A document data processing model is constructed based on the log record data.
2. The method according to claim 1, characterized in that The obtaining of original document source data and current document splitting reference data includes: Query historical form records to obtain original document source data that meets preset conditions in the historical form records; The document processing requirement information and preset document processing rule information triggered by the user are obtained as reference data for the current document splitting and combining.
3. The method according to claim 2, characterized in that The step of generating a document data splitting strategy matching the original document source data according to the current document splitting reference data includes: Generate a first document data splitting and combining strategy matching the original document source data according to the document processing requirement information triggered by the user; In the case where it is determined that the first document data splitting strategy conforms to the preset document processing rule information, the first document data splitting strategy is used as the document data splitting strategy for matching the original document source data; or In the case where it is determined that the first document data splitting strategy does not conform to the preset document processing rule information, integrating the first document data splitting strategy according to the preset document processing rule information to obtain a second document data splitting strategy; The second document data splitting strategy is used as the document data splitting strategy for matching the original document source data.
4. The method according to claim 3, characterized in that The document data splitting and combining strategy includes a strategy for splitting and / or combining the original document source data at least once; the step of performing data splitting and combining processing on the original document source data according to the document data splitting and combining strategy to obtain target processed document data includes: When it is determined that the first document data splitting strategy conforms to the preset document processing rule information, the original document source data is subjected to data splitting processing according to the first document data splitting strategy to obtain target processing document data; When it is determined that the first document data splitting strategy does not conform to the preset document processing rule information, the original document source data is processed according to the second document data splitting strategy to obtain target processing document data.
5. The method according to claim 1, characterized in that The original document source data includes order transaction data; After the original document source data is subjected to data splitting processing according to the document data splitting strategy to obtain target processed document data, the method further includes: Establishing an association relationship between the transaction order and the transaction amount in the order transaction data; Invoice data of the transaction order is generated according to the order transaction data and the association relationship between the transaction order and the transaction amount in the order transaction data.
6. The method according to claim 1, characterized in that After the document data processing model is constructed according to the log record data, the method further includes: In response to a tracing instruction of a target query document, determining original document information corresponding to the target query document; Querying the document data processing model according to the original document information to obtain the processing process data of the target query document; A target document traceability table is generated and displayed based on the processing data of the target query document.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the document data processing method according to any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the document data processing method according to any one of claims 1 to 6 when executed.
9. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the document data processing method according to any one of claims 1 to 6.