A method, device, electronic device and storage medium for storing document data

By storing document data according to the preset mapping relationship between the document field of the document template and the database field of the target database, the problem of low efficiency in storing document data in the prior art is solved, and efficient storage of new configuration document template data is achieved.

CN119760047APending Publication Date: 2025-04-04SHENZHEN TAIJI SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411638698.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

Existing methods of storing document data are inefficient, especially when using newly configured document templates, requiring hard-code and update of the storage system.

Method used

By determining the document template corresponding to the target document to be stored, and storing the target data of the target document to be stored in the target database based on the preset mapping relationship between the document field of the document template and the database field of the target database.

Benefits of technology

It is possible to efficiently store document data on newly configured document templates without hard-coded or update the storage system, improving the efficiency of storing document data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119760047A_ABST
    Figure CN119760047A_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of data processing technology, and provides a storage method, device, electronic device and storage medium for document data. The storage method for document data includes determining a document template corresponding to a target document to be stored; storing the target data of the target document in a target database according to a preset mapping relationship between the document field of the document template and the database field of the target database. Through the present application, the target data of the target document can be stored in a target database according to a preset mapping relationship between the document field of the document template and the database field of the target database. Therefore, when it is necessary to store the document data on a newly configured document template, it is only necessary to determine the preset mapping relationship between the document field of the newly configured document template and the database field of the target database, without the need to hard-code the newly configured document template, and without the need to update the storage system for the document data, thereby improving the efficiency of storing document data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of data processing technology, and in particular, relates to a method, device, electronic device and storage medium for storing document data. Background Art

[0002] Currently, when storing document data on a document, the data on the document is usually stored in a preset database through hard coding. This method can only store document data in hard-coded document templates, but cannot store document data in document templates that are not hard-coded.

[0003] It can be seen that when a newly configured document template needs to be used, the newly configured document template needs to be hard-coded first, and the storage system of the document data also needs to be updated, which reduces the efficiency of storing the document data. Summary of the invention

[0004] In view of this, embodiments of the present application provide a method, device, electronic device and storage medium for storing document data to solve the technical problem of low efficiency in existing document data storage.

[0005] In a first aspect, an embodiment of the present application provides a method for storing document data, comprising:

[0006] Determine a document template corresponding to the target document to be stored;

[0007] According to a preset mapping relationship between the document fields of the document template and the database fields of the target database, the target data of the target document is stored in the target database.

[0008] Optionally, before acquiring the document template corresponding to the target document to be stored, the method further includes:

[0009] Get template configuration instructions;

[0010] Determining the document template and the preset mapping relationship according to the template configuration instruction;

[0011] The document template and the preset mapping relationship are associated and stored.

[0012] Optionally, determining the document template includes:

[0013] Determine each fixed text and each document field in the document template according to the template configuration instruction;

[0014] The document template is determined according to the fixed texts and the document fields.

[0015] Optionally, the determining the preset mapping relationship includes:

[0016] Determine, according to the template configuration instruction, the configuration information corresponding to each document field;

[0017] For each of the document fields, a mapping relationship between the document field and a database field of the target database is determined according to the configuration information corresponding to the document field.

[0018] Optionally, determining a mapping relationship between the document field and a database field of the target database according to the configuration information corresponding to the document field includes:

[0019] According to the configuration information corresponding to the document field, the target database corresponding to the document field is determined, and the database field corresponding to the document field in the target database is determined.

[0020] Optionally, the target document is generated by:

[0021] Acquiring the target data input by the user based on the document template;

[0022] The target document is generated based on the document template and the target data.

[0023] Optionally, the target data includes a plurality of sub-data; storing the target data of the target document in the target database according to a preset mapping relationship between the document field of the document template and the database field of the target database includes:

[0024] For each sub-data in the target data, determine the target document field corresponding to the sub-data; determine the target database field corresponding to the target document field according to the preset mapping relationship; and store the sub-data in the target database field.

[0025] In a second aspect, an embodiment of the present application provides a storage device for document data, comprising:

[0026] A document template determining unit, used to determine a document template corresponding to a target document to be stored;

[0027] The storage unit is used to store the target data of the target document in the target database according to the preset mapping relationship between the document field of the document template and the database field of the target database.

[0028] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements each step of the document data storage method as described in any one of the first aspects above when executing the computer program.

