Document processing method, computer equipment and computer storage medium

By establishing a basic document body and an automatic update mechanism, the problem of synchronous updates of business-related documents is solved, resource saving and performance improvement are achieved, and the development process is simplified.

CN118779329APending Publication Date: 2024-10-15KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410878186.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the business processing process, multiple business-related documents need to be frequently synchronized and updated, resulting in a waste of database resources and server resources, reducing system performance, and increasing the workload and cost of program development.

Method used

By establishing a basic document body that contains common fields and data between multiple documents, if the common fields of any target document change, the corresponding field data in other target documents will be automatically updated, reducing the amount of document update operations and saving money. resources to improve performance.

Benefits of technology

It realizes the automatic synchronization update of multiple documents with business correlation, reduces database resource consumption, reduces server burden, simplifies program development, and improves system performance and development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779329A_ABST
    Figure CN118779329A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a receipt processing method, computer equipment and a computer storage medium. The method comprises the steps that a computer device obtains a basic receipt body, the basic receipt body comprises common fields among a plurality of target receipts with business association, field data of the common fields in the basic receipt body are obtained, and the target receipts are generated according to the field data of the common fields. And if a change operation on the common field of any target document is received, updating field data of corresponding fields in other target documents according to field data obtained based on the change operation in the basic document body. Therefore, only the common fields and the field data of the common fields in the basic receipt body need to be maintained, the updating operation of the common fields and the field data of the common fields can be automatically synchronized to a plurality of receipts with business association, and the receipts do not need to be updated one by one, so that the receipt updating operation can be further reduced, the consumption of database resources and server resources can be saved, and the efficiency of updating the receipts can be improved. The product performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of business processing, and specifically to a document processing method, a computer device, and a computer storage medium. Background Art

[0002] Business documents include document header and document body. The document header is used to record the basic information of the document, such as document number, document creator, transaction date, total amount, etc. The document body, also called entry, is the part that records the specific content of the document, and is often used to record detailed information such as transactions, income and expenditure, and goods in and out.

[0003] In the business processing flow, in order to ensure business consistency, data synchronization is often required between multiple business-related documents. That is, when the document body of a document generates data updates such as addition, deletion, and modification, the document body of the document with which it has business associations must also update data synchronously to ensure that the business information displayed by multiple business-related documents at different business nodes is consistent, avoiding differences or contradictions in business information.

[0004] However, when there are business-related documents, after completing operations such as addition, deletion, and modification on one document, the same operation must be performed simultaneously on another document, that is, the same operation is performed multiple times. This will also occupy more database resources and consume more server resources, reducing system product performance. Summary of the invention

[0005] The embodiments of the present application provide a document processing method, a computer device, and a computer storage medium for conveniently and quickly realizing data linkage and synchronous update of multiple business-related documents.

[0006] A first aspect of an embodiment of the present application provides a document processing method, the method comprising:

[0007] Establishing a basic document body, wherein the basic document body includes common fields among a plurality of target documents having business associations;

[0008] Acquire the field data of the common fields in the basic document body, and generate the target document according to the field data of the common fields;

[0009] If a change operation is received for a common field of any of the target documents, the field data of the corresponding fields in other target documents are updated according to the field data in the basic document body obtained based on the change operation.

[0010] A second aspect of an embodiment of the present application provides a computer device, the computer device comprising:

[0011] An acquisition unit, used for establishing a basic document body, wherein the basic document body includes common fields among a plurality of target documents having business associations;

[0012] A generating unit, used for acquiring the field data of the common fields in the basic document body, and generating the target document according to the field data of the common fields;

[0013] The updating unit is configured to update the field data of the corresponding fields in other target documents according to the field data in the basic document body obtained based on the change operation if a change operation is received for the common fields of any of the target documents.

[0014] A third aspect of an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method of the first aspect when executing the computer program.

[0015] A fourth aspect of an embodiment of the present application provides a computer storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the method of the first aspect.

[0016] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device executes the method of the first aspect.

