Document information processing method, device, computer equipment and storage medium

By generating a mapping relationship between document header identification and entry information, and storing document header information and entry information separately, the storage limitation and verification problem of the ERP system when processing a large number of document entries is solved, and accurate and complete data storage is achieved. .

CN112465612BActive Publication Date: 2024-09-06KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011302491.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-19
Publication Date
2024-09-06
Estimated Expiration
2040-11-19

AI Technical Summary

Technical Problem

When the existing ERP system processes a large number of document entries, it is easy to cause storage limitations and the problem of being unable to be reconciled with external system records after splitting and saving.

Method used

By generating a mapping relationship between the document header identifier and the entry information, the document header information and the entry information are stored separately to ensure that the entry information can be stored effectively when there is a large amount of entry information, and to avoid the problems of insufficient memory, data loss or verification discrepancies caused by splitting.

Benefits of technology

It solves the storage limitation problem caused by the large number of document entry lines, ensures the accuracy and completeness of the data, and avoids data loss or external system verification inconsistencies caused by splitting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112465612B
    Figure CN112465612B
Patent Text Reader

Abstract

The present application relates to a document information processing method, device, computer equipment and storage medium. The method comprises: obtaining a document to be processed, wherein the document to be processed comprises document header information and entry information; when the number of entry information of the document to be processed is greater than a threshold, generating a document header identifier of a target document corresponding to the document to be processed; establishing a mapping relationship between the document header identifier and each entry identifier in the entry information, and storing the entry information; generating and storing the document header information of the target document according to the entry information and the document header identifier. The use of this method can solve the problem of limited storage caused by a large number of document entry lines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a document information processing method, apparatus, computer equipment and storage medium. Background Art

[0002] With the development of computer technology, enterprises often use some computer software to make entries for business documents. Some documents need to save millions of entries, or even no upper limit. However, the current ERP (Enterprise Resource Planning) system has an upper limit on the number of entries supported by documents. In the traditional way, when the target document entry data to be generated is large, it will be split into multiple documents for saving. However, if the entry data of some business documents is split and saved, it will not be able to be checked with the records of the external system after the split. For example, many customers now have payments from WeChat or Alipay, and the characteristics of these businesses are small amounts and large quantities. When generating vouchers in the ERP system, it is necessary to summarize the payment information to generate a voucher document, including a huge number of entry lines. If the document is split, it will not correspond to the records of the corresponding bank. Summary of the invention

[0003] Based on this, it is necessary to provide a document information processing method, device, computer equipment and storage medium to address the above technical problems, which can solve the problem of limited storage caused by the large number of document entry lines.

[0004] A document information processing method, the method comprising:

[0005] Obtaining a document to be processed, wherein the document to be processed includes document header information and entry information;

[0006] When the amount of entry information of the to-be-processed document is greater than a threshold, generating a document header identifier of a target document corresponding to the to-be-processed document;

[0007] Establishing a mapping relationship between the document header identifier and each entry identifier in the entry information, and storing the entry information;

[0008] According to the entry information and the document header identifier, the document header information of the target document is generated and stored.

[0009] A document information processing device, comprising:

[0010] An acquisition module is used to acquire documents to be processed, wherein the documents to be processed include document header information and entry information;

[0011] A document header identifier generating module, used for generating a document header identifier of a target document corresponding to the document to be processed when the amount of entry information of the document to be processed is greater than a threshold value;

[0012] An establishing module, used for establishing a mapping relationship between the document header identifier and each entry identifier in the entry information, and storing the entry information;

[0013] The document header information generating module is used to generate and store the document header information of the target document according to the entry information and the document header identifier.

[0014] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0015] Obtaining a document to be processed, wherein the document to be processed includes document header information and entry information;

[0016] When the amount of entry information of the to-be-processed document is greater than a threshold, generating a document header identifier of a target document corresponding to the to-be-processed document;

[0017] Establishing a mapping relationship between the document header identifier and each entry identifier in the entry information, and storing the entry information;

[0018] According to the entry information and the document header identifier, the document header information of the target document is generated and stored.

[0019] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0020] Obtaining a document to be processed, wherein the document to be processed includes document header information and entry information;

[0021] When the amount of entry information of the to-be-processed document is greater than a threshold, generating a document header identifier of a target document corresponding to the to-be-processed document;

[0022] Establishing a mapping relationship between the document header identifier and each entry identifier in the entry information, and storing the entry information;

[0023] According to the entry information and the document header identifier, the document header information of the target document is generated and stored.

[0024] The document information processing method, device, computer equipment and storage medium described above, when the number of entry information of the document to be processed is greater than a threshold, first generates a document header identifier of the target document, establishes a mapping relationship between the document header identifier and each entry identifier that identifies each entry information, and then stores the entry information. The document header information is generated and stored based on the saved entry information and the document header identifier, so that when the number of entry information of the newly added document is large, the document header information and the entry information are stored separately, which can solve the problem of limited storage caused by the large number of document entry lines. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 An application environment diagram of a document information processing method in an embodiment;

[0026] Figure 2 A schematic diagram of a process of processing document information in one embodiment;

[0027] Figure 3 A schematic diagram of a process for modifying the entry information of a target document according to a document modification instruction and obtaining modification information corresponding to the target document in one embodiment;

[0028] Figure 4 A schematic diagram of a process for updating entry information and document header information of a target document in one embodiment;

[0029] Figure 5 A schematic diagram of a process of deleting a target document in one embodiment;