[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, each step in the method for storing document data as described in any one of the first aspects above is implemented.

[0030] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the terminal device executes each step of the method for storing document data as described in any one of the first aspects above.

[0031] The document data storage method, device, electronic device and storage medium provided by the embodiments of the present application have the following beneficial effects:

[0032] In the storage method of document data provided in the embodiment of the present application, the document template corresponding to the target document to be stored is first determined, and then the target data of the target document is stored in the target database according to the preset mapping relationship between the document field of the document template and the database field of the target database. Through the present application, the target data of the target document can be stored in the target database according to the preset mapping relationship between the document field of the document template and the database field of the target database. Therefore, when the document data on the newly configured document template needs to be stored, it is only necessary to determine the preset mapping relationship between the document field of the newly configured document template and the database field of the target database, without the need to hard-code the newly configured document template, and without the need to update the storage system of the document data, thereby improving the efficiency of storing document data. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0034] Figure 1 A flowchart of a method for storing document data provided in an embodiment of the present application;

[0035] Figure 2 A schematic diagram of a document template provided in an embodiment of the present application;

[0036] Figure 3 A schematic diagram of the structure of a storage device for document data provided in an embodiment of the present application;

[0037] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] It should be noted that the terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application. In the description of the embodiments of the present application, unless otherwise specified, "multiple" refers to two or more than two, and "at least one", "one or more" refers to one, two or more. The terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, it is defined that the "first" and "second" features can explicitly or implicitly include one or more of the features.

[0039] References to "one embodiment" or "some embodiments" etc. described in this specification mean that a particular feature, structure or characteristic described in conjunction with the embodiment is included in one or more embodiments of the present application. Thus, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear at different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0040] The execution subject of the document data storage method provided in the embodiment of the present application can be an electronic device, wherein the electronic device can include a storage device for the document data and a terminal device, and the terminal device can include electronic devices such as mobile phones, tablet computers, laptop computers and desktop computers.

[0041] The document data storage method provided in the embodiment of the present application can be applied to various scenarios where document data on a document needs to be stored. When a user needs to store document data on a document, the various steps of the document data storage method provided in the embodiment of the present application can be executed by an electronic device, thereby realizing the storage of document data.

[0042] Exemplarily, the document data storage method provided in the embodiment of the present application can be applied to storing document data on a newly configured document template, and can also be applied to storing document data on an old configured document template. When applied to storing document data on a newly configured document template, the document data storage method provided in the embodiment of the present application does not require hard coding of the newly configured document template, nor does it require updating of the document data storage system, and the document data of the newly configured document template can be stored, thereby improving the efficiency of storing document data.

[0043] See also Figure 1 , Figure 1 The present invention provides a flowchart of a method for storing document data in an embodiment of the present invention. The method for storing document data may include S101 to S102, which are described in detail as follows:

[0044] In S101, a document template corresponding to a target document to be stored is determined.

[0045] In the embodiment of the present application, when the target data of the target document to be stored needs to be stored, the target document to be stored can be obtained through the electronic device, and a document template corresponding to the target document to be stored can be determined.

[0046] The document template corresponding to the target document to be stored may be a newly configured document template or an old configured document template. Based on this, the user may input target data based on the old configured document template, so that the electronic device can obtain the target document to be stored; the user may also first configure a new document template through the electronic device, and then input target data based on the newly configured document template, so that the electronic device can obtain the target document to be stored.

[0047] In a possible implementation, the electronic device may obtain a newly configured document template by following steps a to c, as described in detail below:

[0048] In step a, a template configuration instruction is obtained.

[0049] In this implementation, the user can instruct the electronic device to configure a new document template by inputting a template configuration instruction into the electronic device, based on which the electronic device can obtain the template configuration instruction input by the user.

[0050] The template configuration instruction may include first text template information for describing each fixed text and each document field in the document template, and second text template information for describing a preset mapping relationship between the document field of the document template and the database field of the target database.

[0051] In a possible implementation, a first control corresponding to various fixed texts and a second control corresponding to various document fields may be displayed on the electronic device.

[0052] Based on this, the user can select a first control on the electronic device according to actual needs, and configure the selected first control according to needs, such as configuring parameters such as the position, size, color and font of the first control, thereby inputting template configuration instructions to the electronic device to configure the fixed text on the document template.

[0053] In addition, the user can select a second control on the electronic device according to actual needs, and configure the selected second control according to needs, such as configuring the position, format, size of the second control and the preset mapping relationship between the document field corresponding to the second control and the database field of the target database, thereby inputting template configuration instructions for configuring the document fields on the document template into the electronic device.