[0017] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0018] The computer device obtains the basic document body, which includes the common fields between multiple target documents with business associations, obtains the field data of the common fields in the basic document body, and generates the target document according to the field data of the common fields. If a change operation is received for the common fields of any target document, the field data of the corresponding fields in other target documents are updated according to the field data obtained based on the change operation in the basic document body. Therefore, only the common fields and their field data in the basic document body need to be maintained, and the document information of multiple documents with business associations can be automatically updated along with the update of the common fields and their field data. The update operation of the common fields and their field data will be automatically synchronized to the multiple documents with business associations, without the need to update each document one by one, which can further reduce the document update operation, save the consumption of database resources and server resources, and improve product performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a schematic diagram of the network framework in the embodiment of the present application;

[0020] Figure 2A flowchart of a document processing method in an embodiment of the present application;

[0021] Figure 3 This is another flow chart of the document processing method in the embodiment of the present application;

[0022] Figure 4 A schematic diagram of a display method of a basic document body of a table structure in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of an application scenario in which a notification form and a claim form are associated in an embodiment of the present application;

[0024] Figure 6 This is a schematic diagram of the structure of a computer device in an embodiment of the present application;

[0025] Figure 7 This is another structural diagram of a computer device in an embodiment of the present application. DETAILED DESCRIPTION

[0026] The embodiments of the present application provide a document processing method, a computer device, and a computer storage medium for conveniently and quickly realizing data linkage and synchronous update of multiple business-related documents.

[0027] See also Figure 1 In the embodiment of the present application, the network framework includes:

[0028] The service server 100 and the terminal cluster; the terminal cluster may include: terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n and other terminal devices.

[0029] The business server 100 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud database, cloud service, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and big data and artificial intelligence platform. The terminal device (including terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n) may be a smart phone, tablet computer, laptop computer, desktop computer, PDA, mobile internet device (MID), wearable device (such as smart watch, smart bracelet, etc.), smart computer, smart car and other smart terminals.

[0030] Among them, the business server 100 can establish a communication connection with each terminal device in the terminal cluster, and a communication connection can also be established between each terminal device in the terminal cluster. In other words, the business server 100 can establish a communication connection with each terminal device in the terminal device 200a, terminal device 200b, terminal device 200c, ..., terminal device 200n. For example, a communication connection can be established between the terminal device 200a and the business server 100. A communication connection can be established between the terminal device 200a and the terminal device 200b, and a communication connection can also be established between the terminal device 200a and the terminal device 200c. Among them, the above-mentioned communication connection does not limit the connection method, and can be directly or indirectly connected through a wired communication method, or can be directly or indirectly connected through a wireless communication method, etc., which can be determined according to the actual application scenario, and this application is not limited here.

[0031] It should be understood that Figure 1 Each terminal device in the terminal cluster shown can be installed with an application client. When the application client runs in each terminal device, it can interact with the business server 100 respectively, so that the business server 100 can receive business data from each terminal device (such as financial management data uploaded by the user through the terminal device). Among them, the application client can be an application client with the function of displaying text, images, audio and video, such as a financial management application, an enterprise affairs management application, a browser application, a social application, an instant messaging application, a live broadcast application, a game application, a short video application, a video application, a music application, a shopping application, a novel application, a payment application, etc., which can be determined according to the actual application scenario requirements and is not limited here. Among them, the application client can be an independent client or an embedded sub-client integrated in a client (such as a financial management client, an enterprise affairs management client, etc.), which can be determined according to the actual application scenario and is not limited here.

[0032] The embodiments of the present application can be applied to the scenario of ERP system. ERP system is Enterprise Resource Planning (Enterprise Resource Planning), which is an integrated management software system. It is a comprehensive management tool and information system software. ERP system usually includes many modules and functions, such as financial accounting, supply chain management, production management, sales and marketing, human resource management, etc. By integrating various functions and processes, it provides comprehensive management and decision-making support for enterprises, aiming to help enterprises integrate, optimize and manage various internal resources of the enterprise, help enterprises to share data and coordinate processes across departments, improve business efficiency, optimize resource utilization, improve product quality, optimize supply chain and customer relationships, etc.

[0033] The backend table is a database table, which is an object used to store document data. A database table consists of rows and columns. Rows represent records, and columns represent fields. Each column in the table is designed to store a certain type of information (such as date, amount, or number), and each row in the table is a stored data record.

