Electronic invoice issuing method and device, computer device and storage medium

CN115936894BActive Publication Date: 2026-10-16CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211438647.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-17
Publication Date
2026-10-16
Estimated Expiration
2042-11-17

AI Technical Summary

Technical Problem

[0004]本申请实施例提供一种电子单据出单方法、装置、计算机设备及存储介质,以解决现有技术无法在短时间内为大量不同用户快速生成不同保险电子单据的问题

Benefits of technology

[0019]The aforementioned electronic document generation method, device, computer equipment, and storage medium analyze the relationships between data items in existing electronic documents and generate data block templates containing different data items based on these relationships. This allows for quick and accurate matching of the corresponding data block template according to the requirements of the target electronic document, and then the use of the data block template to quickly generate the target electronic document, further improving the efficiency of electronic document generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115936894B_ABST
    Figure CN115936894B_ABST
Patent Text Reader

Abstract

The application discloses an electronic bill issuing method, and applies to the technical field of data processing. The method provided by the application comprises the following steps: obtaining a matched target data block template from a preset data block template library according to data items required by a target electronic bill; obtaining a matched target historical electronic bill from system historical electronic bills and other electronic bills derived from third-party data according to the data items required by the target electronic bill; arranging and combining the target data block template according to a data logical sequence required by the target electronic bill, and rearranging the data items in the target data block template according to the data logical sequence required by the target electronic bill, so as to obtain a first electronic bill; and if there is a missing data item in the target electronic bill requirement which is not contained in the first electronic bill, obtaining the missing data item from the target historical electronic bill, and adding the missing data item to the first electronic bill.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to an electronic document issuance method, apparatus, computer equipment, and storage medium. Background Technology

[0002] In the process of issuing electronic insurance policies in the insurance industry, insurance agents need to manually enter various information data of the insured. This manual data entry process is not only inefficient but also prone to errors. One existing technology for the application scenario of policy renewal involves copying the user's historical electronic policy in its entirety, and then modifying the necessary changes in the copied policy.

[0003] However, as competition in the insurance industry intensifies, more and more insurance service providers are offering personalized insurance services to different insurance users, creating a demand for generating different electronic insurance policies for different users. For example, when a fintech service platform offers different insurance benefit products to different users, it needs to quickly generate different electronic insurance benefit product policies for each user. It is well known that fintech service platforms face daily user traffic pressures, and current technology cannot meet the demand for rapidly generating different electronic insurance policies for a large number of different users in a short period of time. Summary of the Invention

[0004] This application provides an electronic document issuance method, apparatus, computer equipment, and storage medium to solve the problem that existing technologies cannot quickly generate different insurance electronic documents for a large number of different users in a short period of time.

[0005] A first aspect of this application provides a method for issuing electronic documents, including:

[0006] According to the data items required by the target electronic document, a matching target data block template is obtained from the preset data block template library, wherein all data items in the target data block template exist in the data items required by the target electronic document;

[0007] Based on the data items required by the target electronic document, a matching target historical electronic document is obtained from the system's historical electronic documents and other electronic documents from third-party data, wherein the target historical electronic document contains at least one data item that is the same as the target electronic document requirement;

[0008] The target data block template is arranged and combined according to the data logical order of the target electronic document requirements, and the data items in the target data block template are rearranged according to the data logical order of the target electronic document requirements to obtain the first electronic document;

[0009] Determine whether there are any missing data items in the target electronic document requirement that are not included in the first electronic document;

[0010] If the missing data item exists, it is retrieved from the target historical electronic document and added to the first electronic document to obtain the target electronic document.

[0011] A second aspect of this application provides an electronic document issuing device, comprising:

[0012] The first data acquisition module is used to acquire a matching target data block template from a preset data block template library according to the data items required by the target electronic document, wherein all data items in the target data block template exist in the data items required by the target electronic document;

[0013] The second data acquisition module is used to acquire a matching target historical electronic document from the system's historical electronic documents and other electronic documents from third-party data according to the data items required by the target electronic document, wherein the target historical electronic document contains at least one data item that is the same as the requirements of the target electronic document.

[0014] The first electronic document module is used to arrange and combine the target data block template according to the data logical order required by the target electronic document, and to rearrange the data items in the target data block template according to the data logical order required by the target electronic document, so as to obtain the first electronic document.

