CN112784566A - Document generation method, device, equipment and storage medium - Google Patents

Document generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN112784566A
CN112784566A CN202110087161.9A CN202110087161A CN112784566A CN 112784566 A CN112784566 A CN 112784566A CN 202110087161 A CN202110087161 A CN 202110087161A CN 112784566 A CN112784566 A CN 112784566A
Authority
CN
China
Prior art keywords
document
information
template
determining
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110087161.9A
Other languages
Chinese (zh)
Inventor
贾献鹤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202110087161.9A priority Critical patent/CN112784566A/en
Publication of CN112784566A publication Critical patent/CN112784566A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Bioethics (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention relates to data processing and provides a document generation method, a device, equipment and a storage medium. The method can determine the use of the document according to a received document generation request, determine a target product according to the document generation request, acquire a document template from a template library according to the target product and the use of the document, acquire user information from the document generation request, confirm the identity of a user according to the user information, determine product information according to the identity of the user and the target product, determine a first position of the user information on the document template, determine a second position of the product information on the document template, write the user information into the first position, write the product information into the second position, and generate the target document. The invention can quickly generate the document on the premise that the document number cannot be obtained. In addition, the invention also relates to a block chain technology, and the target document can be stored in the block chain.

Description

Document generation method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a document.
Background
At present, most enterprises have various complicated business systems, documents of each business system are generated by document synthesis plug-ins installed in each business system, when the document synthesis plug-ins need to be upgraded or document templates need to be upgraded, the document synthesis plug-ins in the business systems need to be upgraded one by one, and the document generation efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a document generation method, apparatus, device and storage medium, which can generate documents quickly without knowing the document number.
In one aspect, the present invention provides a document generation method applied to an electronic device, where the electronic device includes a document synthesis platform, the document synthesis platform is in communication with a plurality of service systems, and the document generation method includes:
receiving a document generation request sent by any system in the plurality of service systems;
determining the document use according to the document generation request, and determining a target product according to the document generation request;
acquiring a document template from a template library according to the target product and the document application;
acquiring user information from the document generation request, and confirming the user identity according to the user information;
determining product information of the user identity according to the user identity and the target product;
determining a first position of the user information on the document template and determining a second position of the product information on the document template;
and writing the user information into the first position, and writing the product information into the second position to generate a target document.
According to a preferred embodiment of the present invention, said determining a use of the document based on the document generation request comprises:
analyzing the message of the document generation request to obtain message information carried by the message;
acquiring information indicating the use from the message information as a use identifier;
and determining the usage corresponding to the usage identifier as the document usage.
According to a preferred embodiment of the present invention, the obtaining a document template from a template library according to the target product and the document usage comprises:
acquiring a template mapping table in the template library, wherein the template mapping table stores a plurality of mapping relations between products and addresses;
determining a storage position corresponding to the target product from the template mapping table;
screening out a template corresponding to the document application from the storage position as a primary screening template;
acquiring the version number of the primary screening template;
and determining the primary screening template with the largest version number as the document template.
According to a preferred embodiment of the present invention, the determining the product information of the user identity according to the user identity and the target product comprises:
acquiring a credit grade table corresponding to the target product;
determining from the credit rating table that the user identity is at a target rating for the target product;
acquiring an information list corresponding to the target product;
and acquiring information corresponding to the target grade from the information list as the product information.
According to a preferred embodiment of the present invention, the determining the first location of the user information on the document template includes:
acquiring an information tag of the user information;
determining the label position of the information label on the document template;
determining a location associated with the tag location as the first location.
According to a preferred embodiment of the present invention, the writing the user information into the first location and the writing the product information into the second location, and generating the target document includes:
acquiring the generation time requirement of the document generation request;
determining the total information amount of the user information and the product information;
determining a rate requirement according to the total information amount and the generation time requirement;
acquiring all idle threads from a preset thread pool, and acquiring the processing rates of all the idle threads;
selecting a processing rate larger than the rate requirement as a target rate, and determining an idle thread corresponding to the target rate as a target thread;
and writing the user information into the first position by using the target thread, and writing the product information into the second position to obtain the target document.
According to a preferred embodiment of the present invention, after the target document is generated, the method further comprises:
acquiring a preset format;
converting the target document into a conversion document with the preset format;
encrypting the converted document to obtain a document ciphertext;
acquiring an auditing user of the target product;
and sending the document ciphertext to the terminal equipment of the auditing user.
On the other hand, the present invention further provides a document generation apparatus, which is operated in an electronic device, wherein the electronic device includes a document synthesis platform, the document synthesis platform is in communication with a plurality of service systems, and the document generation apparatus includes:
a receiving unit, configured to receive a document generation request sent by any system in the multiple service systems;
the determining unit is used for determining the document purpose according to the document generation request and determining a target product according to the document generation request;
the acquisition unit is used for acquiring a document template from a template library according to the target product and the document application;
the determining unit is further configured to acquire user information from the document generation request, and confirm a user identity according to the user information;
the determining unit is further configured to determine product information of the user identity according to the user identity and the target product;
the determining unit is further configured to determine a first position of the user information on the document template, and determine a second position of the product information on the document template;
and the generating unit is used for writing the user information into the first position, writing the product information into the second position and generating a target document.
In another aspect, the present invention further provides an electronic device, including:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the document generation method.
In another aspect, the present invention further provides a computer-readable storage medium, in which computer-readable instructions are stored, and the computer-readable instructions are executed by a processor in an electronic device to implement the document generation method.
According to the technical scheme, the document purpose and the target product can be directly determined from the document generation request by receiving the document generation requests sent by the service systems, so that the document template can be quickly determined from a template library, the user information can be accurately obtained from the document generation request, the user identity corresponding to the document generation request can be accurately determined, the product information corresponding to the user identity and the target product at the same time can be accurately determined, and the target document can be accurately generated by determining the first position and the second position of the user information on the document template. In addition, by developing the document synthesis platform, document synthesis plugins do not need to be installed on each business system, and meanwhile, document synthesis plugins on each business system do not need to be upgraded one by one when templates exist in the template library, so that the generation efficiency of the target documents can be improved.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the document generation method of the present invention.
FIG. 2 is a flow diagram of one embodiment of the present invention for obtaining a document template.
FIG. 3 is a flow diagram of one embodiment of the present invention for determining product information.
FIG. 4 is a functional block diagram of a preferred embodiment of the document creation device of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device implementing the document generation method according to the preferred embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flow chart of a document generation method according to a preferred embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The document generation method is applied to one or more electronic devices, which are devices capable of automatically performing numerical calculation and/or information processing according to computer readable instructions set or stored in advance, and the hardware of the electronic devices includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be any electronic product capable of performing human-computer interaction with a user, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive Internet Protocol Television (IPTV), a smart wearable device, and the like.
The electronic device may include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network electronic device, an electronic device group consisting of a plurality of network electronic devices, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network electronic devices.
The network in which the electronic device is located includes, but is not limited to: the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
The electronic device includes a document composition platform in communication with a plurality of business systems.
And S10, receiving a document generation request sent by any system in the plurality of service systems.
In at least one embodiment of the present invention, the plurality of business systems may include: loan systems, sales systems, etc.
In at least one embodiment of the present invention, the document generation request may be generated by any system triggered by any user, and the information carried by the document generation request includes, but is not limited to: application identification, product number, user information, and the like.
In at least one embodiment of the present invention, when the arbitrary system sends the document generation request to the electronic device, the electronic device performs system verification on the arbitrary system, and when the arbitrary system verification passes, the electronic device receives the document generation request.
Specifically, the electronic device detects whether the arbitrary system is legal, and if the arbitrary system is legal, it is determined that the arbitrary system passes the verification.
And S11, determining the document use according to the document generation request, and determining the target product according to the document generation request.
In at least one embodiment of the invention, the document use refers to the use of documents generated by the document generation request trigger, for example, the document use may be a loan use.
In at least one embodiment of the present invention, the target product refers to a usage product of the document generated by the document generation request trigger, for example, the target product may be an a product.
In at least one embodiment of the present invention, the electronic device determining the use of the document according to the document generation request includes:
analyzing the message of the document generation request to obtain message information carried by the message;
acquiring information indicating the use from the message information as a use identifier;
and determining the usage corresponding to the usage identifier as the document usage.
Wherein, the message information comprises the application identifier.
The purpose identification refers to an identification of purpose, and the purpose identification can uniquely identify the purpose.
Specifically, the electronic device acquires a purpose corresponding to the purpose identifier from a configuration list as the document purpose.
And storing mapping relations between a plurality of purposes and identifications in the configuration list.
According to the embodiment, the whole document generation request does not need to be analyzed, so that the acquisition efficiency of the message information can be improved, and the use of the document can be accurately determined through the use identifier acquired from the message information.
In at least one embodiment of the present invention, the electronic device determining the target product according to the document generation request includes:
acquiring information indicating a product from the message information as a product number;
and determining the product corresponding to the product number as the target product.
Wherein the product number is uniquely indicative of a product.
By the implementation mode, the product number can be quickly acquired from the message information, and the mapping relation between the product number and the product can be favorably and accurately determined for the target product.
And S12, acquiring the document template from the template library according to the target product and the document application.
In at least one embodiment of the present invention, the template library stores a plurality of templates for generating documents, and the template library stores a template mapping table.
The document template is the latest template corresponding to the target product and the document purpose at the same time.
Turning to fig. 2, fig. 2 is a flow diagram of one embodiment of the present invention for obtaining a document template. In at least one embodiment of the present invention, the electronic device obtaining the document template from the template library according to the target product and the document usage comprises:
and S120, acquiring a template mapping table in the template library, wherein the template mapping table stores a plurality of mapping relations between products and addresses.
Wherein the template mapping table may be stored in the template library.
And S121, determining a storage position corresponding to the target product from the template mapping table.
The storage location has stored therein a plurality of templates corresponding to the uses.
And S122, screening out a template corresponding to the document purpose from the storage position as a primary screening template.
Specifically, the electronic device obtains a query template, and writes the document usage into the query template to obtain a query statement. Further, the electronic device queries the storage location by using the query statement to obtain the preliminary screening template.
And S123, acquiring the version number of the primary screening template.
The primary screening template can be provided with a plurality of templates.
And S124, determining the primary screening template with the largest version number as the document template.
The template corresponding to the target product can be determined through the target product, the storage position is further screened out through the storage position, the template range can be reduced, and the document template can be rapidly determined through the version number of the template.
S13, obtaining user information from the document generation request, and confirming the user identity according to the user information.
In at least one embodiment of the present invention, the user information refers to user information in the document generated by the document generation request trigger.
The user identity refers to the identity of the user to which the user information belongs.
In at least one embodiment of the present invention, the electronic device obtaining the user information from the document generation request includes:
and acquiring information indicating a user from the message information as the user information.
In at least one embodiment of the present invention, the electronic device confirming the user identity according to the user information includes:
acquiring information corresponding to a preset identifier from the user information as a user identification code, wherein the preset identifier is used for indicating the identification code;
and determining the identity corresponding to the user identification code as the user identity.
By the embodiment, the user identification code can be accurately extracted from the user information by using the preset identification, and the user identity can be accurately determined according to the user identification code.
S14, determining the product information of the user identity according to the user identity and the target product.
In at least one embodiment of the present invention, the product information refers to information corresponding to the user identity and the target product at the same time. For example, the product information of the user A on the product A is as follows: the credit is excellent.
Turning to fig. 3, fig. 3 is a flow diagram of one embodiment of determining product information in accordance with the present invention. In at least one embodiment of the present invention, the determining, by the electronic device, the product information of the user identity according to the user identity and the target product includes:
and S140, acquiring a credit grade table corresponding to the target product.
Wherein, the credit level table stores the mapping relation between a plurality of users and a plurality of credit levels in the target product.
The electronic equipment can acquire a grade table corresponding to the target product from a configuration grade library as the credit grade table.
And the configuration level library stores the mapping relation between a plurality of products and the level table of the products.
S141, determining the target level of the user identity in the target product from the credit level table.
And S142, acquiring an information list corresponding to the target product.
The information list stores the mapping relation between a plurality of credit levels and corresponding information of a plurality of products.
S143, acquiring information corresponding to the target grade from the information list as the product information.
The target grade of the user identity on the target product can be accurately determined through the credit grade, and then the product information of the user identity on the target product can be accurately obtained from the information list.
S15, determining a first position of the user information on the document template, and determining a second position of the product information on the document template.
In at least one embodiment of the present invention, the first position refers to a filling position of the user information on the document template, and the second position refers to a filling position of the product information on the document template.
In at least one embodiment of the present invention, the electronic device determining the first location of the user information on the document template comprises:
acquiring an information tag of the user information;
determining the label position of the information label on the document template;
determining a location associated with the tag location as the first location.
The information tag is a parameter name corresponding to the user information.
Through the embodiment, the label position can be accurately determined according to the information label of the user information, and the first position can be accurately determined by utilizing the incidence relation between the label and the label value.
Specifically, the electronic device acquires information indicating a tag from the user information as the information tag.
Specifically, the electronic device traverses the document template by using the information tag, and when the information tag is detected on the document template, the electronic device determines a coordinate position of the information tag on the document template, and determines the coordinate position as the tag position.
Specifically, the electronic device obtains a template log of the document template, and obtains a position associated with the label position from the template log as the first position.
In at least one embodiment of the present invention, a manner in which the electronic device determines the second location of the product information on the document template is the same as a manner in which the electronic device determines the first location of the user information on the document template, which is not described in detail herein.
And S16, writing the user information into the first position, and writing the product information into the second position to generate a target document.
It is emphasized that the target document may also be stored in a node of a blockchain in order to further ensure the privacy and security of the target document.
In at least one embodiment of the present invention, the target document is generated after the user information and the product information are written into the document template.
In at least one embodiment of the present invention, the electronic device writes the user information into the first location and writes the product information into the second location, and generating the target document includes:
acquiring the generation time requirement of the document generation request;
determining the total information amount of the user information and the product information;
determining a rate requirement according to the total information amount and the generation time requirement;
acquiring all idle threads from a preset thread pool, and acquiring the processing rates of all the idle threads;
selecting a processing rate larger than the rate requirement as a target rate, and determining an idle thread corresponding to the target rate as a target thread;
and writing the user information into the first position by using the target thread, and writing the product information into the second position to obtain the target document.
Wherein the generation time requirement refers to a response time requirement for the document generation request.
The total information amount is the sum of the information amount of the user information and the information amount of the product information.
The preset thread pool stores a plurality of defined threads.
All idle threads refer to threads that are in an idle state.
By the embodiment, the rate requirement can be determined according to the generation time requirement and the total information amount, and the target thread can be acquired from the preset thread pool according to the rate requirement, so that the target document can be generated within the generation time requirement.
Specifically, the electronic device obtains information indicating a requirement from the message information as the generation time requirement.
Specifically, the electronic device divides the generation time requirement by the total amount of information to obtain the rate requirement.
In at least one embodiment of the invention, after generating the target document, the method further comprises:
acquiring a preset format;
converting the target document into a conversion document with the preset format;
encrypting the converted document to obtain a document ciphertext;
acquiring an auditing user of the target product;
and sending the document ciphertext to the terminal equipment of the auditing user.
The preset format may be a format that is not easily modified, for example, the preset format may be a PDF format.
The auditing user refers to a user for auditing the generation document of the target product.
Through the embodiment, the target document can be converted into the conversion document which is not easy to modify, and then the conversion document is encrypted, so that the safety of the conversion document can be improved, and the document ciphertext is further forwarded to the terminal equipment, so that the verification user can receive the document ciphertext in time, and the conversion document can be verified in time.
According to the technical scheme, the document purpose and the target product can be directly determined from the document generation request by receiving the document generation requests sent by the service systems, so that the document template can be quickly determined from a template library, the user information can be accurately obtained from the document generation request, the user identity corresponding to the document generation request can be accurately determined, the product information corresponding to the user identity and the target product at the same time can be accurately determined, and the target document can be accurately generated by determining the first position and the second position of the user information on the document template. In addition, by developing the document synthesis platform, document synthesis plugins do not need to be installed on each business system, and meanwhile, document synthesis plugins on each business system do not need to be upgraded one by one when templates exist in the template library, so that the generation efficiency of the target documents can be improved.
FIG. 4 is a functional block diagram of a document generation apparatus according to a preferred embodiment of the present invention. The document generation apparatus 11 includes a reception unit 110, a determination unit 111, an acquisition unit 112, a generation unit 113, a conversion unit 114, an encryption unit 115, and a transmission unit 116. The module/unit referred to herein is a series of computer readable instruction segments that can be accessed by the processor 13 and perform a fixed function and that are stored in the memory 12. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments.
The receiving unit 110 receives a document generation request transmitted by any of the plurality of business systems.
The determination unit 111 determines the use of the document based on the document generation request, and determines the target product based on the document generation request.
In at least one embodiment of the present invention, the determining unit 111 determines the use of the document according to the document generation request includes:
analyzing the message of the document generation request to obtain message information carried by the message;
acquiring information indicating the use from the message information as a use identifier;
and determining the usage corresponding to the usage identifier as the document usage.
Wherein, the message information comprises the application identifier.
According to the embodiment, the whole document generation request does not need to be analyzed, so that the acquisition efficiency of the message information can be improved, and the use of the document can be accurately determined through the use identifier acquired from the message information.
In at least one embodiment of the present invention, the determining unit 111 determines the target product according to the document generation request includes:
acquiring information indicating a product from the message information as a product number;
and determining the product corresponding to the product number as the target product.
Wherein the product number is uniquely indicative of a product.
By the implementation mode, the product number can be quickly acquired from the message information, and the mapping relation between the product number and the product can be favorably and accurately determined for the target product.
The obtaining unit 112 obtains the document template from the template library according to the target product and the document usage.
In at least one embodiment of the present invention, the obtaining unit 112 obtains the document template from the template library according to the target product and the document usage comprises:
acquiring a template mapping table in the template library, wherein the template mapping table stores a plurality of mapping relations between products and addresses;
determining a storage position corresponding to the target product from the template mapping table;
screening out a template corresponding to the document application from the storage position as a primary screening template;
acquiring the version number of the primary screening template;
and determining the primary screening template with the largest version number as the document template.
The template corresponding to the target product can be determined through the target product, the storage position is further screened out through the storage position, the template range can be reduced, and the document template can be rapidly determined through the version number of the template.
The determining unit 111 obtains the user information from the document generation request, and confirms the user identity according to the user information.
In at least one embodiment of the present invention, the determining unit 111 obtaining the user information from the document generation request includes:
and acquiring information indicating a user from the message information as the user information.
In at least one embodiment of the present invention, the determining unit 111, according to the user information, confirms the user identity including:
acquiring information corresponding to a preset identifier from the user information as a user identification code, wherein the preset identifier is used for indicating the identification code;
and determining the identity corresponding to the user identification code as the user identity.
By the embodiment, the user identification code can be accurately extracted from the user information by using the preset identification, and the user identity can be accurately determined according to the user identification code.
The determining unit 111 determines the product information of the user identity according to the user identity and the target product.
In at least one embodiment of the present invention, the determining unit 111 determines the product information of the user identity according to the user identity and the target product, including:
acquiring a credit grade table corresponding to the target product;
determining from the credit rating table that the user identity is at a target rating for the target product;
acquiring an information list corresponding to the target product;
and acquiring information corresponding to the target grade from the information list as the product information.
The target grade of the user identity on the target product can be accurately determined through the credit grade, and then the product information of the user identity on the target product can be accurately obtained from the information list.
The determination unit 111 determines a first location of the user information on the document template and determines a second location of the product information on the document template.
In at least one embodiment of the present invention, the determining unit 111 determining the first location of the user information on the document template includes:
acquiring an information tag of the user information;
determining the label position of the information label on the document template;
determining a location associated with the tag location as the first location.
Through the embodiment, the label position can be accurately determined according to the information label of the user information, and the first position can be accurately determined by utilizing the incidence relation between the label and the label value.
In at least one embodiment of the present invention, a manner in which the determining unit 111 determines the second location of the product information on the document template is the same as a manner in which the determining unit 111 determines the first location of the user information on the document template, which is not described in detail herein again.
The generating unit 113 writes the user information into the first location and writes the product information into the second location to generate a target document.
It is emphasized that the target document may also be stored in a node of a blockchain in order to further ensure the privacy and security of the target document.
In at least one embodiment of the present invention, the generating unit 113 writes the user information to the first location and writes the product information to the second location, and generating the target document includes:
acquiring the generation time requirement of the document generation request;
determining the total information amount of the user information and the product information;
determining a rate requirement according to the total information amount and the generation time requirement;
acquiring all idle threads from a preset thread pool, and acquiring the processing rates of all the idle threads;
selecting a processing rate larger than the rate requirement as a target rate, and determining an idle thread corresponding to the target rate as a target thread;
and writing the user information into the first position by using the target thread, and writing the product information into the second position to obtain the target document.
By the embodiment, the rate requirement can be determined according to the generation time requirement and the total information amount, and the target thread can be acquired from the preset thread pool according to the rate requirement, so that the target document can be generated within the generation time requirement.
In at least one embodiment of the present invention, after the target document is generated, the obtaining unit 112 obtains a preset format;
the conversion unit 114 converts the target document into a conversion document having the preset format;
the encryption unit 115 encrypts the converted document to obtain a document ciphertext;
the obtaining unit 112 obtains an auditing user of the target product;
the sending unit 116 sends the document ciphertext to the terminal device of the auditing user.
Through the embodiment, the target document can be converted into the conversion document which is not easy to modify, and then the conversion document is encrypted, so that the safety of the conversion document can be improved, and the document ciphertext is further forwarded to the terminal equipment, so that the verification user can receive the document ciphertext in time, and the conversion document can be verified in time.
According to the technical scheme, the document purpose and the target product can be directly determined from the document generation request by receiving the document generation requests sent by the service systems, so that the document template can be quickly determined from a template library, the user information can be accurately obtained from the document generation request, the user identity corresponding to the document generation request can be accurately determined, the product information corresponding to the user identity and the target product at the same time can be accurately determined, and the target document can be accurately generated by determining the first position and the second position of the user information on the document template. In addition, by developing the document synthesis platform, document synthesis plugins do not need to be installed on each business system, and meanwhile, document synthesis plugins on each business system do not need to be upgraded one by one when templates exist in the template library, so that the generation efficiency of the target documents can be improved.
Fig. 5 is a schematic structural diagram of an electronic device according to a preferred embodiment of the present invention for implementing a document generation method.
In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer readable instructions, such as a document generation program, stored in the memory 12 and executable on the processor 13.
It will be appreciated by a person skilled in the art that the schematic diagram is only an example of the electronic device 1 and does not constitute a limitation of the electronic device 1, and that it may comprise more or less components than shown, or some components may be combined, or different components, e.g. the electronic device 1 may further comprise an input output device, a network access device, a bus, etc.
The Processor 13 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The processor 13 is an operation core and a control center of the electronic device 1, and is connected to each part of the whole electronic device 1 by various interfaces and lines, and executes an operating system of the electronic device 1 and various installed application programs, program codes, and the like.
Illustratively, the computer readable instructions may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing specific functions, which are used for describing the execution process of the computer readable instructions in the electronic device 1. For example, the computer-readable instructions may be divided into a receiving unit 110, a determining unit 111, an obtaining unit 112, a generating unit 113, a converting unit 114, an encrypting unit 115, and a transmitting unit 116.
The memory 12 may be used for storing the computer readable instructions and/or modules, and the processor 13 implements various functions of the electronic device 1 by executing or executing the computer readable instructions and/or modules stored in the memory 12 and invoking data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. The memory 12 may include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other storage device.
The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the memory 12 may be a memory having a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by hardware that is configured to be instructed by computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Wherein the computer readable instructions comprise computer readable instruction code which may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying said computer readable instruction code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM).
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In conjunction with fig. 1, the memory 12 of the electronic device 1 stores computer-readable instructions to implement a document generation method, and the processor 13 executes the computer-readable instructions to implement:
receiving a document generation request sent by any system in the plurality of service systems;
determining the document use according to the document generation request, and determining a target product according to the document generation request;
acquiring a document template from a template library according to the target product and the document application;
acquiring user information from the document generation request, and confirming the user identity according to the user information;
determining product information of the user identity according to the user identity and the target product;
determining a first position of the user information on the document template and determining a second position of the product information on the document template;
and writing the user information into the first position, and writing the product information into the second position to generate a target document.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer readable instructions, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The computer readable storage medium has computer readable instructions stored thereon, wherein the computer readable instructions when executed by the processor 13 are configured to implement the steps of:
receiving a document generation request sent by any system in the plurality of service systems;
determining the document use according to the document generation request, and determining a target product according to the document generation request;
acquiring a document template from a template library according to the target product and the document application;
acquiring user information from the document generation request, and confirming the user identity according to the user information;
determining product information of the user identity according to the user identity and the target product;
determining a first position of the user information on the document template and determining a second position of the product information on the document template;
and writing the user information into the first position, and writing the product information into the second position to generate a target document.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. The plurality of units or devices may also be implemented by one unit or device through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A document generation method is applied to electronic equipment, the electronic equipment comprises a document synthesis platform, the document synthesis platform is communicated with a plurality of service systems, and the document generation method comprises the following steps:
receiving a document generation request sent by any system in the plurality of service systems;
determining the document use according to the document generation request, and determining a target product according to the document generation request;
acquiring a document template from a template library according to the target product and the document application;
acquiring user information from the document generation request, and confirming the user identity according to the user information;
determining product information of the user identity according to the user identity and the target product;
determining a first position of the user information on the document template and determining a second position of the product information on the document template;
and writing the user information into the first position, and writing the product information into the second position to generate a target document.
2. The document generation method of claim 1, wherein the determining a document usage from the document generation request comprises:
analyzing the message of the document generation request to obtain message information carried by the message;
acquiring information indicating the use from the message information as a use identifier;
and determining the usage corresponding to the usage identifier as the document usage.
3. The document generation method of claim 1, wherein said obtaining a document template from a template library based on the target product and the document usage comprises:
acquiring a template mapping table in the template library, wherein the template mapping table stores a plurality of mapping relations between products and addresses;
determining a storage position corresponding to the target product from the template mapping table;
screening out a template corresponding to the document application from the storage position as a primary screening template;
acquiring the version number of the primary screening template;
and determining the primary screening template with the largest version number as the document template.
4. The document generation method of claim 1, wherein the determining product information for the user identity based on the user identity and the target product comprises:
acquiring a credit grade table corresponding to the target product;
determining from the credit rating table that the user identity is at a target rating for the target product;
acquiring an information list corresponding to the target product;
and acquiring information corresponding to the target grade from the information list as the product information.
5. The document generation method of claim 1, wherein the determining a first location of the user information on the document template comprises:
acquiring an information tag of the user information;
determining the label position of the information label on the document template;
determining a location associated with the tag location as the first location.
6. The document generation method of claim 1, wherein the writing the user information to the first location and the product information to the second location, generating a target document comprises:
acquiring the generation time requirement of the document generation request;
determining the total information amount of the user information and the product information;
determining a rate requirement according to the total information amount and the generation time requirement;
acquiring all idle threads from a preset thread pool, and acquiring the processing rates of all the idle threads;
selecting a processing rate larger than the rate requirement as a target rate, and determining an idle thread corresponding to the target rate as a target thread;
and writing the user information into the first position by using the target thread, and writing the product information into the second position to obtain the target document.
7. The document generation method of claim 1, wherein after generating the target document, the method further comprises:
acquiring a preset format;
converting the target document into a conversion document with the preset format;
encrypting the converted document to obtain a document ciphertext;
acquiring an auditing user of the target product;
and sending the document ciphertext to the terminal equipment of the auditing user.
8. A document generation apparatus operable on an electronic device, the electronic device including a document composition platform, the document composition platform in communication with a plurality of business systems, the document generation apparatus comprising:
a receiving unit, configured to receive a document generation request sent by any system in the multiple service systems;
the determining unit is used for determining the document purpose according to the document generation request and determining a target product according to the document generation request;
the acquisition unit is used for acquiring a document template from a template library according to the target product and the document application;
the determining unit is further configured to acquire user information from the document generation request, and confirm a user identity according to the user information;
the determining unit is further configured to determine product information of the user identity according to the user identity and the target product;
the determining unit is further configured to determine a first position of the user information on the document template, and determine a second position of the product information on the document template;
and the generating unit is used for writing the user information into the first position, writing the product information into the second position and generating a target document.
9. An electronic device, characterized in that the electronic device comprises:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the document generation method of any of claims 1 to 7.
10. A computer-readable storage medium characterized by: the computer-readable storage medium has stored therein computer-readable instructions that are executed by a processor in an electronic device to implement the document generation method of any one of claims 1 to 7.
CN202110087161.9A 2021-01-22 2021-01-22 Document generation method, device, equipment and storage medium Pending CN112784566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110087161.9A CN112784566A (en) 2021-01-22 2021-01-22 Document generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110087161.9A CN112784566A (en) 2021-01-22 2021-01-22 Document generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112784566A true CN112784566A (en) 2021-05-11