[0034] In the business processing flow, in order to ensure business consistency, data synchronization is often required between multiple business-related documents. That is, when the document body of a document generates data updates such as addition, deletion, and modification, the document body of the document with which it has business associations must also update data synchronously to ensure that the business information displayed by multiple business-related documents at different business nodes is consistent, avoiding differences or contradictions in business information.

[0035] For example, the background structure of a notification is a document header table A associated with a document body table C; a claim form is a document header table B associated with a document body table D, and the document body information of different documents is stored in their respective background tables. When the notification form A and the claim form B are linked and synchronized, it is necessary to re-operate the data addition, deletion or modification in the document body table C according to the business data added, deleted or modified in the document body table D, and vice versa, to ensure that the business represented by the data recorded in the notification form and the claim form matches.

[0036] Among them, the document header is a part of the document. A document has one and only one document header. The document header usually records the basic information of the document, such as the document number, the person who made the document, the transaction date and the total amount. The document header and the document body together constitute a document. The notification is a business document in the fund management system. When claiming a receipt, the financial staff will publish the transaction details of the receipt to be claimed, generate a notification, and inform the corresponding business staff to claim it. The claiming form is a business document in the fund management system. When claiming a receipt, when the business staff receives the notification, they will claim the notification and claim the receipt transaction details to the corresponding sales order. A receipt transaction detail may be claimed by multiple business staff. In the scenario where multiple people claim, a claiming form will be generated for each claim.

[0037] Among them, payment claim means that for companies that collect payment before shipping, they need to promptly and accurately claim the payment transaction details to the corresponding sales order, and then trigger the shipment of goods / provision of services.

[0038] However, to achieve synchronous update of multiple documents with business associations, a large amount of code needs to be written to handle the operational logic of data linkage update between multiple documents with business associations. This brings a large workload to program development, consumes a large amount of development resources, and increases the development cost of the program.

[0039] Secondly, when there are business-related documents, after completing operations such as addition, deletion, and modification on one document, the same operation must be performed simultaneously on another document, that is, the same operation is performed multiple times. This will also take up more database resources and consume more server resources, reducing the performance of the ERP product.

[0040] Furthermore, since there are business-related documents with similar fields and field data, for example, there are business-related documents A and B, the document body of document A occupies a database table in the background, and the document body of document B occupies another database table in the background, but the data information stored in the two database tables is similar, which causes database data redundancy and increases the data storage burden of the database.

[0041] In order to solve the above technical problems, a document processing method of the embodiment of the present application is proposed. Figure 1 The document processing method in the embodiment of the present application is described in the network framework of:

[0042] See also Figure 2 In the embodiment of the present application, one embodiment of the document processing method includes:

[0043] 201. Establish a basic document body, wherein the basic document body includes common fields among a plurality of target documents having business associations;

[0044] The method of this embodiment can be applied to a computer device, which can be Figure 1 The business server 100 or each terminal device in the network framework shown. The computer device can deploy an ERP system or ERP product to obtain business data input or uploaded by the user based on the ERP system or ERP product, and execute the method of this embodiment based on the ERP system or ERP product.

[0045] The computer device can obtain the basic document body, which indicates the business association between multiple documents. The business association can be specifically manifested as the existence of common fields and their field data. For example, the notification document body stores the document information of accounts receivable and payable, and the claim document body stores the document information of accounts receivable and payable. Then, both the notification and the claim contain the document information of accounts receivable and payable, and there is a business association between the two. In addition to the business association between the notification and the claim, there may be a business association between any other multiple documents, such as the business association between the purchase order and the warehouse entry order, the business association between the sales order and the warehouse outbound order, and so on. This embodiment does not limit the document types of the multiple documents with business associations.

[0046] Among them, the document body is usually also called an entry, which is the part that records the specific content of the document. The document body is often used to record detailed information such as transactions, income and expenditure, and the entry and exit of goods. The relationship between the document header and the document body is one-to-many, and one document header corresponds to multiple document bodies. It is worth noting that the one-to-many relationship is one-to-many business information, not that the background table of a document header corresponds to multiple document body tables. The document body information of a certain document is usually stored in a database table in the background, and the document header information of a document corresponds to multiple detailed data in this database table.