[0015] The first data item judgment module is used to determine whether there are any missing data items in the target electronic document requirement that are not included in the first electronic document;

[0016] The target electronic document module is used to retrieve the missing data item from the target historical electronic document if it exists, and add the missing data item to the first electronic document to obtain the target electronic document.

[0017] A third aspect of this application provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described electronic document issuance method.

[0018] A fourth aspect of this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described electronic document issuance method.

[0019] The aforementioned electronic document generation method, device, computer equipment, and storage medium analyze the relationships between data items in existing electronic documents and generate data block templates containing different data items based on these relationships. This allows for quick and accurate matching of the corresponding data block template according to the requirements of the target electronic document, and then the use of the data block template to quickly generate the target electronic document, further improving the efficiency of electronic document generation. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a schematic diagram of an application environment for an electronic document issuance method according to an embodiment of this application;

[0022] Figure 2 This is a flowchart of an electronic document issuance method according to an embodiment of this application;

[0023] Figure 3 This is a schematic diagram of the structure of an electronic document issuing device in one embodiment of this application;

[0024] Figure 4 This is a schematic diagram of a computer device according to one embodiment of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] The electronic document issuance method provided in this application can be applied to, for example... Figure 1 In this application environment, the computer equipment can be, but is not limited to, various personal computers and laptops. The computer equipment can also be a server, which can be a standalone server or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. This is understandable. Figure 1The number of computer devices shown is merely illustrative and can be expanded in any number according to actual needs.

[0027] In one embodiment, such as Figure 2 As shown, an electronic document generation method is provided, which is applied to... Figure 1 The following steps, S101 to S105, are used as an example of computer equipment:

[0028] S101. Obtain a matching target data block template from a preset data block template library according to the data items required by the target electronic document, wherein all data items in the target data block template exist in the data items required by the target electronic document.

[0029] Unlike traditional electronic invoices that are based on a single electronic invoice template, this application's embodiments are based on at least one data block template from the aforementioned data block template library. That is, the data items required for the target electronic invoice originate from at least one data block template in the data block template library. For example, a fintech service platform generates an electronic invoice requirement for a user's insurance product purchase request. The data items related to basic personal information in this electronic invoice requirement originate from data block templates related to basic personal information in the current data block template library, and the data items related to personal health information in this electronic invoice requirement originate from data block templates related to personal health information in the current data block template library.

[0030] Furthermore, before obtaining the matching target data block template from the preset data block template library based on the data items required by the target electronic document, the process further includes: First, obtaining all historical electronic documents from the system and other electronic documents from third-party data as electronic documents to be analyzed. Here, the historical electronic documents from the system and other electronic documents from third-party data refer to electronic documents belonging to the same field or having the same information attributes as the target electronic document requirement. For example, a fintech service platform might obtain historical electronic documents from the platform related to health insurance, property insurance, car insurance, and accident insurance as electronic documents to be analyzed, and obtain personal medical examination electronic documents from third-party medical examination institutions as electronic documents to be analyzed, because these personal medical examination electronic documents have an information association relationship with medical insurance products in terms of personal health information. Then, the electronic documents to be analyzed are input into a preset data item association analysis model, and a set of data items with a first association score within a first preset association threshold range is output, wherein the first association score of every two data items in each set of data items is within the first preset association threshold range. The data item association analysis model outputs a first association score between each data item in the electronic document to be analyzed. A high first association score indicates a high probability of simultaneous occurrence of the same data item. For example, in practical applications, the probability of a name and gender data item appearing simultaneously is high, while the probability of a name and driver's license code data item appearing simultaneously is low. The data item association analysis model can obtain corresponding results based on the electronic document to be analyzed, i.e., the first association score for the name and gender data items is high, and the first association score for the name and driver's license code data items is low. Finally, the data items in the data item set are combined and arranged according to a preset data sorting priority order to obtain a target data block template, which is then added to the preset data block template library. Because in the actual layout of electronic forms, each data item in the electronic form has a basic logical order. For example, in the personal information data item of an electronic form, the name data item usually appears before the gender data item, age data item, ID number data item, etc. Therefore, it is necessary to combine and sort each data item of the data block template. The specific combination and sorting requirements come from the preset data arrangement priority on the one hand, and from the data item association relationship analysis model on the other hand. That is, the data item association relationship analysis model can also output the order priority of each data item in the electronic document to be analyzed.