[0030] Figure 6 A schematic diagram of a process of converting a to-be-processed document into a target document in one embodiment;

[0031] Figure 7 A schematic diagram of a process for modifying entry information of a target document in one embodiment;

[0032] Figure 8 is a structural block diagram of a document information processing device in one embodiment;

[0033] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] The document information processing method provided in this application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The terminal 102 obtains the document to be processed, which includes the document header information and the entry information. Then, the save instruction of the document to be processed is sent to the server 104. The server 104 receives the save instruction and obtains the document to be processed. When the number of entry information of the document to be processed is greater than the threshold, the server 104 generates a document header identifier of the target document corresponding to the document to be processed, establishes a mapping relationship between the document header identifier and each entry identifier in the entry information, and stores the entry information. Then, the server 104 generates and stores the document header information of the target document based on the entry information and the document header identifier. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers.

[0036] In one embodiment, the terminal 102 sends a save instruction of the document to be processed to the server 104. The server 104 receives the save instruction and obtains the document to be processed. When the number of entry information of the document to be processed is greater than a threshold, the server 104 generates a document header identifier of the target document corresponding to the document to be processed. Next, the server 104 establishes a mapping relationship between the document header identifier and each entry identifier in the entry information, and saves the entry information to the database of the server 104. When the server 104 receives a document update instruction sent by the terminal 102, it obtains the modification information obtained after the terminal 102 modifies the entry information of the target document according to the document update instruction. Next, the server 104 updates the entry information and the document header information of the target document according to the modification information and the document header identifier, and saves the updated entry information and the updated document header information to the database of the server 104.

[0037] In one embodiment, Figure 2 As shown, a document information processing method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0038] Step 202: Obtain the document to be processed, which includes document header information and entry information.

[0039] Among them, documents are the carriers of enterprise business data, consisting of document header information and document body information, such as procurement management, sales orders, and payment vouchers. Document header information refers to business information used to describe the commonality of the business processing process, such as document code, document date, etc., and is an indispensable part of the document. Document body information includes entries, which can include multiple entry lines, recording the detailed information corresponding to the document header, and the detailed information is displayed and entered in a table.

[0040] Specifically, the to-be-processed document is a document that needs to be processed by journal entry. The server can obtain the to-be-processed document, and the number of to-be-processed documents is not limited. The to-be-processed document can be an electronic document directly generated on the user terminal, or an electronic document obtained by photographing or scanning a manual document through the terminal.

[0041] Step 204: When the amount of entry information of the document to be processed is greater than a threshold, a document header identifier of a target document corresponding to the document to be processed is generated.

[0042] The target document refers to the document consisting of entry information and document header information after the document to be processed is processed. The target document includes document header information and document body information, and the document body information is the entry information. It can be understood that multiple documents to be processed can correspond to one target document.

[0043] Specifically, the server may perform entry processing on the document to be processed to obtain entry information corresponding to the document to be processed. Then, the server determines the number of entry information. The server compares the number of entry information with a threshold value, which is a quantity threshold value. When the number of entry information of the document to be processed is greater than the threshold value, it means that the number of entry information is too large and it is difficult to display it all at once after storage, so the server generates a document header identifier of the target document corresponding to the document to be processed.

[0044] In this embodiment, when the number of entry information of the to-be-processed document is less than or equal to the threshold, it means that the number of entry information is within the range that can be displayed at one time. For the to-be-processed document whose number of entry information is less than or equal to the threshold, the server can use the entry information as the document body of the target document, and generate the document header information of the target document according to the entry information, and generate a document header identifier, so as to store the document header information and document body information of the target document in the database.

[0045] Step 206: Establish a mapping relationship between the document header identifier and each entry identifier in the entry information, and store the entry information.

[0046] Specifically, after the server generates the document header identifier, the server may generate an entry identifier for each entry information and store it in the entry identifier set. The entry identifier is used to uniquely identify each entry information. Then, the server may establish a mapping relationship between the document header identifier and the entry identifier corresponding to each entry information. It is understandable that in this embodiment, there is only one document header identifier corresponding to multiple entry identifiers.

[0047] Next, the server stores the entry information of the document to be processed in the database, and uses the entry information as the document body information of the target document.

[0048] Step 208: Generate and store the document header information of the target document based on the entry information and the document header identifier.

[0049] Specifically, the server can verify each entry information to generate the document header information of the target document. The document header information includes the document header identifier. Then, the server saves the document header information to the database.

[0050] It is understandable that the document header information and entry information of the target document are stored in association in the database. Further, they can be stored in different locations of the database or in the same location, but the document header information and entry information of the target document are not merged, that is, not merged and stored.

[0051] In this embodiment, when the number of entry information of the document to be processed is greater than the threshold, the document header identifier of the target document is first generated, and the entry information is stored after the mapping relationship between the document header identifier and each entry identifier that identifies each entry information is established. The document header information is generated and stored based on the saved entry information and the document header identifier, so that when the number of entry information of the newly added document is large, the entry information is first stored, and then the document header information is generated and stored based on the entry information, which can solve the problem of storage limitation caused by the large number of document entry lines.

[0052] In one embodiment, a mapping relationship between a document header identifier and each entry identifier in the entry information is established, and the entry information is stored, including:

[0053] Establish a mapping relationship between the document header ID and each entry ID in the entry information; store the entry information after the mapping relationship is established in batches according to the preset quantity.