[0047] The common fields among multiple documents in the basic document body can be obtained from the similar document bodies among multiple documents, that is, the similar document bodies among multiple documents record the common fields or the same fields among multiple documents, and the common fields among multiple documents can be determined based on the common fields or the same fields among multiple documents. Among them, similar document bodies refer to document bodies that store similar information, for example, the notification document body stores document information such as accounts receivable and payable, and the claim document body also stores document information such as accounts receivable and payable, and the two document bodies have most of the same fields in the background database table.

[0048] The basic document body can be manually set by the user, or obtained by analyzing the business data generated by the user's daily business activities by the computer device, for example, analyzing the common fields or the same fields in the document bodies of the notification form and the claim form, and establishing the basic document body based on the common fields or the same fields in the document bodies of the two. This embodiment does not limit the way in which the computer device obtains the basic document body.

[0049] 202. Acquire the field data of the common fields in the basic document body, and generate the target document according to the field data of the common fields;

[0050] Since multiple business-related documents contain the same set of common fields and their field data, multiple business-related target documents can be rendered and displayed based on the common fields and their field data contained in the two. For example, if document A and document B are business-related, their common fields and their field data can be rendered and displayed on their document pages to show the specific information of the documents to the user.

[0051] 203. If a change operation is received for a common field of any of the target documents, update the field data of the corresponding fields in other target documents according to the field data in the basic document body obtained based on the change operation;

[0052] The user can change the common field and its field data in any target document, and the computer device will change and update the common field and its field data changed by the user in the basic document body according to the change operation input by the user, such as adding fields, deleting fields, or modifying field values, etc. The computer device can obtain the basic document body obtained after the user completes the data update operation on the common field and its field data, and update the field data of the corresponding fields in other target documents according to the field data obtained in the basic document body based on the change operation.

[0053] For example, when the common fields and their field data are updated, the computer device can directly render and display the corresponding multiple business-related documents according to the updated common fields and their field data, so as to achieve the synchronous update of the document information of multiple documents. For example, when the common fields and their field data corresponding to the notification form and the claim form are updated, the notification form and the claim form can be directly rendered and displayed according to the updated common fields and their field data, so as to achieve the synchronous update of the notification form and the claim form, without the need to update the notification form and the claim form separately one by one.

[0054] In this embodiment, the computer device obtains a basic document body, which includes common fields between multiple target documents with business associations, obtains field data of the common fields in the basic document body, and generates a target document based on the field data of the common fields. If a change operation is received for a common field of any target document, the field data of the corresponding fields in other target documents are updated based on the field data obtained based on the change operation in the basic document body. Therefore, it is only necessary to maintain the common fields and their field data in the basic document body, and only the common fields and their field data can be updated. Then, the update operation will be automatically synchronized to multiple documents with business associations, without the need to update each document one by one, which can further reduce the document update operation, save the consumption of database resources and server resources, and improve product performance.

[0055] Secondly, the document information of multiple documents with business associations can be automatically updated along with the update of the common fields and their field data. There is no need to write a large amount of code to handle the operational logic of data linkage update between multiple documents with business associations, which greatly reduces the workload of program development and reduces the development cost of program products.

[0056] Furthermore, since multiple business-related documents are generated based on the same basic document body, and the basic document body only corresponds to one database table, that is, corresponds to one background table, the document bodies of multiple business-related documents can share the same database table, that is, contain the same set of common fields and their field data. Compared with the previous situation where each document body occupied a database table in the background, the number of background database tables can be reduced, data redundancy can be reduced, and the data storage burden of the database can be reduced.

[0057] In the following, Figure 2 Based on the embodiment shown, the embodiment of the present application is further described in detail. Figure 3 Another embodiment of the document processing method in the embodiment of the present application includes:

[0058] 301. Establish a basic document body, where the basic document body includes common fields among a plurality of target documents having business associations;

[0059] In a preferred implementation of this embodiment, when obtaining the basic document body, the common fields among multiple business-related documents can be determined, and each common field and its field value can be recorded to form the common field and its field data. The field value of each common field among multiple business-related documents can be input by the user or obtained by the computer device from the business data stored in the ERP system or ERP product, which is not limited here.

[0060] After obtaining the common fields and their field data, the common fields and their field data are associated with the document identifiers of the above-mentioned multiple target documents with business associations to obtain the basic document body. The document identifier is used to distinguish and identify the information of a unique document, such as the primary key of the document header, the document name, the document serial number, the document ID and other identification information.