[0031] Further, after combining and arranging the data items in the data item set according to a preset data arrangement priority order to obtain a target data block template, and adding the target data block template to the preset data block template library, the method further includes: First, traversing the preset data block template library and obtaining a first percentage of the occurrence frequency of each data item in each data block template in the preset data block template library relative to the total number of data block templates in the preset data block library. If the first percentage is within a preset first percentage threshold range, then the data item corresponding to the first percentage is added to the data item set to be combined. Then, traversing the preset data block template library and determining whether there exists a data block template in the preset data block template library where all data items have a one-to-one correspondence with all data items in the data item set to be combined. If not, the data items in the data item set to be combined are recombined to obtain a first target new data block template, and the first target new data block template is sent to the preset data block template library. For example, in the insurance electronic document data block template library of an insurance product on a certain fintech service platform, each data item in each insurance data block template in the library is traversed, and the probability of each data item appearing in the insurance data block template (i.e., the aforementioned first percentage) is calculated. Then, data items with high probability of appearance are clustered to generate new insurance data block templates. However, if the same insurance data block template already exists in the insurance electronic document data block template library, no new template is generated.

[0032] Further, the step of combining and arranging the data items in the data item set according to a preset data arrangement priority order to obtain a target data block template, and then adding the target data block template to the preset data block template library, includes: First, counting the usage records of each data block template in the preset data block template library. If at least two target data block templates in the usage records are used simultaneously with a number of times equal to or greater than a first preset usage threshold, the target data block template is added as a subset to the preset set of templates to be reorganized. Then, the preset set of templates to be reorganized is traversed, and the target data block templates in each subset of the preset set of templates to be reorganized are merged to obtain a second target new data block template, and the second target new data block template is sent to the preset data block template library. For example, in the insurance electronic document data block template library of an insurance product on a fintech service platform, by statistically analyzing the usage of each insurance electronic document data block template in the library, if it is found that the number of times the driver's license information data block template and the vehicle information data block template appear simultaneously exceeds a preset usage threshold, then the driver's license information data block template and the vehicle information data block template are merged to generate a new target information data block template. If the same data block template does not exist in the insurance electronic document data block template library, then the target information data block template is added to the current insurance electronic document data block template library.

[0033] S102. Obtain a matching target historical electronic document from the system's historical electronic documents and other electronic documents from third-party data according to the data items required by the target electronic document, wherein the target historical electronic document contains at least one data item that is the same as the requirements of the target electronic document.

[0034] Furthermore, a first threshold range for the proportion of required data items is set. That is, only when the proportion of the data items required by the target electronic document contained in the target historical electronic document is within the first threshold range, will the system historical electronic document corresponding to the target historical electronic document and other electronic documents from the third-party data be used in subsequent target electronic document generation steps. Furthermore, a second threshold range for the proportion of required data items is set. That is, only when the proportion of the data items required by the target electronic document contained in the target historical electronic document is within the second threshold range, will the system historical electronic document corresponding to the target historical electronic document and other electronic documents from the third-party data be used in subsequent target electronic document generation steps. For example, if the proportion of the second required data item in a system's historical electronic document is high but the proportion of the first required data item is low, that is, if the system's historical electronic document contains a large number of data items required by the target electronic document, but the included data items only account for a small portion of the system's historical electronic document, then the system's historical electronic document contains a large number of data items that are invalid relative to the requirements of the target electronic document. In this case, the system's historical electronic document will not be used in the subsequent target electronic document generation steps.

[0035] S103. Arrange and combine the target data block template according to the data logical order required by the target electronic document, and rearrange the data items in the target data block template according to the data logical order required by the target electronic document to obtain the first electronic document.

[0036] If the target electronic document requirement is matched with multiple target data block templates, the multiple target data block templates need to be further sorted according to the data logical order in the target electronic document requirement. For example, if a fintech service platform generates a car insurance electronic document requirement, and matches a personal information data block template, a driver's license information data block template, and a car information data block template according to the car insurance electronic document requirement, the personal information data block needs to be arranged in the first order according to the data logical order in the insurance electronic document requirement. Furthermore, if the car insurance electronic document requirement also includes a data logical order requirement for car information data items, the data items in the obtained car information data block template are reordered according to the data item data logical requirements in the car insurance electronic document requirement to obtain the target car insurance electronic document.