[0054] Specifically, after the server generates the document header identifier, it can generate an entry identifier for each entry information and store it in the entry identifier set. Then, the server can establish a mapping relationship between the document header identifier and the entry identifier corresponding to each entry information.

[0055] The server can obtain the number of entry information after the mapping relationship is established, divide the number of entry information after the mapping relationship is established according to a preset number, and obtain the divided entry information. The server stores the divided entry information in batches.

[0056] In this embodiment, a mapping relationship between the document header identifier and each entry identifier in the entry information is established, and the entry information after the mapping relationship is established is stored in batches according to a preset quantity, so that a large amount of entry information can be quickly stored in the database.

[0057] In one embodiment, the method also includes: obtaining a document update instruction, and obtaining modification information obtained after modifying the entry information of the target document according to the document update instruction; updating the entry information and the document header information of the target document according to the modification information and the document header identifier, and saving the updated entry information and the updated document header information.

[0058] Specifically, the user can modify the entry information of the saved target document. The user can send an entry information modification instruction to the server through the terminal. When the server receives the entry information modification instruction, it can obtain the entry information corresponding to the entry information modification instruction and return it to the terminal. The user modifies the entry information through the terminal to obtain the modification information corresponding to the target document. Then, the terminal sends a document update instruction to the server and carries the modification information. When the server receives the document update instruction, it obtains the modification information according to the document update instruction to update the entry information of the target document.

[0059] The server replaces the entry information of the target document with the modification information to obtain the updated entry information. The server also updates the document header information of the target document according to the modification information and the document header identifier to obtain the updated document header information. Then, the server saves the updated document header information and the updated entry information to the database.

[0060] In the above document information processing method, when the number of entry information of the document to be processed is greater than the threshold, the document header identifier of the target document is first generated, a mapping relationship between the document header identifier and each entry identifier that identifies each entry information is established, and then the entry information is saved, so that when the number of entry information of the newly added document is large, the document header information and the entry information can be stored separately, avoiding the problem of insufficient memory, data loss or data error caused by the automatic splitting of the entry information due to the large number when the document header information and the entry information are combined and stored, and the problem of data verification failure with the external system. When receiving the document update instruction, the modification information obtained after the entry information is modified is obtained, and according to the modified entry information, the deleted entry information and the saved entry information, the document header information and the entry information of the target document can be accurately updated to ensure the accuracy of the data modification.

[0061] In one embodiment, the method further includes: obtaining an entry information modification instruction, and loading the corresponding entry information based on a document header identifier carried by the entry information modification instruction; obtaining a document update instruction, and obtaining the modification information obtained after modifying the loaded entry information according to the document update instruction; obtaining the corresponding saved entry information according to the document header identifier, and determining the entry information difference set between the loaded entry information and the modification information; and updating the entry information and the document header information of the target document according to the modification information, the entry information difference set and the saved entry information.

[0062] The entry information difference set is a set of entry information that differs between the loaded entry information and the modified information.

[0063] Specifically, the terminal sends an entry information modification instruction to the server. When the server receives the entry information modification instruction, it can obtain the document header identifier carried in the entry information modification instruction. Then, the server can query the entry information and document header information corresponding to the document header identifier from the database, and the server loads the queried entry information and document header information, and returns the loaded entry information to the terminal. Furthermore, the server can load the queried entry information in pages, so that the loaded entry information is displayed in pages on the terminal.

[0064] The user modifies the loaded entry information through the terminal, thereby obtaining the modification information corresponding to the target document. Then, the terminal sends a document update instruction to the server and carries the modification information. When the server receives the document update instruction, it obtains the modification information obtained after the terminal modifies the entry information according to the document update instruction.

[0065] The server may obtain the entry identifier in the modification information and the entry identifier in the loaded entry information. The server compares the entry identifier in the modification information and the entry identifier in the loaded entry information respectively, and determines the entry identifier in the loaded entry information that is different from the entry identifier of the modification information. Then, the server obtains the entry information corresponding to the different entry identifiers, saves the obtained entry information corresponding to the different entry identifiers into the entry information difference set, and saves the corresponding entry identifier into the entry information difference set. Then, the server may obtain the saved entry information from the database according to the document header identifier.

[0066] The server obtains the document header information of the target document, performs verification based on the modification information and the difference set of the entry information, and the saved entry information, and obtains the verification result. Then, the server updates the document header information of the target document based on the verification result. The server obtains the entry ID in the modification information, obtains the same entry ID from the saved entry information, and replaces the entry information with the same entry ID in the saved entry information with the modification information, thereby completing the update operation of the entry information of the target document.

[0067] In one embodiment, Figure 3 As shown, the document update instruction is obtained, and the modification information obtained after modifying the entry information of the target document according to the document update instruction includes:

[0068] Step 302: Obtain an entry information modification instruction, and load the corresponding entry information based on the document header identifier carried in the entry information modification instruction.

[0069] Specifically, the terminal sends an entry information modification instruction to the server. When the server receives the entry information modification instruction, it can obtain the document header identifier carried in the entry information modification instruction. Then, the server can query the entry information and document header information corresponding to the document header identifier from the database, and the server loads the queried entry information and document header information, and returns the loaded entry information to the terminal. Furthermore, the server can load the queried entry information in pages, so that the loaded entry information is displayed in pages on the terminal.

[0070] In this embodiment, the terminal can load a preset amount of entry information.

[0071] Step 304, obtaining a document update instruction, and obtaining modification information obtained after modifying the loaded entry information according to the document update instruction.