[0054] In step b, the document template is determined according to the template configuration instruction and the preset mapping relationship is determined.

[0055] In this implementation, after obtaining the template configuration instructions input by the user, the electronic device can determine the fixed texts and document fields in the document template according to the obtained template configuration instructions, and determine the document template according to the fixed texts and document fields in the document template.

[0056] In addition, the electronic device can also determine the configuration information corresponding to each document field in the document template based on the acquired template configuration instructions. After that, the electronic device can determine the mapping relationship between the document field and the database field of the target database for each document field in the document template based on the configuration information corresponding to the document field, thereby obtaining the preset mapping relationship between the document field of the document template and the database field of the target database.

[0057] In actual applications, document data can be stored in multiple different databases. Based on this, the electronic device can first determine the target database corresponding to the document field according to the configuration information corresponding to the document field, and then determine the database field corresponding to the document field in the target database.

[0058] In step c, the document template and the preset mapping relationship are associated and stored.

[0059] In this implementation, after determining the document template and the preset mapping relationship, the electronic device can store the document template and the preset mapping relationship in association. Afterwards, after determining the document template, the electronic device can determine the preset mapping relationship corresponding to the document template.

[0060] In addition, after acquiring the document template, the electronic device can save the document template so that the document template can be reused later.

[0061] See also Figure 2 , Figure 2 A schematic diagram of a document template provided in an embodiment of the present application.

[0062] like Figure 2 As shown, the document template includes several fixed texts and various document fields.

[0063] For example, the texts such as "Notice of Acceptance of Investigation", "You (the unit)", "Your behavior is suspected of violating" in the document template are fixed texts. In the document template, these fixed texts are fixed and unchanged.

[0064] Exemplarily, the fields corresponding to the content to be filled in the document template are the document fields of the document template, and the user can enter the target data in these document fields in the document template. Exemplarily, "XXX" in the document template is used to represent the name of the individual or the name of the unit to be filled in the document template, and "xxxxxxxxx" in the document template is used to represent the behavior content to be filled in the document template.

[0065] Each document field in the document template may correspond to a database field of the target database. For example, the document field corresponding to "XXX" in the document template may correspond to database field A in the target database; the document field corresponding to "xxxxxxxxx" in the document template may correspond to database field B in the target database.

[0066] In an embodiment of the present application, a user can configure the various fixed texts and document fields in the template, as well as the preset mapping relationship between the document fields of the document template and the database fields of the target database by inputting template configuration instructions. After the configuration is completed, the document template and the preset mapping relationship can be associated and stored, so that the document template can be called subsequently and the preset mapping relationship corresponding to the document template can be obtained.

[0067] The electronic device can generate the target document to be stored by following steps d to e, as detailed below:

[0068] In step d, the target data input by the user based on the document template is obtained.

[0069] In an optional implementation, a user may select a document template through an electronic device, and input target data based on the document template through the electronic device, so that the electronic device acquires the target data and the document template corresponding to the target data.

[0070] In another optional implementation, the user can fill in the target data into a paper document template, and then the paper document template and the target data filled in based on the paper document template can be identified by an electronic device, so that the electronic device can obtain the target data and the document template corresponding to the target data.

[0071] In step e, a target document is generated based on the document template and target data.

[0072] In this implementation, after obtaining the target data and the document template corresponding to the target data, the electronic device can generate the target document according to the target data and the document template corresponding to the target data.

[0073] In S102, the target data of the target document is stored in the target database according to the preset mapping relationship between the document fields of the document template and the database fields of the target database.

[0074] In the embodiment of the present application, the target data of the target document may include multiple sub-data.

[0075] After the electronic device obtains the target document to be stored and determines the document template corresponding to the target document to be stored, it can determine the preset mapping relationship between the document fields of the document template and the database fields of the target database based on the document template, and store the target data of the target document in the target database based on the preset mapping relationship between the document fields of the document template and the database fields of the target database.

[0076] Specifically, the electronic device can determine, for each document field of the document template, a preset mapping relationship between the document field and the database field of the target database according to the configuration information of the document field, thereby obtaining a preset mapping relationship between each document field of the document template and the database field of the target database.

[0077] After determining the preset mapping relationship between each document field of the document template and the database field of the target database, the electronic device can store the target data of the target document in the target database according to the preset mapping relationship between each document field of the document template and the database field of the target database.

[0078] Specifically, the electronic device can determine the target document field corresponding to each sub-data in the target data, and then determine the target database field corresponding to the target document field according to a preset mapping relationship, thereby determining the target database field corresponding to the sub-data. Afterwards, the electronic device can store the sub-data in the target database field corresponding to the sub-data.