[0037] S104. Determine whether there are any missing data items in the target electronic document requirement that are not included in the first electronic document.

[0038] In practical applications, while the probability that the data block templates in the preset data block template library contain all the data items required by the target electronic document is high, it is not always a perfect match. That is, the probability that the data block templates in the preset data block template library and all the data items required by the target electronic document are in a one-to-one correspondence is not 100%. Therefore, if the target electronic document requirement contains missing data items not included in the first electronic document, these missing data items must be supplemented through other means.

[0039] S105. If the missing data item exists, retrieve the missing data item from the target historical electronic document and add the missing data item to the first electronic document to obtain the target electronic document.

[0040] Further, after obtaining the missing data item from the target historical electronic document, the process further includes: if the missing data item does not exist in the target historical electronic document, receiving a first data item to be added sent manually, and adding the first data item to be added to the first electronic document. Alternatively, obtaining a data item to be extracted that is related to the missing data item from the target historical electronic document, extracting a second data item to be added from the data item to be extracted using a preset data extraction method, and adding the second data item to be added to the first electronic document. Finally, checking whether all data items in the first electronic document correspond one-to-one with all data items required by the target electronic document. If so, the first electronic document is used as the target electronic document. The preset data extraction method includes, but is not limited to: extracting data items using OCR (Optical Character Recognition) technology, extracting data items using text analysis and processing technology, extracting data items using image analysis and processing technology, and extracting data items using audio and video analysis and processing technology. For example, OCR technology can be used to extract data items such as registration date and unified social credit code from business license images uploaded by users; text processing technology can be used to extract phone number data items from users' express delivery address information; audio and video analysis and processing technology can be used to analyze and identify data items such as users' product preferences and loyalty based on the call recordings between users and customer service personnel; and image analysis and processing technology can be used to identify data items such as users' product preferences and loyalty through images (including static and dynamic images) in the chat records between users and customer service personnel.

[0041] Further, the steps of adding the first data item to be added to the first electronic document and adding the second data item to be added to the first electronic document include: using the data item association analysis model to analyze the second association score between the first data item to be added or the second data item to be added and each data block template in the preset data block template library. The calculation method and meaning of the second association score are the same as those of the first association score, and therefore will not be repeated here. If the second association score is within the second preset association threshold range, then the first data item to be added or the second data item to be added is added to the data block template corresponding to the second association score, further enriching the data block template library and improving the efficiency of generating the target electronic document.

[0042] Furthermore, the data block template library data and the target electronic document data are uploaded to the blockchain. Specifically, corresponding digest information is obtained based on the data block template library data and the target electronic document data, respectively. Specifically, the digest information is obtained by hashing the data block template library data and the target electronic document data, for example, using the SHA256s algorithm. Uploading the digest information to the blockchain ensures its security and fairness and transparency to users. User devices can download the digest information from the blockchain to verify whether the data block template library data and the target electronic document data have been tampered with. The blockchain referred to in this example is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. A blockchain is essentially a decentralized database, a chain of data blocks linked using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer.

[0043] The electronic document generation method provided in this application analyzes the relationships between data items in an existing electronic document and generates data block templates containing different data items based on these relationships. This allows for quick and accurate matching of the corresponding data block template according to the requirements of the target electronic document, and then uses this data block template to rapidly generate the target electronic document, further improving the efficiency of electronic document generation. Simultaneously, it can promptly adjust the data block templates in the data block template library based on changes during each target electronic document generation process to meet the need for rapidly generating more target electronic documents.

[0044] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0045] In one embodiment, an electronic document issuing device 100 is provided, which corresponds one-to-one with the electronic document issuing method described in the above embodiments. For example... Figure 3 As shown, the electronic document generation device 100 includes a first data acquisition module 11, a second data acquisition module 12, a first electronic document module 13, a first data item judgment module 14, and a target electronic document module 15. Detailed descriptions of each functional module are as follows:

[0046] The first data acquisition module 11 is used to acquire a matching target data block template from a preset data block template library according to the data items required by the target electronic document, wherein all data items in the target data block template exist in the data items required by the target electronic document;