[0072] Specifically, the user modifies the loaded entry information through the terminal, thereby obtaining the modification information corresponding to the target document. Then, the terminal sends a document update instruction to the server and carries the modification information. When the server receives the document update instruction, it obtains the modification information obtained after the terminal modifies the entry information according to the document update instruction.

[0073] For example, the server finds 100 entries based on the document header ID, but only loads entries 1-20 due to the limited amount of information displayed. The user can modify the loaded 20 entries, for example, delete entries 11-20, and the modified information obtained is entries 1-10.

[0074] According to the modification information and document header identifier, update the entry information and document header information of the target document, including:

[0075] Step 306, obtaining the corresponding saved entry information according to the document header identifier, and determining the entry information difference set between the loaded entry information and the modified information.

[0076] Specifically, the server may obtain the entry identifier in the modification information and the entry identifier in the loaded entry information. The server compares the entry identifier in the modification information and the entry identifier in the loaded entry information respectively, and determines the entry identifier in the loaded entry information that is different from the entry identifier of the modification information. Then, the server obtains the entry information corresponding to the different entry identifiers, saves the obtained entry information corresponding to the different entry identifiers into the entry information difference set, and saves the corresponding entry identifier into the entry information difference set. Then, the server may obtain the saved entry information from the database according to the document header identifier.

[0077] Step 308: Update the entry information and the document header information of the target document according to the modification information, the entry information difference set and the saved entry information.

[0078] Specifically, the server obtains the document header information of the target document, performs verification according to the modification information and the difference set of the entry information, and the saved entry information, and obtains the verification result. Then, the server updates the document header information of the target document according to the verification result. The server obtains the entry identifier in the modification information, obtains the same entry identifier from the saved entry information, and replaces the entry information with the same entry identifier in the saved entry information with the modification information, thereby completing the update operation of the entry information of the target document.

[0079] In this embodiment, the entry information of the target document is modified by the entry information modification instruction, the corresponding modification information is obtained, the corresponding saved entry information is obtained according to the document header identifier, and the entry information difference set between the loaded entry information and the modification information is determined, thereby determining the deleted entry information. According to the modified entry information, the deleted entry information and the saved entry information, the document header information and the entry information of the target document can be accurately updated.

[0080] In one embodiment, Figure 4 As shown in the figure, based on the modification information, entry information difference set and saved entry information, update the entry information and document header information of the target document, including:

[0081] Step 402: compare the entry identifier in the saved entry information with the entry identifier in the entry information difference set.

[0082] Specifically, the server obtains each entry identifier in the saved entry information and obtains the entry identifier in the entry information difference set. Then, the server compares the entry identifier in the saved entry information with the entry identifier in the entry information difference set to determine whether there is an entry identifier in the entry information difference set that matches the entry identifier in the saved entry information.

[0083] Furthermore, the server may obtain any entry identifier from the saved entry information, and match the obtained entry identifier with the entry identifier in the entry information difference set, which includes the deleted entry information and the corresponding entry identifier.

[0084] Step 404: when the entry identifier in the saved entry information does not match the entry identifier in the entry information difference set, the entry identifier in the saved entry information is compared with the entry identifier in the modification information.

[0085] Specifically, when the entry identifier obtained from the saved entry information does not match the entry identifier in the entry information difference set, it means that the entry information corresponding to the obtained entry identifier has not been deleted. The server obtains the entry identifier in the modification information and compares the obtained entry identifier with the entry identifier in the modification information.

[0086] In this embodiment, the method further includes: when the entry identifier in the saved entry information matches the entry identifier in the entry information difference set, returning to the step of comparing the entry identifier in the saved entry information with the entry identifier in the entry information difference set, that is, returning to step 402 to continue execution.

[0087] Specifically, the server may obtain any entry identifier from the saved entry information, and compare the obtained entry identifier with the entry identifier in the entry information difference set. When the obtained entry identifier matches the entry identifier in the entry information difference set, it indicates that the entry information corresponding to the obtained entry identifier is the entry information deleted by the user. Then the server obtains the next entry identifier from the saved entry information, and performs the step of comparing the obtained entry identifier with the entry identifier in the entry information difference set.

[0088] Step 406: When the entry identifier in the saved entry information matches the entry identifier in the modification information, the modification information is obtained for verification.

[0089] Specifically, when the entry identifier obtained from the saved entry information matches the entry identifier in the modification information, it means that the entry information corresponding to the obtained entry identifier is modified, that is, the modification information is the latest entry information. The server obtains the modification corresponding to the matching entry identifier for verification.

[0090] Next, the server returns to compare the entry identifier in the saved entry information with the entry identifier in the entry information difference set until all the entry identifiers in the saved entry information are traversed. That is, the server obtains the next entry identifier from the saved entry information, and compares the obtained entry identifier with the entry identifier in the entry information difference set, as well as the steps after the comparison.

[0091] Step 408: Update the document header information and entry information of the target document according to the verification result.

[0092] Specifically, when the verification result is successful, the server updates the document header information of the target document according to the verification result, and replaces the corresponding entry information in the saved entry information with the modified information.

[0093] In this embodiment, the entry identifier in the saved entry information is compared with the entry identifier in the entry information difference set to determine whether the entry information in the saved entry information has been deleted. When it is determined that the entry information in the saved entry information has been deleted, the deleted information is not verified. When the entry identifier in the saved entry information matches the entry identifier in the modified information, indicating that the entry information has been modified, the modified entry information is obtained for verification, thereby ensuring that the document header information and the entry information after the modified data can be consistent, and the entry information and the document header information can be accurately updated.