Family

ID=75758559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110087161.9A Pending CN112784566A (en) 2021-01-22 2021-01-22 Document generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112784566A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591451A (en) * 2021-06-21 2021-11-02 青岛海尔科技有限公司 Electronic document determination method and device, storage medium and processor
CN113642039A (en) * 2021-08-09 2021-11-12 平安科技(深圳)有限公司 Configuration method and device of document template, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472011A (en) * 2018-09-25 2019-03-15 平安科技(深圳)有限公司 Document generation method, device, computer equipment and storage medium
CN111680483A (en) * 2020-05-22 2020-09-18 平安普惠企业管理有限公司 Document template updating method and device, electronic equipment and medium
CN111679975A (en) * 2020-05-28 2020-09-18 平安普惠企业管理有限公司 Document generation method and device, electronic equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109472011A (en) * 2018-09-25 2019-03-15 平安科技(深圳)有限公司 Document generation method, device, computer equipment and storage medium
CN111680483A (en) * 2020-05-22 2020-09-18 平安普惠企业管理有限公司 Document template updating method and device, electronic equipment and medium
CN111679975A (en) * 2020-05-28 2020-09-18 平安普惠企业管理有限公司 Document generation method and device, electronic equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591451A (en) * 2021-06-21 2021-11-02 青岛海尔科技有限公司 Electronic document determination method and device, storage medium and processor
CN113642039A (en) * 2021-08-09 2021-11-12 平安科技(深圳)有限公司 Configuration method and device of document template, computer equipment and storage medium
CN113642039B (en) * 2021-08-09 2024-05-28 平安科技(深圳)有限公司 Configuration method and device of document template, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109040341B (en) Intelligent contract address generation method and device, computer equipment and readable storage medium
CN112669138B (en) Data processing method and related equipment
WO2021217863A1 (en) Order identifier generation method and apparatus, server, and storage medium
CN111475513B (en) Form generation method and device, electronic equipment and medium
CN112667240A (en) Program code conversion method and related device
CN109447820B (en) Data processing method, device, computer equipment and storage medium
JP2021518021A (en) Data processing methods, equipment and computer readable storage media
CN111797351A (en) Page data management method and device, electronic equipment and medium
CN113050900A (en) Screen sharing method, device, equipment and storage medium
CN112784566A (en) Document generation method, device, equipment and storage medium
CN112632163B (en) Big data report export method and related equipment
CN112948418A (en) Dynamic query method, device, equipment and storage medium
CN112711398A (en) Method, device and equipment for generating buried point file and storage medium
CN116360769A (en) Code generation method, device, equipment and storage medium
CN112053143B (en) Fund routing method, apparatus, electronic device and storage medium
CN112416583A (en) High-frequency request processing method and device, electronic equipment and storage medium
CN111814045A (en) Data query method and device, electronic equipment and storage medium
CN111931214A (en) Data processing method, device, server and storage medium
CN112947911A (en) Interface script generation method, device, equipment and storage medium
CN112819305A (en) Service index analysis method, device, equipment and storage medium
CN112711696A (en) Request access method, device, electronic equipment and storage medium
CN112053058A (en) Index model generation method and device
CN112434062A (en) Quasi-real-time data processing method, device, server and storage medium
CN112134968A (en) Domain name access method and device, electronic equipment and storage medium
CN112434506A (en) Electronic protocol signing processing method, device, computer equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination