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

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

Info

Publication number
CN112579867A
CN112579867A CN202011457608.9A CN202011457608A CN112579867A CN 112579867 A CN112579867 A CN 112579867A CN 202011457608 A CN202011457608 A CN 202011457608A CN 112579867 A CN112579867 A CN 112579867A
Authority
CN
China
Prior art keywords
document
target
data
generation request
template
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
CN202011457608.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 CN202011457608.9A priority Critical patent/CN112579867A/en
Publication of CN112579867A publication Critical patent/CN112579867A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application relates to the technical field of artificial intelligence and discloses a document generation method, a device, equipment and a storage medium, wherein the method comprises the following steps: searching from a document dimension chain library according to the process node identification of the document to be generated to obtain a target document template identification corresponding to the process node identification of the document to be generated; searching from a document template library according to the target document template identifier to obtain target file data and a target parameter configuration result corresponding to the target document template identifier; generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed; acquiring target signature data which is sent by a target application system and corresponds to a document to be signed; and generating a document according to the target signature data and the document to be signed to obtain the target document. Therefore, errors in document making are avoided, document making efficiency is improved, and persons who do not know the technology can make documents and associate the documents with the business process.

Description

Document generation method, device, equipment and storage medium
Technical Field
The present application relates to the field of artificial intelligence technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a document.
Background
Various documents are needed in various business processes, and document making is needed before document synthesis and display. In the prior art, the mode of directly updating data in a database is adopted for document making, but the mode is easy to make mistakes and low in efficiency, and a maker is required to understand certain technology, so that the document making has great limitation, and the requirements of rapidly and qualitatively meeting the document making cannot be met.
Disclosure of Invention
The present application mainly aims to provide a document generation method, device, equipment and storage medium, and aims to solve the technical problems that in the prior art, documents are made by directly updating data in a database, a maker is required to understand the technology, and errors are easy to occur and the efficiency is low.
In order to achieve the above object, the present application provides a document generation method, including:
acquiring a document generation request sent by a target application system, wherein the document generation request carries a process node identifier of a document to be generated and user information data;
responding to the document generation request, acquiring a document dimension chain library, searching from the document dimension chain library according to the process node identification of the document to be generated, and acquiring a target document template identification corresponding to the process node identification of the document to be generated;
searching from a document template library according to the target document template identification to obtain target file data and a target parameter configuration result corresponding to the target document template identification;
generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed;
sending the document to be signed to the target application system;
acquiring target signature data which is sent by the target application system and corresponds to the document to be signed;
and generating a document according to the target signature data and the document to be signed to obtain the target document.
Further, before the step of obtaining the chain library of document dimensions, the method further includes:
acquiring a dimension chain node generation request, wherein the dimension chain node generation request carries a process node identification;
responding to the dimension chain node generation request, acquiring a document template generation request, and determining a document template identifier to be added according to the document template generation request;
associating the document template identifier to be added with the process node identifier carried by the dimension link point generation request to obtain dimension link point data to be stored;
and updating the document dimension chain library according to the dimension chain link data to be stored.
Further, the step of obtaining the document template generation request and determining the document template identifier to be added according to the document template generation request includes:
acquiring the document template generation request, wherein the document template generation request carries a document template identifier;
and taking the document template identification carried by the document template generation request as the document template identification to be added.
Further, the step of obtaining the document template generation request and determining the document template identifier to be added according to the document template generation request further includes:
acquiring the document template generation request, wherein the document template generation request carries a document data identifier and a parameter configuration result;
generating a document template to be added and a document template identifier to be added according to the document data identifier and the parameter configuration result carried by the document template generation request;
and updating the document template library according to the document template to be added and the document template identifier to be added.
Further, the step of generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed includes:
generating user parameters according to the target parameter configuration result and the user information data to obtain a user parameter updating result;
acquiring seal data, and generating seal parameters according to the target parameter configuration result and the seal data to obtain a seal parameter updating result;
acquiring current date data, and generating date parameters according to the target parameter configuration result and the current date data to obtain a date parameter updating result;
determining the target parameter updating result according to the user parameter updating result, the seal parameter updating result and the date parameter updating result;
and generating a document according to the target file data and the target parameter updating result to obtain the document to be signed.
Further, the step of generating a document according to the target signature data and the document to be signed to obtain the target document includes:
performing signature authenticity judgment according to the user information data and the target signature data to obtain a signature authenticity judgment result;
when the signature authenticity judgment result is that the target document passes, generating a document according to the target signature data and the document to be signed to obtain the target document;
and when the signature authenticity judgment result is that the signature does not pass, sending re-signature information to the target application system corresponding to the document generation request.
Further, the step of performing signature authenticity judgment according to the user information data and the target signature data to obtain a signature authenticity judgment result includes:
inputting the target signature data into a character recognition model for character recognition to obtain a character recognition result, wherein the character recognition model is a model obtained based on neural network training;
acquiring a user name from the user information data;
comparing the character recognition result with the user name;
and when the character recognition result is the same as the user name, determining that the signature authenticity judgment result is passed, otherwise, determining that the signature authenticity judgment result is not passed.
The present application further provides a document generation apparatus, the apparatus comprising:
the document generation request acquisition module is used for acquiring a document generation request sent by a target application system, wherein the document generation request carries a process node identifier of a document to be generated and user information data;
the document template identification determining module is used for responding to the document generation request, acquiring a document dimension chain library, searching from the document dimension chain library according to the process node identification of the document to be generated, and obtaining a target document template identification corresponding to the process node identification of the document to be generated;
the document data and parameter configuration result determining module is used for searching from a document template library according to the target document template identifier to obtain target document data and a target parameter configuration result corresponding to the target document template identifier;
the document to be signed generating module is used for generating documents according to the target file data, the target parameter configuration result and the user information data to obtain documents to be signed;
the signature data acquisition module is used for sending the document to be signed to the target application system and acquiring target signature data which is sent by the target application system and corresponds to the document to be signed;
and the target document generation module is used for generating documents according to the target signature data and the document to be signed to obtain the target document.
The present application further proposes a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also proposes a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
The document generation method, the device, the equipment and the storage medium of the application obtain the target document template identification corresponding to the process node identification of the document to be generated by searching from a document dimension chain library according to the process node identification of the document to be generated, obtain the target document data and the target parameter configuration result corresponding to the target document template identification by searching from a document template library according to the target document template identification, obtain the document to be signed, obtain the target signature data corresponding to the document to be signed and sent by a target application system, and obtain the target document by generating the document according to the target signature data and the document to be signed, thereby realizing the automatic document making under the condition that the data updating mode of the database is not directly adopted, the error of making the document is avoided, and the document making efficiency is improved; through the document dimension chain library, the document template library and the target parameter configuration result, the personnel who do not know the technology can also make the document and associate the document with the business process, the dependence of the front-line personnel on developers is reduced, the development cost is saved, and the product online period is shortened.
Drawings
Fig. 1 is a schematic flowchart of a document generation method according to an embodiment of the present application;
FIG. 2 is a block diagram of a document generation apparatus according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In order to solve the technical problems that in the prior art, a mode of directly updating data in a database is adopted for document making, a maker is required to understand the technology, mistakes are easy to make, and the efficiency is low, the document generation method is provided, and is applied to the technical field of artificial intelligence, and further applied to the technical field of distributed artificial intelligence of artificial intelligence. The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices. According to the document generation method, document making is automatically carried out under the condition that a mode of directly updating data in a database is not adopted through a document dimension chain library, a document template library and a target parameter configuration result, document making errors are avoided, document making efficiency is improved, and persons who do not know the technology can make documents and associate the documents with a business process.
Referring to fig. 1, in an embodiment, the document generation method disclosed in the present application includes:
s1: acquiring a document generation request sent by a target application system, wherein the document generation request carries a process node identifier of a document to be generated and user information data;
s2: responding to the document generation request, acquiring a document dimension chain library, searching from the document dimension chain library according to the process node identification of the document to be generated, and acquiring a target document template identification corresponding to the process node identification of the document to be generated;
s3: searching from a document template library according to the target document template identification to obtain target file data and a target parameter configuration result corresponding to the target document template identification;
s4: generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed;
s5: sending the document to be signed to the target application system;
s6: acquiring target signature data which is sent by the target application system and corresponds to the document to be signed;
s7: and generating a document according to the target signature data and the document to be signed to obtain the target document.
The embodiment searches from the document dimension chain library according to the process node identification of the document to be generated to obtain the target document template identification corresponding to the process node identification of the document to be generated, searching from the document template library according to the target document template identification to obtain target file data and target parameter configuration result corresponding to the target document template identification, generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed, acquiring target signature data which is sent by a target application system and corresponds to the document to be signed, the document is generated according to the target signature data and the document to be signed to obtain the target document, so that the document is automatically made under the condition that a mode of directly updating data in a database is not adopted, errors in making the document are avoided, and the document making efficiency is improved; through the document dimension chain library, the document template library and the target parameter configuration result, the personnel who do not know the technology can also make the document and associate the document with the business process, the dependence of the front-line personnel on developers is reduced, the development cost is saved, and the product online period is shortened.
For S1, the document generation request is a request for generating a document.
Documents include, but are not limited to: information authority, service entrustment, entrustment guarantee contract, personal credit investigation authority, application form, borrowing contract and confidentiality agreement.
The target application system, i.e. the application system that needs to generate the document. Application systems include, but are not limited to: loan management system, insurance sales system, insurance management system.
And the process node identifier of the document to be generated is the process node identifier of the document to be generated. The process node identifier may be an identifier that uniquely identifies one process node, such as a process node name and a process node ID.
And the process node corresponding to the process node identifier of the document to be generated is a node of a service process of the target application system. For example, the node of the loan application business process of the loan management system is a process node corresponding to the process node identifier of the document to be generated, which is not specifically limited in this example. For another example, the node of the insurance purchase business process of the insurance sales system is a process node corresponding to the process node identifier of the document to be generated, which is not limited in this example.
For example, in the loan application business process of the loan management system, documents that the user needs to view before applying for a loan include: the system comprises an information authorization book, a service entrustment book and a personal credit investigation authorization book, wherein a user can apply for loan after authorization, and documents needing to be checked and agreed during loan application comprise: the loan contract, the service entrustment and the entrustment guarantee contract (required when having guarantee), and the documents which need to be agreed include the following documents when the repayment account needs to be changed after loan: the (returned) payment account change confirmation is received, and the documents received after the loan settlement comprise: the present application is made in advance, and examples thereof are not limited thereto.
User information data includes, but is not limited to: customer name, identity information, customer contact address. Identity information includes, but is not limited to: identification number, passport number.
For S2, responding to the document generation request, acquiring a document dimension chain library from a database, searching the process node identification of the document to be generated from the document dimension chain library, and taking the process node identification searched from the document dimension chain library as a target process node identification; and taking the document template identification corresponding to the target process node identification in the document dimension chain library as the target document template identification corresponding to the process node identification of the document to be generated.
The chain library of document dimensions includes a plurality of dimension link point data. Dimension link point data includes, but is not limited to: the system comprises process node identification, document template identification and node description information, wherein each process node identification in the dimension chain link data corresponds to one or more document template identifications.
For example, the complete information of the dimension chain node is as follows:
{ "BPRD": PH100010001"," BusinessLine ": 10001", "Credit increase": 1011"," Credit investment ": 1001", "Fundsource": LZCCB "," Process ": LOAN _ ADVA NCE", "deptCode": DZ "}, wherein PH100010001 and 10001 indicate mortgage products, 1011 and 1001 indicate credit and credit parties are company A and company B, respectively, LZCCB indicates capital party (i.e. bank for deposit), LOAN _ ADVANCE indicates deposit link, DZ indicates mortgage department, without limitation to this example.
The same document template identifier may correspond to multiple process node identifiers. Such as: the document corresponding to the signing link (business process node) comprises: the borrowing use acceptance letter and the information authorization book are documents corresponding to a loan application link (business process node), and the borrowing use acceptance letter is also documents corresponding to a scheme confirmation link (business process node), which is not specifically limited in this example.
The document template identifier may be a unique identifier for identifying a document template, such as a document template name and a document template ID.
Optionally, the chain library of document dimensions further includes: and identifying the business process. The service flow identifier may be a service flow name, a service flow ID, or the like, which uniquely identifies a service flow.
For step S3, the target document template identifier is searched from the document template library, the document data corresponding to the document template identifier searched from the document template library is used as the target document data corresponding to the target document template identifier, and the parameter configuration result corresponding to the document template identifier searched from the document template library is used as the target parameter configuration result corresponding to the target document template identifier.
And S4, updating the parameters in the target file data according to the target parameter configuration result, adding the user information data to the user information position in the target file data to generate a document, and taking the generated document as the document to be signed.
The document to be signed is a document which needs to be signed and confirmed by the user.
And S5, the document to be signed is sent to the target application system corresponding to the document generation request. And the target application system displays the document to be signed.
For S6, target signature data corresponding to the document to be signed sent by the user through the target application system is obtained.
The target signature data is signature data generated by signing the user on the target application system corresponding to the user information data. The signature data is image data including a user signature.
And S7, adding the target signature data to the signature column of the document to be signed to generate the document, and obtaining the target document.
In an embodiment, before the step of obtaining the chain library of document dimensions, the method further includes:
s21: acquiring a dimension chain node generation request, wherein the dimension chain node generation request carries a process node identification;
s22: responding to the dimension chain node generation request, acquiring a document template generation request, and determining a document template identifier to be added according to the document template generation request;
s23: associating the document template identifier to be added with the process node identifier carried by the dimension link point generation request to obtain dimension link point data to be stored;
s24: and updating the document dimension chain library according to the dimension chain link data to be stored.
According to the method and the device, the dimension link data to be stored is generated before the step of obtaining the document dimension link library, the dimension link data to be stored is updated into the document dimension link library, the relation between the process node identification and the document template identification can be rapidly determined through the document dimension link library, and therefore a data basis is provided for automatically making documents based on the document dimension link library.
For S21, a dimension link point generation request sent by the user is obtained.
The dimension-link-point generation request is a request for generating dimension-link-point data.
And S22, responding to the dimension link point generation request, acquiring a document template generation request input by a user, and acquiring a document template identifier as a document template identifier to be added according to the document template generation request.
The document template identifier to be added refers to a document template identifier which needs to be associated with the process node identifier carried by the dimension chain node generation request.
And S23, associating the document template identifier to be added with the flow node identifier carried by the dimension link point generation request to obtain an association result, and taking the association result as the dimension link point data to be stored.
The dimension link point data to be stored is the dimension link point data to be stored.
For S24, storing the dimension link point data to be stored to the document dimension link library.
In an embodiment, the step of obtaining the document template generation request and determining the document template identifier to be added according to the document template generation request includes:
s2211: acquiring the document template generation request, wherein the document template generation request carries a document template identifier;
s2212: and taking the document template identification carried by the document template generation request as the document template identification to be added.
The embodiment realizes that the document template identification input by the user is taken as the document template identification to be added, the operation is simple, and the efficiency is improved.
For S2211, the user inputs the document template identification, and sends the document template generation request according to the input document template identification.
And for S2212, directly taking the document template identifier carried by the document template generation request as the document template identifier to be added.
In an embodiment, the step of obtaining the document template generation request and determining the document template identifier to be added according to the document template generation request further includes:
s2221: acquiring the document template generation request, wherein the document template generation request carries a document data identifier and a parameter configuration result;
s2222: generating a document template to be added and a document template identifier to be added according to the document data identifier and the parameter configuration result carried by the document template generation request;
s2223: and updating the document template library according to the document template to be added and the document template identifier to be added.
According to the document template adding method and device, the document template is added firstly, then the document template identification to be added which needs to be added to the dimensionality chain link data is generated, the document template is generated when the dimensionality chain link data is added by a user, the personalized operation requirement of the user is met, and the user experience is improved.
For S2221, a user acquires the file data to be stored from a file database, and performs parameter configuration according to the file data to be stored to obtain a parameter configuration result corresponding to the file data to be stored; and the user sends the document template generation request according to the document data to be stored and the parameter configuration result corresponding to the document data to be stored, the document data identifier corresponding to the document data to be stored is used as the document data identifier carried by the document template generation request, and the parameter configuration result corresponding to the document data to be stored is used as the parameter configuration result carried by the document template generation request.
The document data identifier may be a unique identifier for identifying a piece of document data, such as a name of the document data, an ID of the document data, or the like.
The parameter configuration result is the result of the configuration parameters in the file data corresponding to the file data identifier.
Optionally, before the step of obtaining the document template generation request, the method further includes:
s22211: acquiring a file data adding request, wherein the file data adding request carries file data to be added;
the method comprises the steps of obtaining a file data adding request input by a user.
S22212: determining the file data identifier to be added according to the file data to be added;
and generating a unique file data identifier according to the file data to be added, and taking the generated file data identifier as the file data identifier to be added.
S22213: and updating the file database according to the file data identifier to be added and the file data to be added.
And associating the to-be-added file data identifier with the to-be-added file data, and storing the associated to-be-added file data identifier and the to-be-added file data in a file database.
Optionally, before the step of obtaining the document template generation request, the method further includes:
s22213: acquiring a parameter configuration item adding request, wherein the parameter configuration item adding request carries a parameter configuration item to be added;
the method comprises the steps of obtaining a parameter configuration item adding request input by a user.
The parameter configuration items to be added are the parameter configuration items required to be added into the parameter configuration item library.
Parameter configuration items include, but are not limited to: the method comprises the steps of obtaining a configuration item of a client name, obtaining a configuration item of a client contact address, obtaining a configuration item of a signing date, obtaining a configuration item of a seal and obtaining a configuration item of the seal of a guarantee company.
It can be understood that each configuration item of the parameter configuration items is implemented in a functional manner, and data can be dynamically acquired.
S22214: determining the identifier of the parameter configuration item to be added according to the parameter configuration item to be added;
and generating a unique parameter configuration item identifier according to the parameter configuration item to be added, and taking the generated parameter configuration item identifier as the parameter configuration item identifier to be added.
S22215: and updating a parameter configuration item library according to the identifier of the parameter configuration item to be added and the parameter configuration item to be added.
And associating the identifier of the parameter configuration item to be added with the parameter configuration item to be added, and storing the associated identifier of the parameter configuration item to be added and the parameter configuration item to be added into a parameter configuration item library.
For S2222, the parameter configuration result carried by the document template generation request is updated to the document data corresponding to the document data identifier carried by the document template generation request, the updated document data is used as the document template to be added, the document template identifier is distributed to the document template to be added, and the distributed document template identifier is used as the document template identifier to be added.
And for S2223, the document template to be added and the document template identifier to be added are associated, and the associated document template to be added and the document template identifier to be added are added into the document template library.
In an embodiment, the step of generating a document according to the target document data, the target parameter configuration result, and the user information data to obtain a document to be signed includes:
generating user parameters according to the target parameter configuration result and the user information data to obtain a user parameter updating result;
acquiring seal data, and generating seal parameters according to the target parameter configuration result and the seal data to obtain a seal parameter updating result;
acquiring current date data, and generating date parameters according to the target parameter configuration result and the current date data to obtain a date parameter updating result;
determining the target parameter updating result according to the user parameter updating result, the seal parameter updating result and the date parameter updating result;
generating a document according to the target file data and the target parameter updating result to obtain the document to be signed
S41: generating user parameters according to the target parameter configuration result and the user information data to obtain a user parameter updating result;
s42: acquiring seal data, and generating seal parameters according to the target parameter configuration result and the seal data to obtain a seal parameter updating result;
s43: acquiring current date data, and generating date parameters according to the target parameter configuration result and the current date data to obtain a date parameter updating result;
s44: determining the target parameter updating result according to the user parameter updating result, the seal parameter updating result and the date parameter updating result;
s45: and generating a document according to the target file data and the target parameter updating result to obtain the document to be signed.
According to the method and the device, the target parameter updating result is determined automatically according to the user parameter updating result, the seal parameter updating result and the date parameter updating result, the operation of a document making worker is reduced, the error of manual operation is avoided, the accuracy of the document to be signed is improved, and the user experience is improved.
And S41, acquiring the user parameters from the user information data according to the target parameter configuration result, and acquiring a user parameter updating result.
For S42, the seal data may be obtained from a database, or may be the seal data input by the user, or may be the seal data sent by a third-party application system.
The stamp data is image data including a stamp pattern.
And searching the seal pattern from the seal data according to the target parameter configuration result to obtain a seal parameter updating result.
For S43, the current date data refers to the date on which the document to be signed is determined, which can be obtained from the server on which the program file implementing the document generation method of the present application is located.
And searching the date from the current date data according to the target parameter configuration result to obtain a date parameter updating result.
And S44, putting the user parameter updating result, the seal parameter updating result and the date parameter updating result into a list as the target parameter updating result.
And S45, updating the target parameter updating result to the target file data to obtain a document, and taking the obtained document as the document to be signed.
In an embodiment, the step of generating the document according to the target signature data and the document to be signed to obtain the target document includes:
s71: performing signature authenticity judgment according to the user information data and the target signature data to obtain a signature authenticity judgment result;
s72: when the signature authenticity judgment result is that the target document passes, generating a document according to the target signature data and the document to be signed to obtain the target document;
s73: and when the signature authenticity judgment result is that the signature does not pass, sending re-signature information to the target application system corresponding to the document generation request.
This embodiment has realized judging the signature authenticity, avoids the signature mistake to bring legal risk, has further improved user experience.
For S71, comparing the name of the user information data with the name of the target signature data, and determining that the signature authenticity judgment result is passed when the name of the user information data is the same as the name of the target signature data, or determining that the signature authenticity judgment result is not passed.
For S72, when the signature authenticity determination result is that the signature is passed, it means that the name of the user information data is the same as the name in the target signature data, and at this time, the target signature data and the document to be signed are subjected to document generation to obtain the target document, thereby improving authenticity and identifiability of the target signature data in the target document.
For S73, when the signature authenticity determination result is that the signature does not pass, it means that the name of the user information data is different from the name in the target signature data, and at this time, re-signing information needs to be sent to the target application system corresponding to the document generation request to re-acquire the target signature data, so as to avoid that the target signature data in the target document is different from the user information data.
In an embodiment, the step of performing signature authenticity judgment according to the user information data and the target signature data to obtain a signature authenticity judgment result includes:
s711: inputting the target signature data into a character recognition model for character recognition to obtain a character recognition result, wherein the character recognition model is a model obtained based on neural network training;
s712: acquiring a user name from the user information data;
s713: comparing the character recognition result with the user name;
s714: and when the character recognition result is the same as the user name, determining that the signature authenticity judgment result is passed, otherwise, determining that the signature authenticity judgment result is not passed.
According to the embodiment, signature authenticity judgment is carried out on the user information data and the target signature data based on the character recognition model, so that legal risks caused by signature errors are avoided, and user experience is further improved.
For S711, the target signature data is input into a character recognition model for character recognition, that is, text information is recognized from the image data.
For S713, the name of the text recognition result is compared with the user name.
For S714, when the character recognition result is the same as the user name, meaning that the name of the user information data is the same as the name of the target signature data, the signature authenticity determination result is determined to be passed, thereby improving authenticity and identifiability of the target signature data in the target document. When the character recognition result is different from the user name, the name of the user information data is different from the name of the target signature data, and the signature authenticity judgment result is determined to be not passed, so that the target signature data in the target document is prevented from being different from the user information data.
With reference to fig. 2, the present application also proposes a document generation apparatus, comprising:
a document generation request obtaining module 100, configured to obtain a document generation request sent by a target application system, where the document generation request carries a process node identifier of a document to be generated and user information data;
the document template identifier determining module 200 is configured to respond to the document generation request, acquire a document dimension chain library, search from the document dimension chain library according to the process node identifier of the document to be generated, and obtain a target document template identifier corresponding to the process node identifier of the document to be generated;
a document data and parameter configuration result determining module 300, configured to search from a document template library according to the target document template identifier, and obtain target document data and a target parameter configuration result corresponding to the target document template identifier;
a to-be-signed document generation module 400, configured to generate a document according to the target document data, the target parameter configuration result, and the user information data, so as to obtain a to-be-signed document;
a signature data acquiring module 500, configured to send the document to be signed to the target application system, and acquire target signature data corresponding to the document to be signed, which is sent by the target application system;
and the target document generating module 600 is configured to generate a document according to the target signature data and the document to be signed, so as to obtain a target document.
The embodiment searches from the document dimension chain library according to the process node identification of the document to be generated to obtain the target document template identification corresponding to the process node identification of the document to be generated, searching from the document template library according to the target document template identification to obtain target file data and target parameter configuration result corresponding to the target document template identification, generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed, acquiring target signature data which is sent by a target application system and corresponds to the document to be signed, the document is generated according to the target signature data and the document to be signed to obtain the target document, so that the document is automatically made under the condition that a mode of directly updating data in a database is not adopted, errors in making the document are avoided, and the document making efficiency is improved; through the document dimension chain library, the document template library and the target parameter configuration result, the personnel who do not know the technology can also make the document and associate the document with the business process, the dependence of the front-line personnel on developers is reduced, the development cost is saved, and the product online period is shortened.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data such as document generation methods and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a document generation method. The document generation method comprises the following steps: acquiring a document generation request sent by a target application system, wherein the document generation request carries a process node identifier of a document to be generated and user information data; responding to the document generation request, acquiring a document dimension chain library, searching from the document dimension chain library according to the process node identification of the document to be generated, and acquiring a target document template identification corresponding to the process node identification of the document to be generated; searching from a document template library according to the target document template identification to obtain target file data and a target parameter configuration result corresponding to the target document template identification; generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed; sending the document to be signed to the target application system; acquiring target signature data which is sent by the target application system and corresponds to the document to be signed; and generating a document according to the target signature data and the document to be signed to obtain the target document.
The embodiment searches from the document dimension chain library according to the process node identification of the document to be generated to obtain the target document template identification corresponding to the process node identification of the document to be generated, searching from the document template library according to the target document template identification to obtain target file data and target parameter configuration result corresponding to the target document template identification, generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed, acquiring target signature data which is sent by a target application system and corresponds to the document to be signed, the document is generated according to the target signature data and the document to be signed to obtain the target document, so that the document is automatically made under the condition that a mode of directly updating data in a database is not adopted, errors in making the document are avoided, and the document making efficiency is improved; through the document dimension chain library, the document template library and the target parameter configuration result, the personnel who do not know the technology can also make the document and associate the document with the business process, the dependence of the front-line personnel on developers is reduced, the development cost is saved, and the product online period is shortened.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing a document generation method, including the steps of: acquiring a document generation request sent by a target application system, wherein the document generation request carries a process node identifier of a document to be generated and user information data; responding to the document generation request, acquiring a document dimension chain library, searching from the document dimension chain library according to the process node identification of the document to be generated, and acquiring a target document template identification corresponding to the process node identification of the document to be generated; searching from a document template library according to the target document template identification to obtain target file data and a target parameter configuration result corresponding to the target document template identification; generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed; sending the document to be signed to the target application system; acquiring target signature data which is sent by the target application system and corresponds to the document to be signed; and generating a document according to the target signature data and the document to be signed to obtain the target document.
The executed document generation method obtains the target document template identification corresponding to the process node identification of the document to be generated by searching from the document dimension chain library according to the process node identification of the document to be generated, obtains the target document data and the target parameter configuration result corresponding to the target document template identification by searching from the document template library according to the target document template identification, obtains the document to be signed by generating the document according to the target document data, the target parameter configuration result and the user information data, obtains the target signature data corresponding to the document to be signed sent by the target application system, and obtains the target document by generating the document according to the target signature data and the document to be signed, thereby realizing automatic document production without directly updating data in a database and avoiding document production errors, the document making efficiency is improved; through the document dimension chain library, the document template library and the target parameter configuration result, the personnel who do not know the technology can also make the document and associate the document with the business process, the dependence of the front-line personnel on developers is reduced, the development cost is saved, and the product online period is shortened.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may 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 a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method of document generation, the method comprising:
acquiring a document generation request sent by a target application system, wherein the document generation request carries a process node identifier of a document to be generated and user information data;
responding to the document generation request, acquiring a document dimension chain library, searching from the document dimension chain library according to the process node identification of the document to be generated, and acquiring a target document template identification corresponding to the process node identification of the document to be generated;
searching from a document template library according to the target document template identification to obtain target file data and a target parameter configuration result corresponding to the target document template identification;
generating a document according to the target file data, the target parameter configuration result and the user information data to obtain a document to be signed;
sending the document to be signed to the target application system;
acquiring target signature data which is sent by the target application system and corresponds to the document to be signed;
and generating a document according to the target signature data and the document to be signed to obtain the target document.
2. The document generation method according to claim 1, wherein the step of obtaining the document dimension chain library further comprises:
acquiring a dimension chain node generation request, wherein the dimension chain node generation request carries a process node identification;
responding to the dimension chain node generation request, acquiring a document template generation request, and determining a document template identifier to be added according to the document template generation request;
associating the document template identifier to be added with the process node identifier carried by the dimension link point generation request to obtain dimension link point data to be stored;
and updating the document dimension chain library according to the dimension chain link data to be stored.
3. The document generation method according to claim 2, wherein the step of obtaining the document template generation request and determining the document template identifier to be added according to the document template generation request includes:
acquiring the document template generation request, wherein the document template generation request carries a document template identifier;
and taking the document template identification carried by the document template generation request as the document template identification to be added.
4. The document generation method according to claim 2, wherein the step of obtaining the document template generation request and determining the document template identifier to be added according to the document template generation request further comprises:
acquiring the document template generation request, wherein the document template generation request carries a document data identifier and a parameter configuration result;
generating a document template to be added and a document template identifier to be added according to the document data identifier and the parameter configuration result carried by the document template generation request;
and updating the document template library according to the document template to be added and the document template identifier to be added.
5. The document generation method according to claim 1, wherein the step of generating a document to be signed according to the target document data, the target parameter configuration result, and the user information data includes:
generating user parameters according to the target parameter configuration result and the user information data to obtain a user parameter updating result;
acquiring seal data, and generating seal parameters according to the target parameter configuration result and the seal data to obtain a seal parameter updating result;
acquiring current date data, and generating date parameters according to the target parameter configuration result and the current date data to obtain a date parameter updating result;
determining the target parameter updating result according to the user parameter updating result, the seal parameter updating result and the date parameter updating result;
and generating a document according to the target file data and the target parameter updating result to obtain the document to be signed.
6. The document generation method of claim 1, wherein said step of generating a document based on said target signature data and said document to be signed to obtain a target document comprises:
performing signature authenticity judgment according to the user information data and the target signature data to obtain a signature authenticity judgment result;
when the signature authenticity judgment result is that the target document passes, generating a document according to the target signature data and the document to be signed to obtain the target document;
and when the signature authenticity judgment result is that the signature does not pass, sending re-signature information to the target application system corresponding to the document generation request.
7. The document generation method according to claim 6, wherein said step of performing signature authenticity judgment based on said user information data and said target signature data to obtain a signature authenticity judgment result comprises:
inputting the target signature data into a character recognition model for character recognition to obtain a character recognition result, wherein the character recognition model is a model obtained based on neural network training;
acquiring a user name from the user information data;
comparing the character recognition result with the user name;
and when the character recognition result is the same as the user name, determining that the signature authenticity judgment result is passed, otherwise, determining that the signature authenticity judgment result is not passed.
8. An apparatus for generating documents, the apparatus comprising:
the document generation request acquisition module is used for acquiring a document generation request sent by a target application system, wherein the document generation request carries a process node identifier of a document to be generated and user information data;
the document template identification determining module is used for responding to the document generation request, acquiring a document dimension chain library, searching from the document dimension chain library according to the process node identification of the document to be generated, and obtaining a target document template identification corresponding to the process node identification of the document to be generated;
the document data and parameter configuration result determining module is used for searching from a document template library according to the target document template identifier to obtain target document data and a target parameter configuration result corresponding to the target document template identifier;
the document to be signed generating module is used for generating documents according to the target file data, the target parameter configuration result and the user information data to obtain documents to be signed;
the signature data acquisition module is used for sending the document to be signed to the target application system and acquiring target signature data which is sent by the target application system and corresponds to the document to be signed;
and the target document generation module is used for generating documents according to the target signature data and the document to be signed to obtain the target document.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011457608.9A 2020-12-10 2020-12-10 Document generation method, device, equipment and storage medium Pending CN112579867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011457608.9A CN112579867A (en) 2020-12-10 2020-12-10 Document generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011457608.9A CN112579867A (en) 2020-12-10 2020-12-10 Document generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112579867A true CN112579867A (en) 2021-03-30

Family

ID=75131527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011457608.9A Pending CN112579867A (en) 2020-12-10 2020-12-10 Document generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112579867A (en)

Cited By (1)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140006240A1 (en) * 2012-06-28 2014-01-02 Sap Ag Consistent interface for customer contract and customer contract template - message set 2
CN109472011A (en) * 2018-09-25 2019-03-15 平安科技(深圳)有限公司 Document generation method, device, computer equipment and storage medium
CN110148050A (en) * 2019-04-15 2019-08-20 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction
CN110175807A (en) * 2019-04-17 2019-08-27 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction
WO2020062658A1 (en) * 2018-09-28 2020-04-02 平安科技(深圳)有限公司 Contract generation method and apparatus, and device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140006240A1 (en) * 2012-06-28 2014-01-02 Sap Ag Consistent interface for customer contract and customer contract template - message set 2
CN109472011A (en) * 2018-09-25 2019-03-15 平安科技(深圳)有限公司 Document generation method, device, computer equipment and storage medium
WO2020062658A1 (en) * 2018-09-28 2020-04-02 平安科技(深圳)有限公司 Contract generation method and apparatus, and device and storage medium
CN110148050A (en) * 2019-04-15 2019-08-20 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction
CN110175807A (en) * 2019-04-17 2019-08-27 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109815803B (en) Face examination risk control method and device, computer equipment and storage medium
CN104252677A (en) Two-dimension code anti-counterfeiting technology and two-dimension code anti-counterfeiting system-based platform system
TW201032157A (en) Multifactor authentication with changing unique values
CN109242706A (en) Method, apparatus, computer equipment and the storage medium for assisting seat personnel to link up
CN112637282B (en) Information pushing method and device, computer equipment and storage medium
CN111797605A (en) Report generation method and device based on report template and computer equipment
CN112434335A (en) Business problem processing method and device, computer equipment and storage medium
CN112579867A (en) Document generation method, device, equipment and storage medium
CN112836061A (en) Intelligent recommendation method and device and computer equipment
CN113435990B (en) Certificate generation method and device based on rule engine and computer equipment
CN110414197B (en) Bank user identity verification method and device based on behavior characteristics
CN112927062A (en) Service application processing method and device based on voice recognition and computer equipment
CN112884522A (en) Advertisement data cross-platform integration method and device and electronic equipment
CN113873088A (en) Voice call interaction method and device, computer equipment and storage medium
CN113656588A (en) Data code matching method, device, equipment and storage medium based on knowledge graph
CN116974999A (en) Electronic document signing method and device, electronic device and storage medium
CN113064997B (en) Intention analysis method, device, equipment and medium based on BERT model
CN111340365A (en) Enterprise data processing method and device, computer equipment and storage medium
CN112085469B (en) Data approval method, device, equipment and storage medium based on vector machine model
CN113177396B (en) Report generation method and device, computer equipment and storage medium
CN114418380A (en) User scoring method based on federal learning, server and storage medium
CN112434082A (en) Operation and maintenance resource management method, device, equipment and medium
CN113191146A (en) Appeal data distribution method and device, computer equipment and storage medium
CN112529390A (en) Task allocation method and device, computer equipment and storage medium
CN111310437A (en) Robot-based counselor link system

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