[0047] The second data acquisition module 12 is used to acquire a matching target historical electronic document from the system's historical electronic documents and other electronic documents from third-party data according to the data items required by the target electronic document, wherein the target historical electronic document contains at least one data item that is the same as the requirements of the target electronic document.

[0048] The first electronic document module 13 is used to arrange and combine the target data block template according to the data logical order required by the target electronic document, and to rearrange the data items in the target data block template according to the data logical order required by the target electronic document, so as to obtain the first electronic document.

[0049] The first data item judgment module 14 is used to determine whether there are any missing data items in the target electronic document requirement that are not included in the first electronic document;

[0050] The target electronic document module 15 is used to obtain the missing data item from the target historical electronic document if it exists, and add the missing data item to the first electronic document to obtain the target electronic document.

[0051] Furthermore, the first data acquisition module 11 also includes:

[0052] The third data acquisition submodule is used to acquire all historical electronic documents from the system and other electronic documents from third-party data as electronic documents to be analyzed.

[0053] The first correlation scoring submodule is used to input the electronic document to be analyzed into a preset data item correlation analysis model and output a set of data items with a first correlation score within a first preset correlation threshold range, wherein the first correlation score of every two data items in each set of data items is within the first preset correlation threshold range.

[0054] The data block template generation submodule is used to combine and arrange the data items in the data item set according to a preset data arrangement priority order to obtain the target data block template, and add the target data block template to the preset data block template library.

[0055] Furthermore, the data block template generation submodule also includes:

[0056] The first template library traversal subunit is used to traverse the preset data block template library and obtain a first percentage of the number of times each data item of each data block template in the preset data block template library appears relative to the number of data block templates in the preset data block template library.

[0057] The first percentage subunit is used to add the data item corresponding to the first percentage to the set of data items to be combined if the first percentage is within a preset first percentage threshold range.

[0058] The second template library traversal subunit is used to traverse the preset data block template library and determine whether there is a data block template in the preset data block template library in which all data items correspond one-to-one with all data items in the set of data items to be combined.

[0059] The first template library adds a sub-unit, which is used to, if not, recombine the data items in the set of data items to be combined to obtain a first target new data block template, and send the first target new data block template to the preset data block template library.

[0060] Furthermore, the data block template generation submodule also includes:

[0061] The data block template statistics subunit is used to count the usage records of each data block template in the preset data block template library;

[0062] The second template library adds a sub-unit, which is used to add the target data block template as a subset to the preset template set to be reorganized if at least two target data block templates in the usage record are used at the same time with a number of times equal to or greater than a first preset usage threshold.

[0063] The third template library traversal subunit is used to traverse the preset set of templates to be reorganized, merge the target data block templates in each subset of the preset set of templates to be reorganized to obtain the second target new data block template, and send the second target new data block template to the preset data block template library.

[0064] Furthermore, the target electronic document module 15 also includes:

[0065] The manual data item addition submodule is used to receive the first data item to be added sent by manual operation if the missing data item does not exist in the target historical electronic document, and add the first data item to be added to the first electronic document.

[0066] The data item extraction submodule is used to obtain data items that are related to the missing data items from the target historical electronic document, extract a second data item to be added from the data items to be added using a preset data extraction method, and add the second data item to be added to the first electronic document.

[0067] Furthermore, the data item extraction submodule also includes:

[0068] The second correlation score subunit is used to analyze the second correlation score between the first data item to be added or the second data item to be added and each data block template in the preset data block template library using the data item correlation analysis model.

[0069] A new sub-unit is added to the template data item, which is used to add either the first data item to be added or the second data item to be added to the data block template corresponding to the second correlation score if the second correlation score is within the second preset correlation threshold range.

[0070] The terms "first" and "second" in the above-mentioned modules / units are only used to distinguish different modules / units and are not intended to specify which module / unit has a higher priority or any other limiting meaning. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products, or devices. The module divisions appearing in this application are merely logical divisions; in actual applications, different division methods may be used.

[0071] Specific limitations regarding the electronic document generation device can be found in the limitations of the electronic document generation method described above, and will not be repeated here. Each module in the aforementioned electronic document generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0072] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data involved in the electronic document generation method. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements an electronic document generation method.