[0094] In one embodiment, before updating the document header information and entry information of the target document according to the verification result, the method further includes: when the entry identifier in the saved entry information does not match the entry identifier in the modification information, obtaining the saved entry information for verification.

[0095] Specifically, when the entry identifier in the saved entry information does not match the entry identifier in the entry information difference set, and the entry identifier in the saved entry information does not match the entry identifier in the modification information, it means that the entry information has not been deleted or modified, then the server obtains the entry information corresponding to the entry identifier from the saved entry information for verification.

[0096] In this embodiment, when the entry identifier in the saved entry information does not match the entry identifier in the modification information, it means that the entry information has not been deleted or modified, and the saved entry information of the target document is obtained for verification to accurately update the document header information of the target document.

[0097] In one embodiment, the method further includes: receiving a loading instruction of the target document, and loading entry information corresponding to the target document in pages according to the loading instruction.

[0098] Specifically, the server receives a loading instruction of a target document, and loads the document header information of the target document according to the loading instruction. Furthermore, the server loads the entry information corresponding to the target document in pages according to the loading instruction. The document header identifier in the document header information of the target document and the entry identifier of the entry information have a mapping relationship. The entry information corresponding to the document header identifier can be obtained through the mapping relationship, thereby avoiding the problem of mismatch between the entry information loaded in pages and the records of the external system caused by merging and storing the document header information and the entry information. Furthermore, the amount of entry information obtained at a time is saved by using page loading, thereby ensuring the loading speed of the target document.

[0099] In one embodiment, the method further includes: receiving a deletion instruction of a target document, searching for a document associated with the target document; deleting the target document when no document associated with the target document is found; and prompting that deletion of the target document is prohibited when a document associated with the target document is found.

[0100] Specifically, when the server receives the deletion instruction of the target document, it can determine whether the target document is associated with other documents. Further, the server can search for the associated document header identifier in the database according to the document header identifier of the target document. When the document header identifier associated with the document header identifier of the target document header is not found, it is determined that there is no document associated with the target document in the database, and the server can delete the target document from the database in response to the deletion instruction. When the server finds the document header identifier associated with the document header identifier of the target document header, it is determined that there is a document associated with the target document in the database, and the deletion of the target document is prohibited. The server can issue a prompt message prohibiting the deletion of the target document.

[0101] For example, if document B is generated based on target document A, then target document A and document B are associated, and target document A is prohibited from being deleted.

[0102] In this embodiment, when receiving a deletion instruction for a target document, it is first determined whether the target document is associated with other documents. If the target document is associated with other documents, deletion of the target document is prohibited to avoid data errors in other documents caused by deleting the target document, thereby ensuring the data accuracy of the target document.

[0103] In one embodiment, Figure 5 As shown, the method also includes:

[0104] Step 502: Receive a deletion instruction of the target document, and obtain the entry information of the target document according to the document header identifier of the target document.

[0105] Specifically, when the server receives the deletion instruction of the target document, it can obtain the document header identifier of the target document and obtain the corresponding entry information according to the document header identifier.

[0106] Step 504: determine whether the entry information of the target document is associated with the entry information of other documents.

[0107] Specifically, the server may determine whether the entry information of the target document is associated with the entry information of other documents. For example, the target document includes entry information C, and other documents include entry information D. When the entry information D of other documents is obtained from the entry information C of the target document, it means that the entry information C and the entry information D are associated.

[0108] Step 506: When the entry information of the target document is not associated with the entry information of other documents, the target document is deleted.

[0109] Step 508: When the entry information of the target document is associated with the entry information of other documents, it is prompted that the target document is prohibited from being deleted.

[0110] Specifically, when the entry information of the target document is not associated with the entry information of other documents, the server can delete the target document from the database. When any entry information of the target document is associated with the entry information of other documents, the target document is prohibited from being deleted. The server can issue a prompt message prohibiting the deletion of the target document and display the prompt message on the terminal.

[0111] In this embodiment, when receiving a deletion instruction for a target document, it is first determined whether the entry information of the target document is associated with the entry information of other documents. If the entry information of the target document is associated with the entry information of other documents, deletion of the target document is prohibited to avoid data errors in other documents caused by deleting the target document, thereby ensuring the data accuracy of the target document.

[0112] In one embodiment, the method further includes: receiving a deletion instruction of the target document, determining the review status of the target document according to the deletion instruction; deleting the target document when the target document is in an unreviewed state; and prompting that deletion of the target document is prohibited when the target document is in a reviewed state.

[0113] Specifically, when the server receives a deletion instruction from the user for the target document, the review status of the target document can be obtained. The review status includes a review status and a reviewed status. When the target document is in an unreviewed status, the user is allowed to modify it, and the server deletes the target document according to the deletion instruction. When the target document is in a reviewed status, it means that the target document has passed the review, and modification and deletion of the target document are prohibited. The server can issue a prompt message prohibiting the deletion of the target document, and display the prompt message on the terminal.

[0114] Figure 6 The present invention is a flowchart of converting a to-be-processed document into a target document in one embodiment. The server obtains the to-be-processed document, and performs entry processing on the to-be-processed document to obtain entry information. The server determines whether the amount of entry information exceeds a threshold value. When the amount of entry information does not exceed the threshold value, it indicates that the amount of entry information is within the range that can be displayed at one time. The server uses the entry information as the document body of the target document, and generates the document header information of the target document based on the entry information, and generates a document header identifier, so that the document header information and the document body information of the target document are merged and stored in the database.

