CN116611419A - Automatic contract generation method, system, financial terminal and storage medium - Google Patents

Automatic contract generation method, system, financial terminal and storage medium Download PDF

Info

Publication number
CN116611419A
CN116611419A CN202310895889.3A CN202310895889A CN116611419A CN 116611419 A CN116611419 A CN 116611419A CN 202310895889 A CN202310895889 A CN 202310895889A CN 116611419 A CN116611419 A CN 116611419A
Authority
CN
China
Prior art keywords
contract
template
parameters
type
contract 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.)
Granted
Application number
CN202310895889.3A
Other languages
Chinese (zh)
Other versions
CN116611419B (en
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.)
Shenzhen Mingxin Digital Intelligence Technology Co ltd
Original Assignee
Shenzhen Mingxin Digital Intelligence Technology 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 Shenzhen Mingxin Digital Intelligence Technology Co ltd filed Critical Shenzhen Mingxin Digital Intelligence Technology Co ltd
Priority to CN202310895889.3A priority Critical patent/CN116611419B/en
Publication of CN116611419A publication Critical patent/CN116611419A/en
Application granted granted Critical
Publication of CN116611419B publication Critical patent/CN116611419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an automatic contract generation method, an automatic contract generation system, a financial terminal and a storage medium. The method comprises the following steps: acquiring a current application scene, acquiring a plurality of contract receivers which need to be dealt with by the current application scene, and acquiring the type of a contract template required by each contract receiver and contract template information corresponding to each contract template type; template parameters and template mapping configuration information corresponding to contract template information of each contract template type are obtained, and external parameters corresponding to the template parameters corresponding to each contract template type are obtained based on the template mapping configuration information; and acquiring contract request data, mapping external parameters in the contract request data to template parameters corresponding to each contract template type, and simultaneously generating and uploading a plurality of contract template files based on the template parameters corresponding to each contract template type. The invention saves the resources required by contract generation, improves the efficiency of contract generation and shortens the time required by all the contracts generation.

Description

Automatic contract generation method, system, financial terminal and storage medium
Technical Field
The invention relates to the technical field of finance, in particular to an automatic contract generation method, an automatic contract generation system, a financial terminal and a storage medium.
Background
In the current contract generation process, the contract can only be generated one by one. If multiple contracts are to be generated, multiple contract generation interfaces are required to be called, multiple network requests are required to be executed, and the same parameter information in the contracts is transmitted in the network multiple times, so that the contract generation efficiency is low, the contract generation time is long, the user experience is reduced, and the contract generation cost is improved.
Disclosure of Invention
Based on this, it is necessary to provide a contract automatic generation method, system, financial terminal, and storage medium in order to solve the above-described problems.
A method of automatically generating a contract, the method comprising:
acquiring a current application scene through a scene application program interface, acquiring a plurality of contract receivers which need to be dealt with by the current application scene, and acquiring contract template types required by each contract receiver and contract template information of each contract template type;
acquiring template parameters and template mapping configuration information corresponding to the contract template information of each contract template type, and acquiring external parameters corresponding to the template parameters of each contract template type based on the template mapping configuration information;
Acquiring contract request data, mapping external parameters in the contract request data to template parameters corresponding to each contract template type based on the template mapping configuration information, generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type, and uploading a plurality of contract template files;
wherein the contract template type comprises at least one of at least one third party agency contract type, a freemaker contract type, a bank connector contract type, and a document contract type.
Before the step of mapping the external parameters in the contract request data to the template parameters corresponding to each contract template type based on the template mapping configuration information, the method further comprises:
summarizing all template parameters corresponding to the contract template types, performing de-duplication and replacement on the template parameters to obtain target parameters, obtaining template mapping configuration information corresponding to the target parameters, obtaining external parameters corresponding to the template parameters corresponding to each contract template type based on the template mapping configuration information and the target parameters, and performing calculation, conversion or calculation on different template parameters through the same external parameters to obtain the template parameters.
Wherein, after the step of uploading the plurality of contract template files, the method comprises the following steps:
correlating a plurality of contract template files;
when at least one contract template file is detected to be modified, synchronously modifying a plurality of contract template files according to the modified content to generate corresponding new contract template files.
Before the step of generating a plurality of contract template files based on the template parameters corresponding to each contract template type, the method comprises the following steps:
and acquiring a customer registration account, judging whether the customer registration account has a corresponding developer account, and if the customer registration account has the corresponding developer account, executing the step of generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type.
Before the step of obtaining the customer registration account number, the method comprises the following steps:
judging whether the current application scene corresponds to a mandatory specification mechanism or not, if the current application scene does not correspond to the mandatory specification mechanism, judging whether current agency mechanisms in a plurality of contract receivers are matched with the current application scene or not;
if the current agency mechanism is matched with the current application scene, judging whether a developer matched with the current agency mechanism and the current application scene exists or not;
And if the developer matched with the current agency and the current application scene exists, registering a developer account with the current agency by using the developer identity.
Wherein, the step of obtaining contract request data includes:
analyzing the contract request data based on contract template types to obtain key data in the contract request data, and performing at least one operation of semantic extraction, language conversion, case substitution, mispronounced word inspection, numerical extraction, numerical conversion and numerical calculation on the key data to obtain the contract request data corresponding to each contract template type.
Wherein before the step of obtaining the contract template type required by each contract receiver and the contract template information of each contract template type, the method comprises the following steps:
completing the establishment of a detection standard baseline, sequentially detecting all interface calls of a system of a third-party agency through a probe form, and judging whether a detection result is matched with a test result of the detection standard baseline;
and if the detection result is matched with the detection standard baseline test result, comparing the contract template information with a preset standard template file, and if the contract template information is matched with the standard template file, executing the step of acquiring the contract template type required by each contract receiver and the contract template information of each contract template type.
The step of sequentially detecting all interface calls of the system with the third party agency through the probe form comprises the following steps:
detecting a network communication state of a third party agency, and if the network communication state is normal, detecting a three-element interface, wherein the three elements comprise a name, an identity card number and a mobile phone number;
if the three-element interface passes the detection, detecting a four-element interface, wherein the four elements comprise an enterprise name, a social unified credit code, a legal name and a legal identity number;
if the four-element interface passes the detection, detecting a personal user registration interface;
if the detection of the personal user registration interface passes, detecting a personal user certificate application interface;
if the personal user certificate application interface passes the detection, detecting a personal seal generation interface;
if the detection of the personal seal generation interface is passed, detecting an enterprise user registration interface;
if the enterprise user registration interface passes, detecting an enterprise user certificate application interface;
if the enterprise user certificate application interface passes, detecting an enterprise seal generation interface;
if the enterprise seal generation interface passes the detection, detecting a contract generation interface;
and if the contract generation interface passes the detection, detecting the automatic signing function of the contract.
A financial terminal, comprising: a processor and a memory, the processor being coupled to the memory, the memory having a computer program stored therein, the processor executing the computer program to implement the method as described above.
A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps as described above.
The embodiment of the invention has the following beneficial effects:
the contract template types included in the contract request data can be multiple, external parameters in the contract request data are mapped to template parameters corresponding to different contract template types according to the different contract template types, a method for generating contract template files of the different contract template types is called, the contract template files of the multiple contract template types can be generated simultaneously based on the same external parameters by combining the template parameters of the respective contract template types, the same external parameters do not need to be transmitted for multiple times, resources required for generating contracts are effectively saved, meanwhile, the efficiency for generating the contracts is improved, the time required for generating all the contracts is shortened, and therefore user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a flow chart of a first embodiment of the automatic contract generation method provided by the present invention;
FIG. 2 is a flow chart of a second embodiment of the automatic contract generation method provided by the present invention;
fig. 3 shows an internal structural diagram of the financial terminal in one embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of a first embodiment of an automatic contract generating method according to the present invention. The automatic contract generation method provided by the invention comprises the following steps:
s101: the method comprises the steps of obtaining a current application scene through a scene application program interface, obtaining a plurality of contract receivers which need to be dealt with by the current application scene, obtaining contract template types which are needed by each contract receiver, and obtaining contract template information of each contract template type.
In a specific implementation scenario, scenario-related information is obtained through a scenario application program interface, the scenario-related information includes customer information, the customer information includes at least one of a customer name, a customer requirement, a customer type, a customer address, a customer device, the scenario-related information further includes a current date, a current network state, and the like. The current application scene can be obtained based on the scene application information or the client information, for example, the scene that the current application scene is the scene that the client performs loan operation to the bank or the scene that the client performs repayment operation to the bank can be known based on the client requirement. For another example, the historical operation record of the current client can be obtained based on the client name, and if the current date is the repayment date of the client, the current application scene is the scene that the client performs repayment operation to the bank. For another example, the client device is a special financial loan device, and the current application scenario is a scenario in which the client performs a loan operation to the bank.
One application scenario may require multiple different types of contract templates to cope with multiparty contract recipients. Based on the fact that the same item possibly has a plurality of contract receivers, such as a third party agency, a bank and a user, the contract receivers need to receive contracts, different contract template types correspond to different contract template types, and contract template information matched with each contract template type is obtained based on the current application scene. For example, when the application scenario is a scenario in which a client performs a loan operation to a bank, the contract template information includes a loan contract transmitted to the bank, or when the current scenario information is a scenario in which a client performs a loan operation to a bank through a third party agency, the contract template information includes a contract in which a loan is performed through a third party, a contract in which a loan is performed to a bank, and a contract in which a third party cooperates with a bank. The contract template information also includes formatting content for each contract template type that is fixed, such as template parameters that need to be filled in, disclaimers, content that needs to be displayed in a highlighted format in the contract, and so forth.
S102: template parameters and template mapping configuration information corresponding to contract template information of each contract template type are obtained, and external parameters corresponding to the template parameters of each contract template type are obtained based on the template mapping configuration information.
In a specific implementation scenario, template parameters and template mapping configuration information corresponding to contract template information of each contract template type are acquired, and template parameters required by the contract template information of each contract template type are different, so that the template parameters can be acquired for each contract template type respectively. Summarizing template parameters corresponding to all contract template types, and performing de-duplication and replacement on the template parameters to obtain target parameters. The duplicate removal is performed because the template parameters in different contract template types may correspond to the same external parameters, and the replacement is performed because the template parameters in different contract template types can be calculated, converted or calculated by the same external parameters, so that the target parameters are obtained by duplicate removal and replacement of the template parameters, the number of the required target parameters is reduced, and the efficiency of data transmission is improved.
The template mapping configuration information may be preset, and the external parameter name corresponding to the template parameter corresponding to each contract template type is obtained based on the template mapping configuration. The template parameters required for generating the combination and the names of the external parameters required for providing the requirements to the clients may be different, so that the clients can conveniently understand the requirements, more spoken expression modes can be adopted when the requirements are provided to the clients, and the template parameters are set to be expression modes convenient for programming when the combination is generated. Thus, the target mapping configuration information is set for each template parameter. And acquiring names of external parameters required by the generation of the contract based on the target mapping configuration information, storing the names of the external parameters as identifiers (KEYs) into the same set (Map), and finally converting the names into parameter objects, wherein the parameter objects are JSON objects. Target parameters and template map configuration information may be obtained. Template mapping configuration information corresponding to the target parameters can be obtained, and external parameter names corresponding to the template parameters corresponding to each contract template type are obtained based on the template mapping configuration information and the target parameters, so that the number of data transmission times can be effectively reduced.
In one implementation scenario, the template parameters may have lower parameters, all the lower parameters may be obtained in a recursive manner, after all the template parameters are summarized, the names of the external parameters corresponding to the template parameters are matched, all the external parameter names are stored as KEYs in the same Map, and finally converted into parameter objects.
S103: and acquiring contract request data, mapping external parameters in the contract request data to template parameters corresponding to each contract template type based on template mapping configuration information, generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type, and uploading the plurality of contract template files.
In one particular implementation scenario, contract request data is obtained, which may be generated based on a customer's request to generate a contract. The customer may provide corresponding values in the contract request data based on external parameters, such as the amount to be debited, the number of installment periods, etc. And acquiring contract template information according to the current application scene information, loading template mapping configuration information corresponding to the contract template information, and acquiring mapping configuration information corresponding to each contract template type according to the template mapping information. And acquiring template parameters according to the template information, and mapping the external parameters in the contract request data to the template parameters corresponding to each contract template information after summarizing all the template parameters. And calling a corresponding method for generating the contract template file based on the template parameter corresponding to each contract template type, applying the template parameter to the method for generating the contract template to generate the contract template file, and uploading the contract template file to a system or sending the contract template file to a receiver of the contract template file.
In this implementation scenario, there are multiple contract template types to cope with different application scenarios, for example, when a third party agency loans to a bank, it is necessary to sign contracts with different contents simultaneously with the third party agency and the bank, but these contracts have the same template parameters, for example, the name, identity information, loan amount, etc. of the lender. The contract template type includes at least one of at least one third party agency contract type, a freeemarker contract type, a bank connector contract type, a Document contract type. When a plurality of contract template types exist, after summarizing all template parameters, loading template mapping configuration information corresponding to each contract template type, converting the external parameters in the acquired parameter objects according to the template mapping configuration information, transmitting the values of the external parameters to the template parameters, calling a corresponding method for generating a contract template file according to each contract template type, and combining the template parameters into the generated contract template file. For example, the a parameter in the bank connector contract and the B parameter in the third party agency contract each correspond to an external parameter-loan amount, and therefore, the loan amount is corresponding to the a parameter in the target mapping configuration information corresponding to the bank connector contract, and the loan amount is corresponding to the B parameter in the target mapping configuration information of the third party agency contract. After the external parameter-loan amount is obtained, it is mapped to the a-parameter and the B-parameter, respectively, for use in generating the bank connector contract and the third party agency contract.
In other implementation scenarios, the generation of the contract requires the third party agency and the developer to cooperate together, so when the client is the third party agency, the third party agency and the developer can set basic contents of the contract except for template parameters together at this time, for example, setting of fixed format terms, a rate calculation formula applicable to the third party agency, a payment amount calculation formula and the like. Therefore, before generating the contract, the customer registration account is obtained according to the customer information, whether the customer registration account exists is judged, if the customer registration account exists, the developer account is inquired according to the customer registration account, and if the customer registration account exists in the developer account matched with the customer registration account, the step and the subsequent steps of simultaneously generating a plurality of contract template files based on the template parameters corresponding to each contract template type of the automatic contract generating method are continuously executed. If the customer registration account does not exist, prompting that the customer account is not registered, exiting the process, and if the developer account does not exist, prompting that the customer account is not registered, exiting the process.
Further, if there is no developer account number or client registration account number, the client of the third party agency can select to register immediately to obtain an account number, according to the current application field application registration account number, the supermanagement control can determine whether the current application scene needs to forcedly specify an organization, if the current application scene needs to forcedly specify an organization, the supermanagement specified organization is forcedly used, the relationship information between the current application scene and the specified organization, the current application scene and the developer is consulted, and based on the relationship information, whether the developer exists is determined, for example, if some organizations and some application scenes do not need to be developed, no developer exists, if it is determined that the developer exists, the developer is used to register the user account number with the specified organization, and the user account number is taken as the developer account number.
In other implementation scenarios, the current application scenario does not need to correspond to a mandatory specification mechanism, the relationship information of the current application scenario and a specified agency is queried, if the current application scenario corresponds to the specified agency, the specified agency can be specified by a bank or by a financial client, the specified agency is adopted, the relationship information between the current application scenario and the specified agency, the current application scenario and a developer is consulted, whether the developer exists or not is judged based on the relationship information, for example, if some institutions and some application scenarios do not need the developer, no developer exists, if the developer exists, the developer is used for registering a user account with the specified agency, and the user account is used as a developer account.
In other implementations, if the current application scenario does not correspond to the designated agency, a default agency may be used, which may be preset. And referring to the relation information between the current application scene and the default mechanism and between the current application scene and the developer, judging whether the developer exists or not based on the relation information, for example, if some mechanisms and some application scenes are not required by the developer, if the developer exists, registering a user account with the default mechanism by using the developer, and taking the user account as a developer account.
In one implementation scenario, since there are a plurality of contract template types, and there are differences between template parameters required by contract template files corresponding to possibly different contract template types, all template parameters corresponding to all contract template types can be synthesized, external parameters corresponding to all template parameters can be obtained, and the values of the external parameters can be provided by contract request data. Analyzing the contract request data based on the contract template types, acquiring key data in external parameters required by each contract template type, and performing at least one operation of semantic extraction, language conversion, case and case replacement, mispronounced word inspection, numerical extraction, numerical conversion and numerical calculation on the key data to acquire the contract request data corresponding to each contract template type. For example, when a third party agency performs loan, the loan interest rate may be different from that of the bank, for example, the third party agency provides subsidies or charges a fee, after obtaining key data-loan amount, numerical extraction is required according to the data of the loan amount to obtain multiple elements of a specific loan, numerical calculation or numerical conversion is respectively performed based on the interest rate of the third party agency and the interest rate of the bank (for example, the customer needs to exchange the rmb into dollars through the third party agency and convert according to the exchange rate of the rmb and dollars), new key data is obtained, for example, the repayment amount to the bank per month, the repayment total amount to the third party agency, and the like, and the new key data is respectively added into contract request data of the corresponding contract template type. For another example, the user may request data using contracts provided in other languages such as english, japanese, etc., but the third party agency and bank are chinese, and then need to translate while issuing chinese-english or chinese-japanese contracts. For another example, the amount in the contract may be capitalized, and if the contract request data is provided in Arabic numerals, a capitalization conversion may be required. For another example, wrongly written characters may occur in the contract request data, and the wrongly written characters need to be checked, so that the generated contract template file is prevented from being wrong, and loss is avoided.
In other implementation scenes, contract request data of different contract template types are compared, whether unmatched parts exist in the contract request data corresponding to the different contract template types is detected, and the unmatched parts are corrected. For example, whether the corresponding repayment amount of the third-party agency contract is matched with the repayment amount of the bank contract pair is checked, and the check is performed on the same request data, so that errors in operations such as numerical calculation and numerical conversion are avoided, and loss is avoided.
In other implementation scenarios, after the step of uploading the plurality of contract template files, the plurality of contract template files are associated, so that the management of the same template files can be facilitated later, for example, when the same template files are retrieved or archived, the workload can be effectively reduced through the set association. And secondly, when the modification of the contract template files is needed later, detecting that at least one contract template file is modified, correspondingly modifying all the contract template files according to the association, and generating a plurality of corresponding new contract template files. For example, the modified content is not a template parameter, but other parameters, such as certain fixed format terms, need to be modified, and other parameters may be automatically updated in the remaining contract template files based on the association. For another example, if the modified content is a template parameter, the part corresponding to the template parameter in other contract template files is automatically modified accordingly. For example, if the loan amount in contract A is modified, the loan amount in the associated contract B is correspondingly modified, and, if the loan amount is modified, the corresponding repayment amount is correspondingly modified in contract A and contract B.
As can be seen from the above description, in this embodiment, the number of contract template types included in the contract request data may be multiple, and external parameters in the contract request data are mapped to template parameters corresponding to different contract template types according to different contract template types, and meanwhile, a method for generating contract template files of different contract template types is called, and in combination with the template parameters of respective types, a plurality of contract template files of contract template types can be generated simultaneously based on the same external parameters, and the same external parameters do not need to be transmitted for multiple times, so that resources required for generating contracts are effectively saved, and meanwhile, efficiency for generating contracts is improved, and time required for generating all contracts is shortened, thereby improving user experience.
Referring to fig. 2, fig. 2 is a flowchart of a second embodiment of the automatic contract generating method according to the present invention. The automatic contract generation method provided by the invention comprises the following steps:
s201: and (3) completing the establishment of a detection standard baseline, sequentially detecting all interface calls of a system of the third-party agency through a probe form, judging whether a detection result is matched with a test result of the detection standard baseline, and if so, executing the step S202.
In a specific implementation scenario, if the update neutral gear time of each new contract template information is short before the new contract template information is added, the availability and reliability of the online version cannot be detected quickly after the online emergency situation, and 100% of the whole process of the system cannot be guaranteed to be free of problems, so that the new contract template information needs to be detected in advance before being used. And (3) completing standard base line establishment of results of each detection stage through multiple off-line tests, sequentially detecting all interface calls of a system of the third-party agency through a probe form, and judging whether the detection result is matched with the test result of the detection standard base line. Specifically, the network connection state of the third party agency is detected, if the network connection state is normal, a three-element interface is detected, if the network connection state is detected to pass, a four-element interface is detected, if the network connection state is detected to pass, a personal user registration interface is detected, if the network connection state is detected to pass, a personal seal generation interface is detected, if the network connection state is detected to pass, an enterprise user registration interface is detected, if the network connection state is detected to pass, an enterprise seal generation interface is detected, if the network connection state is detected to pass, a contract generation interface is detected, and if the network connection state is detected to pass, a contract automatic signing function is detected. The sequence of the above detection steps may be disordered or parallel, and will not be described in detail here.
S202: comparing the contract template information with a preset standard template file, judging whether the contract template information is matched with the standard template file, and if yes, executing step S203.
In a specific implementation scenario, contract template information is compared with a preset standard template file, the standard template file is a contract pattern to be generated, and if the contract template information is matched with the standard template file, the contract template file generated according to the contract template information is in accordance with the standard and can be directly used. If the detection result is not matched with the test result, recording unmatched test content, and carrying out corresponding correction subsequently to solve the problem.
S203: the method comprises the steps of obtaining a current application scene through a scene application program interface, obtaining a plurality of contract receivers which need to be dealt with by the current application scene, and obtaining the type of contract template required by each contract receiver and the contract template information of each contract template type.
S204: template parameters and template mapping configuration information corresponding to contract template information of each contract template type are obtained, and external parameters corresponding to the template parameters of each contract template type are obtained based on the template mapping configuration information.
S205: and acquiring contract request data, mapping external parameters in the contract request data to template parameters corresponding to each contract template type based on template mapping configuration information, generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type, and uploading the plurality of contract template files.
In a specific implementation scenario, steps S203 to S205 are substantially identical to steps S101 to S103 in the first embodiment of the automatic contract generation method provided by the present application, and will not be described herein.
As can be seen from the above description, in this embodiment, all interface calls of the system with the third party agency are sequentially detected in the probe form, and whether the detection result is matched with the test result of the detection standard baseline is determined; if the detection result is matched with the detection standard baseline test result, comparing the contract template information with a preset standard template file, and if the contract template information is matched with the standard template file, executing the step of acquiring the contract template information based on the current application scene, so that the correctness of the finally generated contract template file can be ensured.
Fig. 3 shows an internal structural diagram of the financial terminal in one embodiment. The computer device may specifically be a terminal or a server. As shown in fig. 3, the computer device includes a processor, a memory, and a network interface connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program that, when executed by a processor, causes the processor to implement an age identification method. The internal memory may also have stored therein a computer program which, when executed by the processor, causes the processor to perform the age identification method. It will be appreciated by those skilled in the art that the structure shown in FIG. 3 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring a current application scene through a scene application program interface, acquiring a plurality of contract receivers which need to be dealt with in the current application scene, and acquiring the type of contract template required by each contract receiver and the contract template information of each contract template type;
template parameters and template mapping configuration information corresponding to contract template information of each contract template type are obtained, and external parameters corresponding to the template parameters of each contract template type are obtained based on the template mapping configuration information;
acquiring contract request data, mapping external parameters in the contract request data to template parameters corresponding to each contract template type based on template mapping configuration information, generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type, and uploading the plurality of contract template files;
wherein the contract template type includes at least one of at least one third party agency contract type, freemaker contract type, bank connector contract type, document contract type.
Before the step of mapping the external parameters in the contract request data to the template parameters corresponding to each contract template type, the method further comprises the following steps:
summarizing template parameters corresponding to all contract template types, performing de-duplication and replacement on the template parameters to obtain target parameters, obtaining template mapping configuration information corresponding to the target parameters, and obtaining external parameters corresponding to the template parameters corresponding to each contract template type based on the template mapping configuration information and the target parameters.
Wherein, after the step of uploading the plurality of contract template files, the method comprises the following steps:
correlating a plurality of contract template files;
when at least one contract template file is detected to be modified, a plurality of contract template files are synchronously modified according to the modified content to generate corresponding new contract template files.
Before the step of generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type, the method comprises the following steps:
and acquiring a customer registration account, judging whether the customer registration account has a corresponding developer account, and if so, continuing to execute the rest steps of the automatic contract generation method.
Before the step of obtaining the customer registration account number, the method comprises the following steps:
judging whether the current application scene corresponds to a mandatory specification mechanism or not, and if the current application scene does not correspond to the mandatory specification mechanism, judging whether the current agency mechanisms in a plurality of contract receivers are matched with the current application scene or not;
if the current agency mechanism is matched with the current application scene, judging whether a developer matched with the current agency mechanism and the current application scene exists or not;
if a developer matched with the current agency and the current application scene exists, the developer account number is registered with the current agency by using the identity of the developer.
Wherein the step of acquiring contract request data includes:
analyzing the contract request data based on the contract template types to obtain key data in the contract request data, and performing at least one operation of semantic extraction, language conversion, case and case replacement, misprinting word inspection, numerical value extraction, numerical value conversion and numerical value calculation on the key data to obtain the contract request data corresponding to each contract template type.
Before the step of acquiring the contract template information based on the current application scene, the method comprises the following steps:
completing the establishment of a detection standard baseline, sequentially detecting all interface calls of a system of a third-party agency through a probe form, and judging whether a detection result is matched with a test result of the detection standard baseline;
If the detection result is matched with the detection standard baseline test result, comparing the contract template information with a preset standard template file, and if the contract template information is matched with the standard template file, executing the step of acquiring the contract template type required by each contract receiver and the contract template information of each contract template type.
Wherein, detect all the steps that interface call with the system of the third party agency in proper order through the probe form, include:
detecting a network communication state of a third party agency, if the network communication state is normal, detecting a three-element interface, wherein the three elements comprise a name, an identity card number and a mobile phone number;
if the three-element interface passes the detection, detecting a four-element interface, wherein the four elements comprise enterprise names, social unified credit codes, legal names and legal identity numbers;
if the four-element interface passes the detection, detecting a personal user registration interface;
if the detection of the personal user registration interface passes, detecting a personal user certificate application interface;
if the personal user certificate applies for the interface detection to pass, detecting a personal seal generation interface;
if the detection of the personal seal generation interface is passed, detecting an enterprise user registration interface;
If the enterprise user registration interface passes, detecting an enterprise user certificate application interface;
if the enterprise user certificate application interface passes, detecting an enterprise seal generation interface;
if the enterprise seal generation interface passes the detection, detecting a contract generation interface;
and if the contract generation interface passes the detection, detecting the automatic signing function of the contract.
In one embodiment, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring a current application scene through a scene application program interface, acquiring a plurality of contract receivers which need to be dealt with in the current application scene, and acquiring the type of contract template required by each contract receiver and the contract template information of each contract template type;
template parameters and template mapping configuration information corresponding to contract template information of each contract template type are obtained, and external parameters corresponding to the template parameters of each contract template type are obtained based on the template mapping configuration information;
acquiring contract request data, mapping external parameters in the contract request data to template parameters corresponding to each contract template type based on template mapping configuration information, generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type, and uploading the plurality of contract template files;
Wherein the contract template type includes at least one of at least one third party agency contract type, freemaker contract type, bank connector contract type, document contract type.
Before the step of mapping the external parameters in the contract request data to the template parameters corresponding to each contract template type, the method further comprises the following steps:
summarizing template parameters corresponding to all contract template types, performing de-duplication and replacement on the template parameters to obtain target parameters, obtaining template mapping configuration information corresponding to the target parameters, and obtaining external parameters corresponding to the template parameters corresponding to each contract template type based on the template mapping configuration information and the target parameters.
Wherein, after the step of uploading the plurality of contract template files, the method comprises the following steps:
correlating a plurality of contract template files;
when at least one contract template file is detected to be modified, a plurality of contract template files are synchronously modified according to the modified content to generate corresponding new contract template files.
Before the step of generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type, the method comprises the following steps:
and acquiring a customer registration account, judging whether the customer registration account has a corresponding developer account, and if the customer registration account has the corresponding developer account, executing the step of generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type.
Before the step of obtaining the customer registration account number, the method comprises the following steps:
judging whether the current application scene corresponds to a mandatory specification mechanism or not, and if the current application scene does not correspond to the mandatory specification mechanism, judging whether the current agency mechanism is matched with the current application scene or not;
if the current agency mechanism is matched with the current application scene, judging whether a developer matched with the current agency mechanism and the current application scene exists or not;
if a developer matched with the current agency and the current application scene exists, the developer account number is registered with the current agency by using the identity of the developer.
Wherein the step of acquiring contract request data includes:
analyzing the contract request data based on the contract template types to obtain key data in the contract request data, and performing at least one operation of semantic extraction, language conversion, case and case replacement, misprinting word inspection, numerical value extraction, numerical value conversion and numerical value calculation on the key data to obtain the contract request data corresponding to each contract template type.
Before the step of acquiring the contract template information based on the current application scene, the method comprises the following steps:
completing the establishment of a detection standard baseline, sequentially detecting all interface calls of a system of a third-party agency through a probe form, and judging whether a detection result is matched with a test result of the detection standard baseline;
If the detection result is matched with the detection standard baseline test result, comparing the contract template information with a preset standard template file, and if the contract template information is matched with the standard template file, executing the step of acquiring the contract template type required by each contract receiver and the contract template information of each contract template type.
Wherein, detect all the steps that interface call with the system of the third party agency in proper order through the probe form, include:
detecting a network communication state of a third party agency, if the network communication state is normal, detecting a three-element interface, wherein the three elements comprise a name, an identity card number and a mobile phone number;
if the three-element interface passes the detection, detecting a four-element interface, wherein the four elements comprise enterprise names, social unified credit codes, legal names and legal identity numbers;
if the four-element interface passes the detection, detecting a personal user registration interface;
if the detection of the personal user registration interface passes, detecting a personal user certificate application interface;
if the personal user certificate applies for the interface detection to pass, detecting a personal seal generation interface;
if the detection of the personal seal generation interface is passed, detecting an enterprise user registration interface;
If the enterprise user registration interface passes, detecting an enterprise user certificate application interface;
if the enterprise user certificate application interface passes, detecting an enterprise seal generation interface;
if the enterprise seal generation interface passes the detection, detecting a contract generation interface;
and if the contract generation interface passes the detection, detecting the automatic signing function of the contract.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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 Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. An automatic contract generation method, comprising:
acquiring a current application scene through a scene application program interface, acquiring a plurality of contract receivers which need to be dealt with by the current application scene, and acquiring contract template types required by each contract receiver and contract template information of each contract template type;
acquiring template parameters and template mapping configuration information corresponding to the contract template information of each contract template type, and acquiring external parameters corresponding to the template parameters of each contract template type based on the template mapping configuration information;
Acquiring contract request data, mapping external parameters in the contract request data to template parameters corresponding to each contract template type based on the template mapping configuration information, generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type, and uploading a plurality of contract template files;
wherein the contract template type comprises at least one of at least one third party agency contract type, a freemaker contract type, a bank connector contract type, and a document contract type.
2. The automatic contract generation method according to claim 1, characterized in that before the step of mapping external parameters in the contract request data to template parameters corresponding to each of the contract template types based on the template mapping configuration information, further comprising:
summarizing all template parameters corresponding to the contract template types, performing de-duplication and replacement on the template parameters to obtain target parameters, obtaining template mapping configuration information corresponding to the target parameters, obtaining external parameters corresponding to the template parameters corresponding to each contract template type based on the template mapping configuration information and the target parameters, and performing calculation, conversion or calculation on different template parameters through the same external parameters to obtain the template parameters.
3. The automatic contract generation method according to claim 1, characterized in that after the step of uploading a plurality of the contract template files, it includes:
correlating a plurality of contract template files;
when at least one contract template file is detected to be modified, synchronously modifying a plurality of contract template files according to the modified content to generate corresponding new contract template files.
4. The automatic contract generation method according to claim 1, characterized in that before the step of generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type, it includes:
and acquiring a customer registration account, judging whether the customer registration account has a corresponding developer account, and if the customer registration account has the corresponding developer account, executing the step of generating a plurality of contract template files simultaneously based on the template parameters corresponding to each contract template type.
5. The method of automatic contract generation of claim 4, characterized in that prior to the step of obtaining a customer registration account, it includes:
judging whether the current application scene corresponds to a mandatory specification mechanism or not, if the current application scene does not correspond to the mandatory specification mechanism, judging whether current agency mechanisms in a plurality of contract receivers are matched with the current application scene or not;
If the current agency mechanism is matched with the current application scene, judging whether a developer matched with the current agency mechanism and the current application scene exists or not;
and if the developer matched with the current agency and the current application scene exists, registering a developer account with the current agency by using the developer identity.
6. The automatic contract generation method according to claim 1, characterized in that the step of acquiring contract request data includes:
analyzing the contract request data based on contract template types to obtain key data in the contract request data, and performing at least one operation of semantic extraction, language conversion, case substitution, mispronounced word inspection, numerical extraction, numerical conversion and numerical calculation on the key data to obtain the contract request data corresponding to each contract template type.
7. The automatic contract generation method according to claim 1, characterized in that before the step of acquiring the type of contract template required for each of the contract recipients and the contract template information of each of the contract template types, it includes:
Completing the establishment of a detection standard baseline, sequentially detecting all interface calls of a system of a third-party agency through a probe form, and judging whether a detection result is matched with a test result of the detection standard baseline;
and if the detection result is matched with the detection standard baseline test result, comparing the contract template information with a preset standard template file, and if the contract template information is matched with the standard template file, executing the step of acquiring the contract template type required by each contract receiver and the contract template information of each contract template type.
8. The automatic contract generation method according to claim 7, characterized in that the step of sequentially detecting all interface calls with a system of a third party agency through a probe form includes:
detecting a network communication state of a third party agency, and if the network communication state is normal, detecting a three-element interface, wherein the three elements comprise a name, an identity card number and a mobile phone number;
if the three-element interface passes the detection, detecting a four-element interface, wherein the four elements comprise an enterprise name, a social unified credit code, a legal name and a legal identity number;
If the four-element interface passes the detection, detecting a personal user registration interface;
if the detection of the personal user registration interface passes, detecting a personal user certificate application interface;
if the personal user certificate application interface passes the detection, detecting a personal seal generation interface;
if the detection of the personal seal generation interface is passed, detecting an enterprise user registration interface;
if the enterprise user registration interface passes, detecting an enterprise user certificate application interface;
if the enterprise user certificate application interface passes, detecting an enterprise seal generation interface;
if the enterprise seal generation interface passes the detection, detecting a contract generation interface;
and if the contract generation interface passes the detection, detecting the automatic signing function of the contract.
9. A financial terminal, comprising: a processor and a memory, the processor being coupled to the memory, the memory having a computer program stored therein, the processor executing the computer program to implement the method of any of claims 1-7.
10. A storage medium storing a computer program executable by a processor to implement the method of any one of claims 1-7.
CN202310895889.3A 2023-07-20 2023-07-20 Automatic contract generation method, system, financial terminal and storage medium Active CN116611419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310895889.3A CN116611419B (en) 2023-07-20 2023-07-20 Automatic contract generation method, system, financial terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310895889.3A CN116611419B (en) 2023-07-20 2023-07-20 Automatic contract generation method, system, financial terminal and storage medium