[0073] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the electronic document generation method described in the above embodiments, for example... Figure 2 The steps S101 to S105 shown, as well as other extensions and related steps of the method, are examples. Alternatively, when the processor executes the computer program, it implements the functions of each module / unit of the electronic document issuing device in the above embodiments, for example... Figure 3 The functions of modules 11 to 15 are shown. To avoid repetition, they will not be described again here.

[0074] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the computer device, connecting various parts of the computer device via various interfaces and lines.

[0075] The memory can be used to store the computer programs and / or modules. The processor implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory and by calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created based on the use of the mobile phone (such as audio data, video data, etc.).

[0076] The memory can be integrated into the processor or it can be set up separately from the processor.

[0077] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When executed by a processor, the computer program implements the steps of the electronic document issuance method described in the above embodiments, for example... Figure 2 The steps S101 to S105 shown, as well as other extensions and related steps of the method, are examples. Alternatively, when a computer program is executed by a processor, it implements the functions of each module / unit of the electronic document issuing device in the above embodiments, for example... Figure 3 The functions of modules 11 to 15 are shown. To avoid repetition, they will not be described again here.

[0078] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0079] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0080] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for issuing electronic documents, characterized in that, include: According to the data items required by the target electronic document, a matching target data block template is obtained from the preset data block template library, wherein all data items in the target data block template exist in the data items required by the target electronic document; Based on the data items required by the target electronic document, a matching target historical electronic document is obtained from the system's historical electronic documents and other electronic documents from third-party data, wherein the target historical electronic document contains at least one data item that is the same as the target electronic document requirement; The target data block template is arranged and combined according to the data logical order of the target electronic document requirements, and the data items in the target data block template are rearranged according to the data logical order of the target electronic document requirements to obtain the first electronic document; Determine whether there are any missing data items in the target electronic document requirement that are not included in the first electronic document; If it exists, the missing data item is obtained from the target historical electronic document and added to the first electronic document to obtain the target electronic document; The process of obtaining a matching target data block template from a preset data block template library based on the data items required by the target electronic document includes: obtaining all historical electronic documents from the system and other electronic documents from third-party data as electronic documents to be analyzed; inputting the electronic documents to be analyzed into a preset data item association analysis model, outputting a set of data items with a first association score within a first preset association threshold range, wherein the first association score of every two data items in each set of data items is within the first preset association threshold range; combining and arranging the data items in the set of data items according to a preset data arrangement priority order to obtain a target data block template, and adding the target data block template to the preset data block template library; The step of combining and arranging the data items in the data item set according to a preset data arrangement priority order to obtain a target data block template, and adding the target data block template to the preset data block template library, includes: counting the usage records of each data block template in the preset data block template library; if at least two target data block templates in the usage records are used simultaneously with a number of times equal to or greater than a first preset usage threshold, adding the target data block template as a subset to a preset set of templates to be reorganized; traversing the preset set of templates to be reorganized, merging the target data block templates in each subset of the preset set of templates to be reorganized to obtain a second target new data block template, and sending the second target new data block template to the preset template library; The step of obtaining matching target historical electronic documents from historical electronic documents in the system and other electronic documents from third-party data based on the data items required by the target electronic document includes: calculating the proportion of a first required data item and the proportion of a second required data item for each electronic document in the historical electronic documents in the system and other electronic documents from third-party data, wherein the proportion of the first required data item is the ratio of the number of data items required by the target electronic document contained in each electronic document to the total number of data items in the corresponding electronic document, and the proportion of the second required data item is the ratio of the number of data items required by the target electronic document contained in each electronic document to the total number of data items required by the target electronic document; and obtaining electronic documents from the historical electronic documents in the system and other electronic documents from third-party data whose proportion of the first required data item is within a preset first required data item proportion threshold range and whose proportion of the second required data item is within a preset second required data item proportion threshold range, as the target historical electronic document.