[0115] When the number of entry information of the document to be processed is greater than the threshold, the server generates the document header identifier of the target document corresponding to the document to be processed, and establishes a mapping relationship between the document header identifier and each entry identifier in the entry information. Then, the server saves the entry information to the database in batches through small transactions through SQL insertion until all the entry information is saved, and constructs the document header information of the target document based on the entry information. The document header information includes the document header identifier. Then, the server calls the save operation to save the document header information to the database.

[0116] like Figure 7 The figure is a schematic diagram of a process of modifying the entry information of a target document in an embodiment.

[0117] When the server receives an entry information modification instruction for a target document, it obtains the document header identifier carried by the entry information modification instruction, and loads the entry information corresponding to the document header identifier according to the DataSet distributed computing framework. Then, the server modifies the loaded entry information according to the entry information modification instruction to obtain the corresponding modification information. Then, the server determines the entry information difference set ListEx between the loaded entry information and the modification information, and the entry information difference set ListEx is the deleted entry information and the corresponding entry identifier. The server obtains the saved entry information corresponding to the document header identifier from the database according to the DataSet distributed computing framework, and stores the saved entry information in the DataSet collection. The server traverses the entry identifiers in the saved entry information (DataSet collection), and compares the entry identifiers in the saved entry information with the entry identifiers in the entry information difference set. When the entry identifier in the saved entry information matches the entry identifier in the entry information difference set, that is, the entry identifier in the saved entry information exists in the entry information difference set, the server returns to the step of comparing the entry identifier in the saved entry information with the entry identifier in the entry information difference set.

[0118] When the entry identifier in the saved entry information does not match the entry identifier in the entry information difference set, that is, the entry identifier in the saved entry information does not exist in the entry information difference set, the server compares the entry identifier in the saved entry information with the entry identifier in the modified information.

[0119] When the entry identifier in the saved entry information matches the entry identifier in the modification information, the server obtains the modification information.

[0120] When the entry identifier in the saved entry information does not match the entry identifier in the modification information, the server obtains the saved entry information.

[0121] The server traverses the entry identifiers in the saved entry information in the same way, and when the entry identifiers in the saved entry information are traversed, the acquired modification information is verified with the saved entry information. The server updates the document header information and entry information of the target document according to the verification result, and saves the updated entry information and the updated document header information.

[0122] In one embodiment, a method for processing document information is provided, the method comprising:

[0123] The server obtains the documents to be processed and performs entry processing on the documents to be processed.

[0124] Optionally, when the amount of entry information of the document to be processed is less than or equal to a threshold, the document header information of the target document and the document header identifier in the document header information are generated based on the entry information, so that the document header information and document body information of the target document are merged and stored in the database.

[0125] Next, when the amount of entry information of the document to be processed is greater than a threshold, the server generates a document header identifier of the target document corresponding to the document to be processed.

[0126] Next, the server establishes a mapping relationship between the document header identifier and each entry identifier in the entry information, and saves the entry information.

[0127] Furthermore, the server generates and saves document header information of the target document according to the entry information and the document header identifier.

[0128] When the server receives the entry information modification instruction, it loads the corresponding entry information based on the document header identifier carried in the entry information modification instruction and returns it to the terminal.

[0129] The terminal modifies the loaded entry information and obtains the modified information. Then, the terminal sends the document update instruction and the modified data to the server.

[0130] When the server receives the document update instruction, it obtains the modification information according to the document update instruction.

[0131] Next, the server obtains the corresponding saved entry information according to the document header identifier, and determines the entry information difference set between the loaded entry information and the modified information;

[0132] Further, the server compares the entry identifier in the saved entry information with the entry identifier in the entry information difference set.

[0133] When the entry identifier in the saved entry information matches the entry identifier in the entry information difference set, the server returns to the step of comparing the entry identifier in the saved entry information with the entry identifier in the entry information difference set.

[0134] When the entry ID in the saved entry information does not match the entry ID in the entry information difference set, the server compares the entry ID in the saved entry information with the entry ID in the modified information.

[0135] When the entry identifier in the saved entry information matches the entry identifier in the modification information, the server obtains the modification information for verification.

[0136] When the entry identifier in the saved entry information does not match the entry identifier in the modified information, the server obtains the saved entry information for verification.

[0137] Furthermore, the server updates the document header information and entry information of the target document according to the verification result, and saves the updated entry information and the updated document header information.

[0138] When the server receives a loading instruction for a target document, it loads the entry information corresponding to the target document in pages according to the loading instruction.

[0139] When the server receives a deletion instruction for a target document, it determines the review status of the target document according to the deletion instruction.

[0140] When the target document is in unapproved status, the server searches for documents associated with the target document.

[0141] When no document associated with the target document is found, the server obtains the entry information of the target document according to the document header identifier of the target document.

[0142] Next, the server determines whether the entry information of the target document is associated with the entry information of other documents.

[0143] When the entry information of the target document is not associated with the entry information of other documents, the server deletes the target document.

[0144] When the entry information of the target document is associated with the entry information of other documents, the server prompts that the target document is prohibited from being deleted.

[0145] In this embodiment, when the number of entry information of the document to be processed is greater than the threshold, the document header identifier of the target document is generated first, and then the entry information is saved, so that when the number of entry information of the newly added document is large, the document header information and the entry information can be stored separately, which can solve the problem of limited storage caused by the large number of document entry lines. In addition, it can avoid data loss or data errors caused by automatically splitting the entry information due to the large number when the document header information and the entry information are stored together, and the problem of data not being able to be verified with the data of the external system.