Publications (2)

Publication Number Publication Date
CN116611419A true CN116611419A (en) 2023-08-18
CN116611419B CN116611419B (en) 2024-01-30

Family

ID=87684073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310895889.3A Active CN116611419B (en) 2023-07-20 2023-07-20 Automatic contract generation method, system, financial terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116611419B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109325729A (en) * 2018-08-21 2019-02-12 平安科技(深圳)有限公司 A kind of method and server generating electronic contract
CN112308742A (en) * 2020-09-24 2021-02-02 五八到家有限公司 Contract generation method, device and system
CN115659942A (en) * 2022-11-14 2023-01-31 深圳前海微众银行股份有限公司 Contract template generation device and equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109325729A (en) * 2018-08-21 2019-02-12 平安科技(深圳)有限公司 A kind of method and server generating electronic contract
CN112308742A (en) * 2020-09-24 2021-02-02 五八到家有限公司 Contract generation method, device and system
CN115659942A (en) * 2022-11-14 2023-01-31 深圳前海微众银行股份有限公司 Contract template generation device and equipment

Also Published As

Publication number Publication date
CN116611419B (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN109033058B (en) Contract text verification method, apparatus, computer device and storage medium
CN109597754B (en) Business process interface testing method and device, computer equipment and storage medium
CN112882699B (en) Service processing method, device, equipment and medium based on flow configuration engine
CN109783558A (en) Introduction method, device, computer equipment and the storage medium of Excel data
CN110334303A (en) Form validation method, device, computer equipment and storage medium
CN111858376A (en) Request message generation method and interface test method
CN112669140A (en) Financial account sales processing method and device, computer equipment and storage medium
CN112613288B (en) Method, device, computer equipment and storage medium for generating bill
CN114240524A (en) Platform-based unified billing method and system, computer equipment and storage medium
CN116611419B (en) Automatic contract generation method, system, financial terminal and storage medium
CN116579580A (en) Method, device, computer equipment and storage medium for processing bill
CN115934129A (en) Software project updating method and device, computer equipment and storage medium
CN111260479A (en) Financing application processing method, device, equipment and storage medium
CN116308333A (en) Method, system, device and storage medium for determining payment channel
CN113919948B (en) Data updating method and device, electronic equipment and storage medium
CN114297240A (en) Method, device, equipment and medium for making payment voucher document based on RPA and AI
CN112434505A (en) Template generation method and device, computer equipment and storage medium
CN112686745A (en) Financial account change processing method and device, computer equipment and storage medium
CN112907360A (en) Risk assessment method, apparatus, storage medium, and program product
CN116756226B (en) File generation method, device, server, user equipment and storage medium
CN114971551A (en) Electronic insurance service method for performing
CN115114900B (en) Text comment association method and device, electronic equipment, storage medium and product
CN110781188B (en) Form information processing method and device, electronic equipment and storage medium
CN112348465A (en) Business data write-back method and device, computer equipment and storage 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
GR01 Patent grant
GR01 Patent grant