2. The electronic document issuance method according to claim 1, characterized in that, The step of combining and arranging the data items in the data item set according to a preset data arrangement priority order to obtain a target data block template, and adding the target data block template to the preset data block template library, further includes: Traverse the preset data block template library and obtain a first percentage of the number of times each data item appears in each data block template in the preset data block template library relative to the number of data block templates in the preset data block template library; If the first percentage is within the preset first percentage threshold range, then the data item corresponding to the first percentage is added to the set of data items to be combined; Traverse the preset data block template library and determine whether there exists a data block template in the preset data block template library that has a one-to-one correspondence between all data items and all data items in the set of data items to be combined; If not, recombine the data items in the set of data items to be combined to obtain the first target new data block template, and send the first target new data block template to the preset data block template library.

3. The electronic document issuance method according to claim 1, characterized in that, After retrieving the missing data item from the target historical electronic document, the process further includes: If the missing data item does not exist in the target historical electronic document; Receive the first data item to be added sent by manual operation, and add the first data item to the first electronic document; Alternatively, retrieve data items that are related to the missing data items from the target historical electronic document, extract a second data item to be added from the data items to be extracted using a preset data extraction method, and add the second data item to be added to the first electronic document.

4. The electronic document issuance method according to claim 3, characterized in that, The steps of adding the first data item to be added to the first electronic document and adding the second data item to be added to the first electronic document include: The data item association analysis model is used to analyze the second association score between the first data item to be added or the second data item to be added and each data block template in the preset data block template library; If the second correlation score is within the second preset correlation threshold range, then the first data item to be added or the second data item to be added is added to the data block template corresponding to the second correlation score.

5. An electronic document issuing device, characterized in that, include: The first data acquisition module is used to acquire a matching target data block template from a preset data block template library according to the data items required by the target electronic document, wherein all data items in the target data block template exist in the data items required by the target electronic document; The second data acquisition module is used to acquire a matching target historical electronic document from the system's historical electronic documents and other electronic documents from third-party data according to the data items required by the target electronic document, wherein the target historical electronic document contains at least one data item that is the same as the requirements of the target electronic document. The first electronic document module is used to arrange and combine the target data block template according to the data logical order required by the target electronic document, and to rearrange the data items in the target data block template according to the data logical order required by the target electronic document, so as to obtain the first electronic document. The first data item judgment module is used to determine whether there are any missing data items in the target electronic document requirement that are not included in the first electronic document; The target electronic document module is used to retrieve the missing data item from the target historical electronic document if it exists, and add the missing data item to the first electronic document to obtain the target electronic document; The first data acquisition module further includes: a third data acquisition submodule, used to acquire all historical electronic documents from the system and other electronic documents from third-party data as electronic documents to be analyzed; a first correlation scoring submodule, used to input the electronic documents to be analyzed into a preset data item correlation analysis model, and output a set of data items with a first correlation score within a first preset correlation threshold range, wherein the first correlation score of every two data items in each set of data items is within the first preset correlation threshold range; and a data block template generation submodule, used to combine and arrange the data items in the set of data items according to a preset data arrangement priority order to obtain a target data block template, and add the target data block template to the preset data block template library. The data block template generation submodule further includes: a data block template statistics subunit, used to count the usage records of each data block template in the preset data block template library; a second template library addition subunit, used to add the target data block template as a subset to the preset reorganization template set if at least two target data block templates in the usage records are used simultaneously with a number equal to or greater than a first preset usage threshold; and a third template library traversal subunit, used to traverse the preset reorganization template set, merge the target data block templates in each subset of the preset reorganization template set to obtain a second target new data block template, and send the second target new data block template to the preset data block template library. The step of obtaining matching target historical electronic documents from historical electronic documents in the system and other electronic documents from third-party data based on the data items required by the target electronic document includes: calculating the proportion of a first required data item and the proportion of a second required data item for each electronic document in the historical electronic documents in the system and other electronic documents from third-party data, wherein the proportion of the first required data item is the ratio of the number of data items required by the target electronic document contained in each electronic document to the total number of data items in the corresponding electronic document, and the proportion of the second required data item is the ratio of the number of data items required by the target electronic document contained in each electronic document to the total number of data items required by the target electronic document; and obtaining electronic documents from the historical electronic documents in the system and other electronic documents from third-party data whose proportion of the first required data item is within a preset first required data item proportion threshold range and whose proportion of the second required data item is within a preset second required data item proportion threshold range, as the target historical electronic document.

6. A computer 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, it implements the steps of the electronic document issuance method as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the electronic document issuance method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Document generation method and system based on big data

    CN109344372A