[0079] It can be seen from the above that in the storage method of document data provided in the embodiment of the present application, the document template corresponding to the target document to be stored is first determined, and then the target data of the target document is stored in the target database according to the preset mapping relationship between the document field of the document template and the database field of the target database. Through the present application, the target data of the target document can be stored in the target database according to the preset mapping relationship between the document field of the document template and the database field of the target database. Therefore, when it is necessary to store the document data on the newly configured document template, it is only necessary to determine the preset mapping relationship between the document field of the newly configured document template and the database field of the target database, without the need to hard-code the newly configured document template, and without the need to update the storage system of the document data, thereby improving the efficiency of storing document data.

[0080] Based on the storage method of document data provided in the embodiment of the present application, combined with Figure 2 A schematic diagram of a document template is provided. The following is an example of storing document data:

[0081] The user may first choose to obtain a configured document template on the electronic device according to actual needs, or to configure a new document template so that the electronic device can obtain the target document template.

[0082] When the user chooses to have the electronic device obtain the first target document template by acquiring a configured document template, the user can input target data on the first target document template acquired by the electronic device through the electronic device, thereby enabling the electronic device to acquire the target document to be stored.

[0083] After acquiring the target document to be stored, the electronic device can determine the preset mapping relationship between the document field of the first target document template and the database field of the target database based on the first target document template of the target document to be stored, and store the target data of the target document to be stored in the target database based on the preset mapping relationship between the document field of the first target document template and the database field of the target database.

[0084] When the user chooses to configure a new document template to allow the electronic device to obtain the target document template, the user can input template configuration instructions to the electronic device to instruct the electronic device to configure the new document template. After obtaining the template configuration instructions input by the user, the electronic device can determine the various fixed texts and various document fields in the document template according to the obtained template configuration instructions, and determine the document template according to the various fixed texts and various document fields in the document template.

[0085] In addition, the electronic device can also determine the configuration information corresponding to each document field in the document template according to the template configuration instruction obtained, and then the electronic device can determine the mapping relationship between the document field and the database field of the target database for each document field in the document template according to the configuration information corresponding to the document field, thereby obtaining the preset mapping relationship between the document field of the document template and the database field of the target database. After determining the document template and the preset mapping relationship, the electronic device can associate and store the document template and the preset mapping relationship, thereby obtaining a newly configured document template.

[0086] After the electronic device obtains the newly configured document template, the newly configured document template can be used as the second target document template. The user can input target data on the second target document template obtained by the electronic device through the electronic device, thereby enabling the electronic device to obtain the target document to be stored.

[0087] After acquiring the target document to be stored, the electronic device can determine the preset mapping relationship between the document field of the second target document template and the database field of the target database based on the second target document template of the target document to be stored, and store the target data of the target document to be stored in the target database based on the preset mapping relationship between the document field of the second target document template and the database field of the target database.

[0088] In addition, after acquiring the newly configured document template, the electronic device can save the newly configured document template so that the newly configured document template can be reused later.

[0089] Based on the storage method of document data provided in the above embodiment, the present application further provides a storage device for document data that implements the above method embodiment. Figure 3 , Figure 3 A schematic diagram of a storage device for document data provided in an embodiment of the present application. Figure 3 As shown, the document data storage device 30 may include: a document template determination unit 31 and a storage unit 32. Among them:

[0090] The document template determining unit 31 is used to determine a document template corresponding to a target document to be stored.

[0091] The storage unit 32 is used to store the target data of the target document in the target database according to a preset mapping relationship between the document fields of the document template and the database fields of the target database.

[0092] Optionally, the document data storage device 30 may further include a configuration unit.

[0093] Configuration units are specifically used for:

[0094] Get template configuration instructions;

[0095] Determining the document template and the preset mapping relationship according to the template configuration instruction;

[0096] The document template and the preset mapping relationship are associated and stored.

[0097] Optionally, the configuration unit is specifically used to:

[0098] Determine each fixed text and each document field in the document template according to the template configuration instruction;

[0099] The document template is determined according to the fixed texts and the document fields.

[0100] Optionally, the configuration unit is specifically used to:

[0101] Determine, according to the template configuration instruction, the configuration information corresponding to each document field;

[0102] For each of the document fields, a mapping relationship between the document field and a database field of the target database is determined according to the configuration information corresponding to the document field.

[0103] Optionally, the configuration unit is specifically used to:

[0104] According to the configuration information corresponding to the document field, the target database corresponding to the document field is determined, and the database field corresponding to the document field in the target database is determined.

[0105] Optionally, the document data storage device 30 may further include a target document generation unit.

[0106] The target document generation unit is specifically used for:

[0107] Acquiring the target data input by the user based on the document template;

[0108] The target document is generated based on the document template and the target data.

[0109] Optionally, the storage unit 32 is specifically used for:

[0110] For each sub-data in the target data, determine the target document field corresponding to the sub-data; determine the target database field corresponding to the target document field according to the preset mapping relationship; and store the sub-data in the target database field.

[0111] It should be noted that the information interaction, execution process and other contents between the above-mentioned units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be specifically referred to the method embodiment part and will not be repeated here.

[0112] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 provided in this embodiment may include: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40, such as a program corresponding to the method for storing document data. When the processor 40 executes the computer program 42, the steps in the embodiment of the method for storing document data are implemented, such as Figure 1 Alternatively, when the processor 40 executes the computer program 42, the functions of each module / unit in the above-mentioned document data storage device embodiment are realized, for example Figure 3 The functions of the units 31 and 32 are shown.

[0113] Exemplarily, the computer program 42 may be divided into one or more modules / units, one or more modules / units are stored in the memory 41 and executed by the processor 40 to complete the present application. One or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program 42 in the electronic device 4. For example, the computer program 42 may be divided into a document template determination unit and a storage unit. The specific functions of each unit can be found in Figure 3 The relevant descriptions in the corresponding embodiments are not repeated here.

[0114] Those skilled in the art will understand that Figure 4 The electronic device 4 is merely an example and does not limit the electronic device 4 . The electronic device 4 may include more or fewer components than shown in the figure, or may combine certain components, or may include different components.

[0115] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.

[0116] The memory 41 may be an internal storage unit of the electronic device 4, such as a hard disk or memory of the electronic device 4. The memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, or a flash card, etc., equipped on the electronic device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 41 is used to store computer programs and other programs and data required by the electronic device. The memory 41 may also be used to temporarily store data that has been output or is to be output.

[0117] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional units as needed, that is, the internal structure of the storage device for document data can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0118] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0119] An embodiment of the present application provides a computer program product. When the computer program product is executed on a terminal device, the terminal device implements the steps in the above-mentioned various method embodiments.

[0120] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0121] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0122] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for storing document data, characterized in that: include: Determine a document template corresponding to the target document to be stored; According to a preset mapping relationship between the document fields of the document template and the database fields of the target database, the target data of the target document is stored in the target database.

2. The method according to claim 1, characterized in that Before obtaining the document template corresponding to the target document to be stored, the method further includes: Get template configuration instructions; Determining the document template and the preset mapping relationship according to the template configuration instruction; The document template and the preset mapping relationship are associated and stored.

3. The method according to claim 2, characterized in that The step of determining the document template comprises: Determine each fixed text and each document field in the document template according to the template configuration instruction; The document template is determined according to the fixed texts and the document fields.

4. The method according to claim 3, characterized in that The determining the preset mapping relationship includes: Determine, according to the template configuration instruction, the configuration information corresponding to each document field; For each of the document fields, a mapping relationship between the document field and a database field of the target database is determined according to the configuration information corresponding to the document field.

5. The method according to claim 4, characterized in that The determining, according to the configuration information corresponding to the document field, a mapping relationship between the document field and a database field of the target database includes: According to the configuration information corresponding to the document field, the target database corresponding to the document field is determined, and the database field corresponding to the document field in the target database is determined.

6. The method according to claim 1, characterized in that The target instrument is generated by: Acquiring the target data input by the user based on the document template; The target document is generated based on the document template and the target data.

7. The method according to any one of claims 1 to 6, characterized in that: The target data includes a plurality of sub-data; according to the preset mapping relationship between the document field of the document template and the database field of the target database, storing the target data of the target document in the target database includes: For each sub-data in the target data, determine the target document field corresponding to the sub-data; determine the target database field corresponding to the target document field according to the preset mapping relationship; and store the sub-data in the target database field.

8. A storage device for document data, characterized in that: include: A document template determining unit, used to determine a document template corresponding to a target document to be stored; The storage unit is used to store the target data of the target document in the target database according to the preset mapping relationship between the document field of the document template and the database field of the target database.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, each step of the document data storage method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, each step of the method for storing document data according to any one of claims 1 to 7 is implemented.