[0061] Therefore, by recording the same fields and their field values ​​of multiple documents with business associations and forming a basic document body based on the document identifier, the specific business association matters between the multiple documents with business associations can be clearly displayed, which is convenient for document rendering and display. Business management personnel can also quickly obtain business association matters between multiple documents through the basic document body.

[0062] The basic document body can be presented in any form. For example, it can be presented in the form of detailed flow, such as a flow record in the form of "field A-field value field B-field value ... # associated document identifier A and document identifier B" or similar forms; it can also be presented in the form of a table, in which case the data structure of the basic document body is a table structure.

[0063] If the record is a table, the field identifier of each common field among multiple target documents with business associations can be recorded as a column identifier in the table structure of the basic document body, and the field value can be recorded in the column where the column identifier is located, forming a common field and its field data. Alternatively, the field identifier of each common field among multiple documents with business associations can be recorded as a row identifier in the table structure of the basic document body, and the field value can be recorded in the row where the row identifier is located, forming a common field and its field data.

[0064] Among them, the column identifier is an identifier used to identify and distinguish a unique table column. In relevant schemes, the column identifier can be composed of numbers, letters, text, etc. In this embodiment, the column identifier can be a field identifier, such as the field identifier of the "amount", "quantity", "date", "currency", "exchange rate" and other fields, as the column identifier of the table column.

[0065] For example, Figure 4 It is a display method of the basic document body of the table structure. In this table structure, the field identifier of each common field between multiple business-related documents is used as the column identifier of the table structure. For example, the column identifier of column 1 or the column identifier of column 2 can be represented by the field identifier of fields such as "amount", "quantity", "date", "currency", "exchange rate", etc. Then, the field value of each field can be recorded in the corresponding table column accordingly. For example, the table column with the column identifier of "amount" can record the specific numerical value of the amount; the table column with the column identifier of "currency" can record the specific value of the currency, and so on.

[0066] If the field value of each common field among multiple business-related documents is recorded as a column of the table structure, then a row of the table structure includes the field values ​​of multiple common fields among multiple business-related documents, and this row of data forms a set of common fields and their field data. At the same time, there is a separate column in the table structure for recording multiple document IDs associated with each set of common fields and their field data. Multiple document IDs associated with each set of common fields and their field data can be in the same row as the common fields and their field data associated with them, such as Figure 4 As shown. This means that the multiple documents corresponding to the multiple document identifiers contain the common fields and field data of the row, that is, the multiple documents have business associations.

[0067] For example, Figure 4In the first row of the table structure shown, multiple documents corresponding to document identifiers A1 and B1 all contain the common fields and their field data in the row; similarly, it can be seen that multiple documents corresponding to document identifiers A1 and B2 all contain the common fields and their field data in the row, multiple documents corresponding to document identifiers A1 and B3 all contain the common fields and their field data in the row, and multiple documents corresponding to document identifiers A1 and B4 all contain the common fields and their field data in the row.

[0068] Therefore, by displaying the basic document body in a table structure, the common fields between each group of business-related documents can be clearly and unambiguously obtained, and the business-related matters between multiple documents can be conveniently and quickly obtained without writing complex code to execute the logic of obtaining the basic document body, thereby reducing the amount of code in the program product and improving the performance and practicality of the product.

[0069] 302. Acquire the field data of the common fields in the basic document body, and generate the target document according to the field data of the common fields;

[0070] In this embodiment, the basic document body is also used to represent the first document identifier and the second document identifier associated with the common field and its field data, and there is a business association between the document corresponding to the first document identifier and the document corresponding to the second document identifier. When rendering and displaying multiple documents with business associations based on the common fields and their field data, multiple document identifiers associated with the common fields and their field data can be determined based on the association relationship between the common fields and their field data and the document identifiers of multiple target documents with business associations, and the common fields and their field data are rendered and displayed on the document page corresponding to each document identifier, thereby obtaining multiple target documents.

[0071] For example, each common field and its field value among multiple business-related documents can be rendered and displayed on the document page of the document corresponding to the first document identifier; and each common field and its field value among multiple business-related documents can be rendered and displayed on the document page of the document corresponding to the second document identifier. Therefore, the user can view the document information of the document corresponding to the first document identifier and the document information of the document corresponding to the second document identifier.