[0146] Modify the entry information of the target document through the entry information modification instruction, obtain the corresponding modification information, obtain the corresponding saved entry information according to the document header identifier, determine the entry information difference set between the loaded entry information and the modification information, and thus determine the deleted entry information. Compare the entry identifier in the saved entry information with the entry identifier in the entry information difference set to determine whether any entry information in the saved entry information has been deleted. When it is determined that entry information in the saved entry information has been deleted, the deleted information is not verified. When the entry identifier in the saved entry information matches the entry identifier in the modification information, indicating that the entry information has been modified, the modified entry information is obtained for verification, thereby ensuring that the document header information and the entry information after the modified data can be consistent, and the entry information and document header information can be accurately updated.

[0147] When receiving a deletion instruction for a target document, determine the status of the target document, determine whether the target document is associated with other documents, and determine whether the entry information of the target document is associated with the entry information of other documents, so as to avoid data errors in other documents caused by deleting the target document, thereby ensuring the data accuracy of the target document after the data is modified.

[0148] It should be understood that although Figure 2-Figure 7 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 7 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0149] In one embodiment, Figure 8 As shown, a document information processing device is provided, including: an acquisition module 802, a document header identification generation module 804, a creation module 806, and a document header information generation module 808, wherein:

[0150] The acquisition module 802 is used to acquire the document to be processed, which includes a document header and an entry.

[0151] The document header identifier generating module 804 is used to generate a document header identifier of a target document corresponding to the document to be processed when the amount of entry information of the document to be processed is greater than a threshold.

[0152] The establishment module 806 is used to establish a mapping relationship between the document header identifier and each entry identifier in the entry information, and store the entry information.

[0153] The document header information generation module 808 is used to generate and store the document header information of the target document according to the entry information and the document header identifier.

[0154] The document information processing device generates a document header identifier of a target document when the number of entry information of a document to be processed is greater than a threshold value, establishes a mapping relationship between the document header identifier and each entry identifier that identifies each entry information, and then stores the entry information. The document header information is generated and stored based on the saved entry information and the document header identifier, so that when the number of entry information of a newly added document is large, the document header information and the entry information are stored separately, which can solve the problem of limited storage caused by a large number of document entry lines.

[0155] In one embodiment, the establishing module 806 is further used to: establish a mapping relationship between the document header identifier and each entry identifier in the entry information; and store the entry information after the mapping relationship is established in batches according to a preset quantity.

[0156] In this embodiment, a mapping relationship between the document header identifier and each entry identifier in the entry information is established, and the entry information after the mapping relationship is established is stored in batches according to a preset quantity, so that a large amount of entry information can be quickly stored in the database.

[0157] In one embodiment, the device further comprises: a modification module and an update module. The modification module is used to: obtain a document update instruction, and obtain modification information obtained after modifying the entry information of the target document according to the document update instruction.

[0158] The update module is used to update the entry information and the document header information of the target document according to the modification information and the document header identifier, and save the updated entry information and the updated document header information.

[0159] In this embodiment, when a document update instruction is received, the modification information obtained after the entry information is modified is obtained, and based on the modified entry information, the deleted entry information and the saved entry information, the document header information and entry information of the target document can be accurately updated to ensure the accuracy of the data modification.

[0160] In one embodiment, the update module is also used to: obtain the corresponding saved entry information according to the document header identifier, determine the entry information difference set between the loaded entry information and the modification information; and update the entry information and the document header information of the target document according to the modification information, the entry information difference set and the saved entry information.

[0161] In one embodiment, the modification module is also used to: obtain entry information modification instructions, load corresponding entry information based on the document header identifier carried by the entry information modification instructions; obtain document update instructions, and obtain modification information obtained after modifying the loaded entry information according to the document update instructions.

[0162] The update module is also used to: obtain the corresponding saved entry information according to the document header identifier, determine the entry information difference set between the loaded entry information and the modified information; and update the entry information and the document header information of the target document according to the modified information, the entry information difference set and the saved entry information.

[0163] In this embodiment, the entry information of the target document is modified by the entry information modification instruction, the corresponding modification information is obtained, the corresponding saved entry information is obtained according to the document header identifier, and the entry information difference set between the loaded entry information and the modification information is determined, thereby determining the deleted entry information. According to the modified entry information, the deleted entry information and the saved entry information, the document header information and the entry information of the target document can be accurately updated.

[0164] In one embodiment, the update module is also used to: compare the entry identifier in the saved entry information with the entry identifier in the entry information difference set; when the entry identifier in the saved entry information and the entry identifier in the entry information difference set do not match, compare the entry identifier in the saved entry information with the entry identifier in the modification information; when the entry identifier in the saved entry information and the entry identifier in the modification information match, obtain the modification information for verification; and update the document header information and entry information of the target document according to the verification result.

[0165] In this embodiment, the entry identifier in the saved entry information is compared with the entry identifier in the entry information difference set to determine whether the entry information in the saved entry information has been deleted. When it is determined that the entry information in the saved entry information has been deleted, the deleted information is not verified. When the entry identifier in the saved entry information matches the entry identifier in the modified information, indicating that the entry information has been modified, the modified entry information is obtained for verification, thereby ensuring that the document header information and the entry information after the modified data can be consistent, and the entry information and the document header information can be accurately updated.