[0072] For example, the basic document body includes a set of common fields and their field data and their associated notification form identifier and claim form identifier. The set of common fields and their field data can be rendered and displayed on the document page of the notification form corresponding to the notification form identifier, and the set of common fields and their field data can be rendered and displayed on the document page of the claim form corresponding to the claim form identifier, so that the user can view the document information of the notification form and the claim form.

[0073] Therefore, by associating document identification, it is possible to quickly determine documents with business associations, as well as common fields and their field data and documents that need to be rendered, thereby improving the rendering speed of documents and improving the program's response speed to users' document viewing instructions.

[0074] In an application scenario of this embodiment, there are multiple target documents with business associations in the basic document body corresponding to the first type of document and the second type of document. There is a business association between the first type of document and the second type of document, and the second type of document has multiple second document identifiers.

[0075] For example, in Figure 5 In the application scenario where the notification form is associated with the claim form, after the financial staff receives a sum of money, they will push the transaction details of the receipt to the corresponding business staff for claiming, thereby generating a notification form. In the scenario where multiple people claim the payment, since multiple business staff need to claim the transaction details of the payment, for the purpose of data isolation, multiple people cannot make modifications on the same notification form, so a separate claim form needs to be generated for each person when claiming. Therefore, in this application scenario, each set of common fields and their field data in the basic document body is associated with the notification form identifier and one of the multiple claim form identifiers, as shown in Figure 4 As shown, each set of common fields and their field data in the basic document body is associated with A1 (A1 can be, for example, a notification form identifier) ​​and each of B1, B2, B3, and B4 (B1, B2, B3, and B4 can be, for example, claim form identifiers).

[0076] Therefore, there is a business scenario in which a document identifier of a first type of document is associated with multiple document identifiers of a second type of document, which facilitates users to synchronize multiple versions of the second type of document and provides users with more feasible solutions for document business association.

[0077] 303. If a change operation is received for a common field of any of the target documents, update the field data of the corresponding fields in other target documents according to the field data in the basic document body obtained based on the change operation;

[0078] In this embodiment, the field data of the corresponding fields of other target documents are updated according to the change operation. A preferred implementation method may be to update the field data of the target common field in the basic document body according to the change operation, obtain new field data of the target common field, and update the field data belonging to the target common field in other target documents to the above-mentioned new field data, thereby realizing the synchronous update of other target documents based on the basic document body, greatly reducing the workload of users manually updating each target document one by one, and improving the efficiency of document updating.

[0079] In this embodiment, the common fields and their field data include multiple fields and field values ​​corresponding to each field. The common fields and their field data obtained by the computer device after completing the data update operation may be obtained by obtaining the updated common fields and their field data after adding a new field to the common fields and their field data in any target document; and / or, obtaining the updated common fields and their field data after deleting a field from the common fields and their field data in any target document; and / or, obtaining the updated common fields and their field data after changing the field value of a field in the common fields and their field data in any target document. This embodiment does not limit the update method of the common fields and their field data.

[0080] The user's change operation on any target document may include a change operation on the common fields of multiple second-type documents. Therefore, when rendering and displaying multiple business-related documents based on the updated common fields and their field data, a preferred implementation is to summarize the field data of multiple second-type documents obtained based on the change operation in the basic document body to obtain summary data, and update the field data of the corresponding fields in the first-type document based on the summary data.

[0081] Among them, the field data of the corresponding fields in the first type of document are updated based on the summary data. The updates of each common field and its field data in the basic document body can be displayed in the first type of document, or the updated data obtained by updating each common field and its field data in the basic document body are processed to obtain the data processing result, and the data processing result is displayed in the first type of document. There is no limitation here.

[0082] For example, in Figure 5 In the application scenario shown in which the notification form is associated with the claim form, after multiple people have claimed the items, all the entries of the claim forms will be automatically summarized and displayed on the notification form. In terms of logical processing, the updated data of the common fields and their field data associated with all the claim forms are summarized and displayed on the document page of the notification form, and the notification form displays the entries of all the claim forms. After the financial staff confirms that there are no problems with the entries claimed on the notification form, they can use the notification form to generate the receipt.

[0083] Therefore, in this business process, the document bodies associated with the notification and the claim form both store the common receivables information. The related solution is that the two documents are associated with their own document bodies, which increases the product development cost, wastes database resources, and reduces product performance. However, this embodiment can associate the notification and claim form with similar document bodies to the same document body (i.e., the basic document body described in this embodiment), and the update of the notification and claim form can be performed only in the same document body associated with the two, thereby achieving the purpose of reducing product development costs and improving product performance.

[0084] The document processing method in the embodiment of the present application is described above. The computer device in the embodiment of the present application is described below. Figure 6 In the embodiment of the present application, one embodiment of the computer device includes:

[0085] An acquisition unit, used for establishing a basic document body, wherein the basic document body includes common fields among a plurality of target documents having business associations;

[0086] A generating unit, used for acquiring the field data of the common fields in the basic document body, and generating the target document according to the field data of the common fields;

[0087] The updating unit is configured to update the field data of the corresponding fields in other target documents according to the field data in the basic document body obtained based on the change operation if a change operation is received for the common fields of any of the target documents.

[0088] In a preferred implementation of this embodiment, the updating unit is specifically used for:

[0089] Update the field data of the target common field in the basic document body according to the change operation to obtain new field data of the target common field;

[0090] The field data of the target common fields in the other target documents are updated to the new field data.

[0091] In a preferred implementation manner of this embodiment, the generating unit is specifically used for:

[0092] Determining, based on the basic document body, the common fields among the multiple target documents having business associations;

[0093] Recording each of the common fields and their field values ​​in the basic document body to obtain field data of the common fields;

[0094] An association relationship is established between the common fields and their field data and the document identifiers of the multiple target documents with business association.

[0095] In a preferred implementation manner of this embodiment, the generating unit is specifically used for:

[0096] Determine the multiple document identifiers associated with the common fields and their field data according to the association relationship;

[0097] The common fields and their field data are rendered and displayed on the document page corresponding to each document identifier to obtain a plurality of target documents.

[0098] In a preferred implementation of this embodiment, the data structure of the basic document body is a table structure;

[0099] The generation unit is specifically used for:

[0100] Record the field identifier of each of the common fields as a column identifier in the table structure of the basic document body, and record its field value in the column where the column identifier is located, to obtain the field data of the common field; or

[0101] The field identifier of each of the common fields is recorded as a row identifier in the table structure of the basic document body, and its field value is recorded in the row where the row identifier is located, so as to obtain the field data of the common fields.

[0102] In a preferred implementation of this embodiment, the multiple target documents with business associations correspond to first-type documents and second-type documents; the change operation includes a change operation on a common field of multiple second-type documents;

[0103] The update unit is specifically used to:

[0104] Summarizing the field data of multiple second-type documents obtained based on the change operation in the basic document body to obtain summary data;

[0105] The field data of the corresponding fields in the first type of document are updated based on the summary data.

[0106] In a preferred implementation of this embodiment, the field data obtained based on the change operation includes:

[0107] Field data obtained after adding the common field to any of the target documents;

[0108] and / or,

[0109] Field data obtained after deleting the common fields from any of the target documents;

[0110] and / or,

[0111] The field data obtained after changing the field value of the common field in any of the target documents.

[0112] In this embodiment, the operations performed by each unit in the computer device are the same as those described above. Figures 2 to 3 The description in the illustrated embodiment is similar and will not be repeated here.

[0113] In this embodiment, the computer device obtains a basic document body, which includes common fields between multiple target documents with business associations, obtains field data of the common fields in the basic document body, and generates a target document based on the field data of the common fields. If a change operation on the common fields of any target document is received, the field data of the corresponding fields in other target documents are updated based on the field data obtained based on the change operation in the basic document body. Therefore, only the common fields and their field data in the basic document body need to be maintained, and the document information of multiple documents with business associations can be automatically updated following the update of the common fields and their field data, without having to write a large amount of code to process the operation logic of data linkage update between multiple documents with business associations, which greatly reduces the workload of program development and reduces the development cost of program products.

[0114] The computer device in the embodiment of the present application is described below. Figure 7 In the embodiment of the present application, one embodiment of the computer device includes:

[0115] The computer device 700 may include one or more central processing units (CPU) 701 and a memory 705 , wherein the memory 705 stores one or more application programs or data.