[0166] In one embodiment, the update module is further used to: when the entry identifier in the saved entry information does not match the entry identifier in the modification information, obtain the saved entry information for verification.

[0167] In this embodiment, when the entry identifier in the saved entry information does not match the entry identifier in the modification information, it means that the entry information has not been deleted or modified, and the saved entry information of the target document is obtained for verification to accurately update the document header information of the target document.

[0168] In one embodiment, the device further includes a loading module. The loading module is used to receive a loading instruction of a target document and load entry information corresponding to the target document in pages according to the loading instruction. The page loading is used to save the amount of entry information obtained at a time to ensure the loading speed of the target document.

[0169] In one embodiment, the device further comprises: a deletion module. The deletion module is used to: receive a deletion instruction of a target document, search for a document associated with the target document; delete the target document when no document associated with the target document is found; and prompt that the target document is prohibited from being deleted when a document associated with the target document is found.

[0170] In this embodiment, when receiving a deletion instruction for a target document, it is first determined whether the target document is associated with other documents. If the target document is associated with other documents, deletion of the target document is prohibited to avoid data errors in other documents caused by deleting the target document, thereby ensuring the data accuracy of the target document.

[0171] In one embodiment, the deletion module is used to: receive a deletion instruction of a target document, obtain the entry information of the target document according to the document header identifier of the target document; determine whether the entry information of the target document is associated with the entry information of other documents; when the entry information of the target document is not associated with the entry information of other documents, delete the target document; when the entry information of the target document is associated with the entry information of other documents, prompt that deletion of the target document is prohibited.

[0172] In this embodiment, when receiving a deletion instruction for a target document, it is first determined whether the entry information of the target document is associated with the entry information of other documents. If the entry information of the target document is associated with the entry information of other documents, deletion of the target document is prohibited to avoid data errors in other documents caused by deleting the target document, thereby ensuring the data accuracy of the target document.

[0173] The specific definition of the document information processing device can be found in the definition of the document information processing method above, which will not be repeated here. Each module in the above document information processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0174] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a document information processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0175] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0176] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0177] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0178] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0179] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0180] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A document information processing method, characterized in that: The method comprises: Obtaining a document to be processed, wherein the document to be processed includes document header information and multiple entry information; When the amount of entry information of the to-be-processed document is greater than a threshold, generating a document header identifier of a target document corresponding to the to-be-processed document; Generate an entry identifier for each entry information; After establishing a mapping relationship between the document header identifier and the entry identifier of each entry information, the plurality of entry information are stored in batches according to a preset number in a database of the server; According to the stored multiple entry information and the document header identifier, the document header information of the target document is generated and stored.

2. The method according to claim 1, characterized in that The method further comprises: Obtaining a document update instruction, and obtaining modification information obtained after modifying the entry information of the target document according to the document update instruction; According to the modification information and the document header identifier, the entry information and the document header information of the target document are updated, and the updated entry information and the updated document header information are saved.

3. The method according to claim 1, characterized in that The method further comprises: Obtain the entry information modification instruction, and load the corresponding entry information based on the document header identifier carried in the entry information modification instruction; Get the document update instruction, and get the modified information after modifying the loaded entry information according to the document update instruction; Obtaining corresponding saved entry information according to the document header identifier, and determining the entry information difference set between the loaded entry information and the modified information; The entry information and document header information of the target document are updated according to the modification information, the entry information difference set and the saved entry information.

4. The method according to claim 3, characterized in that The updating of the entry information and the document header information of the target document according to the modification information, the entry information difference set and the saved entry information includes: Comparing the entry identifier in the saved entry information with the entry identifier in the entry information difference set; When the entry identifier in the saved entry information does not match the entry identifier in the entry information difference set, comparing the entry identifier in the saved entry information with the entry identifier in the modification information; When the entry identifier in the saved entry information matches the entry identifier in the modification information, obtaining the modification information for verification; When the entry identifier in the saved entry information does not match the entry identifier in the modification information, obtaining the saved entry information for verification; The document header information and the entry information of the target document are updated according to the verification result.

5. The method according to claim 1, characterized in that The method further comprises: A loading instruction of the target document is received, and entry information corresponding to the target document is loaded in pages according to the loading instruction.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: receiving a deletion instruction of the target document, and acquiring entry information of the target document according to a document header identifier of the target document; Determining whether the entry information of the target document is associated with the entry information of other documents; When the entry information of the target document is not associated with the entry information of other documents, deleting the target document; When the entry information of the target document is associated with the entry information of other documents, it is prompted that the target document is prohibited from being deleted.

7. A document information processing device, characterized in that: The device comprises: An acquisition module is used to acquire a document to be processed, wherein the document to be processed includes a document header and a plurality of entry information; A document header identifier generating module, used for generating a document header identifier of a target document corresponding to the document to be processed when the amount of entry information of the document to be processed is greater than a threshold value; A module for generating an entry identifier for each entry information; An establishing module, used to establish a mapping relationship between the document header identifier and the entry identifier of each entry information, and store the multiple entry information in batches according to a preset number in a database of the server; The document header information generation module is used to generate and store the document header information of the target document according to the stored multiple entry information and the document header identifier.

8. The device according to claim 7, characterized in that The device also includes: A modification module, used for obtaining a document update instruction, and obtaining modification information obtained after modifying the entry information of the target document according to the document update instruction; An updating module is used to update the entry information and the document header information of the target document according to the modification information and the document header identifier, and save the updated entry information and the updated document header information.

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 steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.