[0116] The memory 705 may be a volatile storage or a persistent storage. The program stored in the memory 705 may include one or more modules, each of which may include a series of instruction operations in the computer device. Furthermore, the central processing unit 701 may be configured to communicate with the memory 705 and execute a series of instruction operations in the memory 705 on the computer device 700.

[0117] The computer device 700 may also include one or more power supplies 702, one or more wired or wireless network interfaces 703, one or more input and output interfaces 704, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0118] The CPU 701 can execute the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment will not be described in detail here.

[0119] The present application also provides a computer storage medium, wherein one embodiment includes: the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment.

[0120] The present application also provides a computer program product, wherein one embodiment includes: when the computer program product is run on a computer device, the computer device executes the aforementioned Figures 2 to 3 The operations performed by the computer device in the illustrated embodiment.

[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0122] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0123] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0124] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0125] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A document processing method, characterized in that: The method comprises: Establishing a basic document body, wherein the basic document body includes common fields among a plurality of target documents having business associations; Acquire the field data of the common fields in the basic document body, and generate the target document according to the field data of the common fields; If a change operation is received for a common field of any of the target documents, the field data of the corresponding fields in other target documents are updated according to the field data in the basic document body obtained based on the change operation.

2. The method according to claim 1, characterized in that The updating of the field data of the corresponding fields in other target documents according to the field data in the basic document body obtained based on the change operation includes: Update the field data of the target common field in the basic document body according to the change operation to obtain new field data of the target common field; The field data of the target common fields in the other target documents are updated to the new field data.

3. The method according to claim 1, characterized in that: The acquiring of the field data of the common fields in the basic document body includes: Determining, based on the basic document body, the common fields among the multiple target documents having business associations; Recording each of the common fields and their field values ​​in the basic document body to obtain field data of the common fields; An association relationship is established between the common fields and their field data and the document identifiers of the multiple target documents with business association.

4. The method according to claim 3, characterized in that The step of generating the target document according to the field data of the common fields includes: Determine the multiple document identifiers associated with the common fields and their field data according to the association relationship; The common fields and their field data are rendered and displayed on the document page corresponding to each document identifier to obtain a plurality of target documents.

5. The method according to claim 3, characterized in that: The data structure of the basic document body is a table structure; The step of recording each of the common fields and their field values ​​in the basic document body to obtain field data of the common fields includes: Record the field identifier of each of the common fields as a column identifier in the table structure of the basic document body, and record its field value in the column where the column identifier is located, to obtain the field data of the common field; or The field identifier of each of the common fields is recorded as a row identifier in the table structure of the basic document body, and its field value is recorded in the row where the row identifier is located, so as to obtain the field data of the common fields.

6. The method according to claim 1, characterized in that The multiple target documents with business associations correspond to first-type documents and second-type documents; the change operation includes a change operation on common fields of multiple second-type documents; The updating of the field data of the corresponding fields in other target documents according to the field data in the basic document body obtained based on the change operation includes: Summarizing the field data of multiple second-type documents obtained based on the change operation in the basic document body to obtain summary data; The field data of the corresponding fields in the first type of document are updated based on the summary data.

7. The method according to any one of claims 1 to 6, characterized in that: The field data obtained based on the change operation includes: Field data obtained after adding the common field to any of the target documents; and / or, Field data obtained after deleting the common fields from any of the target documents; and / or, The field data obtained after the field value of the common field is changed in any of the target documents.

8. A computer device, characterized in that: The computer device comprises: An acquisition unit, used for establishing a basic document body, wherein the basic document body includes common fields among a plurality of target documents having business associations; A generating unit, used for acquiring the field data of the common fields in the basic document body, and generating the target document according to the field data of the common fields; The updating unit is configured to update the field data of the corresponding fields in other target documents according to the field data in the basic document body obtained based on the change operation if a change operation is received for the common fields of any of the target documents.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 7.

11. A computer program product, characterized in that When the computer program product is executed on a computer device, the computer device is caused to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data processing method and system and related equipment

    CN113157712A

  • Operation data processing method and related device

    CN113722341A

  • Report data processing method and device, computer equipment and storage medium

    CN117390011A

  • Document generation method and device, computer equipment and computer readable storage medium

    CN117633313A

  • Method, device, computer device, storage medium for identifying related party transaction

    WO2019056789A1