CN113065323B - Method, device and equipment for importing contract template data and storage medium - Google Patents

Method, device and equipment for importing contract template data and storage medium Download PDF

Info

Publication number
CN113065323B
CN113065323B CN202110285082.9A CN202110285082A CN113065323B CN 113065323 B CN113065323 B CN 113065323B CN 202110285082 A CN202110285082 A CN 202110285082A CN 113065323 B CN113065323 B CN 113065323B
Authority
CN
China
Prior art keywords
template
target
contract
unique identifier
environment
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.)
Active
Application number
CN202110285082.9A
Other languages
Chinese (zh)
Other versions
CN113065323A (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.)
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 CN202110285082.9A priority Critical patent/CN113065323B/en
Publication of CN113065323A publication Critical patent/CN113065323A/en
Application granted granted Critical
Publication of CN113065323B publication Critical patent/CN113065323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method for importing contract template data, which comprises the following steps: acquiring a first template unique identification set corresponding to a current environment; acquiring a second template unique identification set corresponding to other environments; judging whether a target second template unique identifier exists in the second template unique identifier set or not; if the target second template unique identifier exists in the second template unique identifier set, deriving target contract template data from other environments containing target contract template data corresponding to the target second template unique identifier; and importing the target contract template data into the current environment. Therefore, the method and the device can replace manual work to import the contract template data, improve the import efficiency of the contract template data, and are beneficial to keeping the synchronization of the contract template data in different environments. The invention also relates to the technical field of block chains.

Description

Method, device and equipment for importing contract template data and storage medium
Technical Field
The invention relates to the field of computer function optimization, in particular to a method and a device for importing contract template data, computer equipment and a storage medium.
Background
Some computer systems (e.g., a secure and general system) may provide the user with the function of electronic contract, and the user may complete some services (e.g., loan service, insurance service, etc.) requiring contract through the electronic contract function provided by these computer systems. In the implementation process of the electronic contract, an electronic contract template is usually needed, and specifically, the corresponding electronic contract template may be obtained first, and then some key data (e.g., a signature of the user, an account number of the user, etc.) may be filled into the electronic contract template by the user, so as to generate the final electronic contract.
However, actual services are various, corresponding electronic contract templates are also various, and even the electronic contract templates of the same service have various versions, so that in order to avoid confusion, the electronic contract template is kept correct in the system, which is of great significance for realizing the electronic contract function. However, some systems (e.g., the safety and general system) have multiple environments at the same time, and to keep the correctness of the electronic contract templates used in the multiple environments, the electronic contract templates in the environments can only be adjusted by manually importing and exporting the electronic contract templates between different environments, which is a tedious task and is easy to cause the situation that contract template data of different environments cannot be synchronized in time by manually importing and exporting the electronic contract templates.
Specifically, when the electronic contract template in the environment needs to be adjusted, a target environment where the electronic contract template to be imported is located is usually manually found from all environments, then the required electronic contract template is exported in the target environment as a template file, after the template file is successfully exported, an import page is entered in the environment where the template is to be imported, and the template file is selected for importing. Therefore, the current contract template data importing method needs to rely on manual operation to import the contract template data, the importing efficiency is low, and the synchronization of the contract template data in different environments is not kept favorably.
Disclosure of Invention
The technical problem to be solved by the invention is that the current contract template data importing method needs to rely on manual work to import contract template data, the importing efficiency is low, and the synchronization of contract template data in different environments is not favorably maintained.
In order to solve the technical problem, a first aspect of the present invention discloses a method for importing contract template data, including:
acquiring a first template unique identification set corresponding to a current environment, wherein the first template unique identification set comprises first template unique identifications corresponding to all existing contract templates in the current environment;
acquiring a second template unique identification set corresponding to other environments, wherein the second template unique identification set comprises second template unique identifications corresponding to all existing contract templates in the other environments, and the other environments refer to all environments except the current environment in a system where the current environment is located;
judging whether a target second template unique identifier exists in the second template unique identifier set, wherein the target second template unique identifier is the second template unique identifier without a corresponding first template unique identifier in the first template unique identifier set;
if the target second template unique identifier exists in the second template unique identifier set, deriving the target contract template data from other environments containing the target contract template data corresponding to the target second template unique identifier;
and importing the target contract template data into the current environment.
The second aspect of the present invention discloses an importing apparatus of contract template data, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first template unique identification set corresponding to a current environment, and the first template unique identification set comprises first template unique identifications corresponding to all existing contract templates in the current environment;
the acquiring module is further configured to acquire a second template unique identifier set corresponding to other environments, where the second template unique identifier set includes second template unique identifiers corresponding to all existing contract templates in the other environments, and the other environments are all environments in a system where the current environment is located except the current environment;
a judging module, configured to judge whether a target second template unique identifier exists in the second template unique identifier set, where the target second template unique identifier is the second template unique identifier whose corresponding first template unique identifier does not exist in the first template unique identifier set;
a derivation module, configured to, when the target second template unique identifier exists in the second template unique identifier set, derive the target contract template data from another environment that includes target contract template data corresponding to the target second template unique identifier;
and the importing module is used for importing the target contract template data into the current environment.
A third aspect of the present invention discloses a computer apparatus, comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor calls the executable program code stored in the memory to execute part or all of the steps of the method for importing the contract template data disclosed by the first aspect of the invention.
In a fourth aspect of the present invention, a computer storage medium is disclosed, wherein the computer storage medium stores computer instructions, and when the computer instructions are called, the computer instructions are used to execute part or all of the steps in the method for importing contract template data disclosed in the first aspect of the present invention.
In the embodiment of the invention, the unique identification set of the first template corresponding to the contract template existing in the current environment and the unique identification set of the second template corresponding to the contract template existing in other environments can be automatically obtained, then the unique identification set of the target second template existing in the unique identification set of the second template but not existing in the unique identification set of the first template is obtained by comparing the unique identification set of the first template with the unique identification set of the second template, and finally the unique identification set of the target contract template corresponding to the unique identification of the target second template is imported to the current environment from other environments, so that the import efficiency of the contract template data can be replaced by manual work, and the synchronization of the contract template data in different environments is favorably maintained.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flowchart of a method for importing contract template data according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of an importing apparatus of contract template data according to an embodiment of the disclosure;
FIG. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present invention and in the above-described drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The invention discloses a method, a device, computer equipment and a storage medium for importing contract template data, which can automatically acquire a first template unique identification set corresponding to a contract template existing in the current environment and a second template unique identification set corresponding to a contract template existing in other environments, then obtain a target second template unique identification existing in the second template unique identification set but not existing in the first template unique identification set by comparing the first template unique identification set with the second template unique identification set, and finally import the target contract template data corresponding to the target second template unique identification from other environments to the current environment, thereby replacing manual import of the contract template data, improving the import efficiency of the contract template data and being beneficial to keeping synchronization of the contract template data in different environments. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for importing contract template data according to an embodiment of the present invention. As shown in fig. 1, the importing method of the contract template data may include the following operations:
101. and acquiring a first template unique identification set corresponding to the current environment, wherein the first template unique identification set comprises first template unique identifications corresponding to all existing contract templates in the current environment. 102. And acquiring a second template unique identification set corresponding to other environments, wherein the second template unique identification set comprises second template unique identifications corresponding to all existing contract templates in the other environments, and the other environments refer to all environments except the current environment in a system where the current environment is located.
In the above step 101 and the above step 102, the system in which the current environment and the other environments are located may be a system having multiple sets of environments at the same time, for example, a peaceful and prosperous system may have 1 set of development environments and 4 sets of test environments at the same time. The current environment may be one of all environments in the system, for example, the current environment is a development environment in a secure and popular system, and the other environments are 4 sets of test environments in the secure and popular system. For convenience of management, different template unique identifiers may be set for different contract templates, for example, the template unique identifier of the loan contract template may be set as a, the template unique identifier of the car insurance contract template may be set as b, and the template unique identifier of the people's life insurance contract template may be set as c. Then, the electronic contract templates in different environments are not much the same, for example, if the contract templates existing in environment a are loan contract templates and car insurance contract templates, the unique identifier sets of the templates corresponding to environment a are { a, B }, if the contract templates existing in environment B are loan contract templates, car insurance contract templates and people's life insurance contract templates, the unique identifier sets of the templates corresponding to environment B are { a, B, C }, if the contract templates existing in environment C are loan contract templates, the unique identifier sets of the templates corresponding to environment C are { a }. Specifically, a contract template record table may be set in the system to record the template unique identifier corresponding to the contract template existing in each environment, and then the template unique identifier of the contract template existing in each environment may be obtained by querying the contract template record table. For example, the contract template record form may be as follows:
environment(s) Template unique identifier
A a、b
B a、b、c
C a
103. And judging whether a target second template unique identifier exists in the second template unique identifier set, wherein the target second template unique identifier is the second template unique identifier without a corresponding first template unique identifier in the first template unique identifier set.
In step 103, assuming that the environment a is the current environment, the obtained first unique template identifier set is { a, b }, the environment B, C is the other environment, and the obtained second unique template identifier set is { a, b, c }. At this time, the template unique identifier c existing in the second template unique identifier set is not in the first template unique identifier set, so that it can be determined that the target second template unique identifier (i.e. the template unique identifier c) exists in the second template unique identifier set.
104. And if the target second template unique identifier exists in the second template unique identifier set, deriving the target contract template data from other environments containing the target contract template data corresponding to the target second template unique identifier.
In step 104, after determining that the target second template unique identifier (i.e., the template unique identifier c) exists in the second template unique identifier set, the template data of the life insurance contract template corresponding to the template unique identifier c (i.e., the target contract template data) may be derived from the B environment including the life insurance contract template corresponding to the template unique identifier c to form a template file.
105. And importing the target contract template data into the current environment.
In the above step 105, after the template file containing the target contract template data is formed, the template file is automatically imported into the current environment, so that the life insurance contract template is imported into the current environment, and thus, the contract template in the current environment can be kept synchronous with the contract templates in other environments in the system.
It can be seen that, by implementing the method for importing contract template data described in fig. 1, a first template unique identifier set corresponding to a contract template existing in a current environment and a second template unique identifier set corresponding to a contract template existing in another environment can be automatically obtained, then a target second template unique identifier existing in the second template unique identifier set but not existing in the first template unique identifier set is obtained by comparing the first template unique identifier set and the second template unique identifier set, and finally, target contract template data corresponding to the target second template unique identifier is imported from the other environment to the current environment, so that the import of the contract template data can be performed instead of manual work, the import efficiency of the contract template data is improved, and the synchronization of the contract template data in different environments is favorably maintained.
In an alternative embodiment, said deriving said target contract template data from other environments containing target contract template data corresponding to said target second template unique identifier comprises:
screening at least one first alternative environment from all other environments, wherein the first alternative environment refers to other environments containing a contract template corresponding to the target second template unique identifier;
acquiring the version number of the contract template corresponding to the unique identifier of the target second template in each first alternative environment;
determining a target first alternative environment from all the first alternative environments according to the version number corresponding to each first alternative environment;
and deriving target contract template data corresponding to the target second template unique identification from the target first alternative environment.
In this alternative embodiment, each contract template may be provided with a corresponding version number for ease of management. There may be multiple other environments (i.e., the first alternative environment) containing the contract template corresponding to the target second template unique identifier, and there may be a difference in the versions of the contract templates corresponding to the target second template unique identifiers in different other environments (the versions of the contract templates are different, even though the contract template data corresponding to the contract templates of the same type are usually different), at this time, the contract template data of a proper version may be selected for export according to actual needs. For example, the target second template uniquely identifies the corresponding contract template as a loan contract template, but the loan contract template has three versions V1.0, V2.0 and V3.0 in total, and the loan contract templates of the three versions exist in the environment B, the environment C and the environment D (the first alternative environment) of other environments respectively, at this time, if the loan contract template of the V3.0 version needs to be selected, the environment D is determined as the target first alternative environment, and finally, the contract template data corresponding to the loan contract template is derived from the environment D as the target contract template data, so that the contract template data corresponding to the loan contract template of the V3.0 version can be derived as the target contract template data.
Therefore, by implementing the alternative embodiment, the target contract template data of the appropriate version can be derived from the corresponding other environment according to the version number of the contract template in the other environment, so that the target contract template data can be derived more accurately.
In an optional embodiment, the determining, according to the version number corresponding to each of the first candidate environments, a target first candidate environment from all the first candidate environments includes:
acquiring the updating time of the version number corresponding to each first alternative environment;
determining the version number corresponding to the updating time closest to the current time as a target version number;
determining a target first alternative environment from the first alternative environments of which the corresponding version numbers are the target version numbers, or,
acquiring a specified version number input by a user;
and determining a target first alternative environment from the first alternative environment with the corresponding version number as the specified version number.
In this alternative embodiment, a contract template update table may be set in the system to record the update time of each version of the contract template, and then the update time of each version of the contract template in the first alternative environment can be obtained by querying the contract template update table. For example, the contract template update table may be as follows:
template unique identifier Version number Update time of day
a V1.0 2020/01/07
a V2.0 2020/12/15
a V3.0 2021/01/02
Assuming that the number of the first candidate environments is 3, the environment a, the environment B and the environment C, the version numbers of the contract templates corresponding to the first candidate environments are V1.0, V2.0 and V3.0 in sequence, wherein the update time of the V1.0 version is closest to the current time, so that the environment a is selected from the 3 first candidate environments as the target first candidate environment, thereby enabling the version of the derived target contract template data to be the latest version, and enabling the derivation of the target contract template data to be more accurate. The specified version number can also be input by the user, so that the version of the derived target contract template data can be freely selected by the user according to actual requirements. For example, a version number list may be presented to a user in an interactive interface, and then a selection input of the user in the version number list is collected, assuming that the user selects a version number V1.0 in the version number list (i.e., a specified version number input by the user is V1.0), so that the environment a is selected from the 3 first candidate environments as the target first candidate environment.
Therefore, by implementing the optional embodiment, the contract template data of the latest updated version or the contract template data of the version specified by the user can be imported to the current environment as the target contract template data, so that the export of the target contract template data is more accurate and effective.
In an alternative embodiment, said deriving said target contract template data from other environments containing target contract template data corresponding to said target second template unique identifier comprises:
screening at least one second alternative environment from all other environments, wherein the second alternative environment refers to other environments containing the contract template corresponding to the target second template unique identifier;
acquiring the import time of each second alternative environment for importing the contract template corresponding to the unique identifier of the target second template;
determining the second candidate environment corresponding to the import time closest to the current time as a target second candidate environment;
and deriving target contract template data corresponding to the target second template unique identifier from the target second alternative environment.
In this alternative embodiment, a corresponding contract template import table may be set in each environment of the system, and is used to record the import time of the contract template imported into the environment. The importing time of the second candidate environment for importing the contract template corresponding to the target second template unique identifier can be obtained by querying the contract template importing table in each second candidate environment, then the second candidate environment of the contract template corresponding to the target second template unique identifier which is imported recently is used as the target second candidate environment, and the contract template data corresponding to the target second template unique identifier is derived from the target second candidate environment and used as the target contract template data. For example, the second candidate environment shares environment a, environment B, and environment C, the target second template is uniquely identified as a (that is, the target contract template data is the loan contract template data), wherein the time when the environment A, B, C imports the loan contract template data is "2020-12-1109: 00", "2020-12-1111: 00", and "2020-12-2009: 00", respectively, and the time when the environment C imports the loan contract template data is closest to the current time, so the environment C is taken as the target second candidate environment, and the loan contract template data in the environment C is derived as the target contract template data.
Therefore, by implementing the optional embodiment, the contract template data corresponding to the latest target second template unique identifier can be derived from other environments as the target contract template data, so that the derivation of the target contract template data is more accurate and effective.
In an optional embodiment, after the target contract template data is derived from the other environment containing the target contract template data corresponding to the target second template unique identifier, before the target contract template data is imported to the current environment, the method further includes:
acquiring a form white list corresponding to the current environment;
judging whether the target contract template data contains override data, wherein the override data is data from tables except the table white list;
when the target contract template data is judged not to contain the override data, triggering and executing the operation of importing the target contract template data into the current environment;
and when the target contract template data contains the override data, deleting the override data from the target contract template data, and triggering and executing the operation of importing the target contract template data into the current environment.
In this alternative embodiment, when exporting the contract template data in the environment, it is usually necessary to query the relevant tables to find out the corresponding data as the contract template data. For example, the data of table 1, table 2 and table 3 are extracted to derive the contract template data corresponding to the loan contract template, and the data of table 1 and table 3 are extracted to derive the contract template data corresponding to the insurance contract template. In order to ensure the safety of data in the system, a form white list of the current environment (the form white list can be used for recording forms which the current environment has permission to view) can be preset, and the contract template data imported into the current environment must be data from the forms in the form white list. For example, if the target contract template data is the contract template data corresponding to the loan contract template, since the form 3 is not in the form white list of the current environment, the data in the form 3 (i.e., the override data) is deleted from the target contract template data, and then the target contract template data is imported into the current environment, thereby being beneficial to ensuring the security of the data in the system. The data source of the target contract template data can be determined according to the table queried when the target contract template data is derived, for example, the user name of the target contract template data is obtained by querying the table 1, that is, the data source of the user name data of the target contract template data can be determined to be the table 1.
It can be seen that, by implementing the optional embodiment, the target contract template data imported into the current environment is filtered according to the form white list corresponding to the current environment (data in the target contract template data, which is derived from forms other than the form white list, is deleted, and then the target contract template data is imported into the current environment), so that the occurrence of data leakage caused by import and export of the contract template data can be reduced, and the security of data in the system is improved.
In an optional embodiment, after the target contract template data is derived from the other environment containing the target contract template data corresponding to the target second template unique identifier, before the target contract template data is imported to the current environment, the method further includes:
obtaining a desensitization rule number corresponding to the current environment;
desensitizing the target contract template data according to desensitization rules corresponding to the desensitization rule numbers, and triggering and executing the operation of importing the target contract template data into the current environment.
In this optional embodiment, desensitization processing refers to shielding sensitive data in data, and desensitization processing on data is beneficial to ensuring data security and reducing the possibility of data leakage. For example, the data obtained after desensitization of the telephone number data "13500000000" may be "135 x 0000", in which 4 digits are masked, which can reduce the possibility of leakage of the real telephone number data. Specifically, desensitization rule numbers corresponding to the current environment may be preset, and different desensitization rule numbers correspond to different desensitization rules, for example, desensitization rule numbers corresponding to the current environment are set to 1 and 2, where the desensitization rule number 1 corresponds to: the names in the names of the users are shielded, and the desensitization rule corresponding to the desensitization rule number 2 is as follows: and shielding digits 4 to 7 in the mobile phone number of the user. The target contract template data is imported to the current environment after the target contract template data is exported from other environments, and the names in the user names and the 4 th to 7 th digits in the user mobile phone numbers in the target contract template data are masked.
Therefore, by implementing the optional embodiment, the target contract template data can be imported into the current environment after the corresponding desensitization processing is performed on the target contract template data according to the desensitization rule corresponding to the current environment, so that the desensitization requirements of different current environments can be met, the occurrence of data leakage caused by importing and exporting of the contract template data can be further reduced, and the security of data in the system is further improved.
Optionally, it is also possible: and uploading the import information of the import method of the contract template data to a block chain.
Specifically, the import information is obtained by operating the import method of the contract template data, and is used for recording the import situation of the contract template data, such as the obtained first template unique identifier set, the obtained second template unique identifier set, the export time and the import time of the target contract template data, and the like. Uploading the imported information to the blockchain can ensure the safety and the fair transparency of the imported information to users. The user can download the import information from the blockchain so as to verify whether the import information of the import method of the contract template data is tampered. The blockchain referred to in this example is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Therefore, by implementing the method for importing the contract template data disclosed by the embodiment of the invention, the first template unique identification set corresponding to the contract template existing in the current environment and the second template unique identification set corresponding to the contract template existing in other environments can be automatically obtained, then the target second template unique identification existing in the second template unique identification set but not existing in the first template unique identification set is obtained by comparing the first template unique identification set and the second template unique identification set, and finally the target contract template data corresponding to the target second template unique identification is imported to the current environment from other environments, so that the import of the contract template data can be replaced by manpower, the import efficiency of the contract template data is improved, and the synchronization of the contract template data in different environments is favorably maintained. And target contract template data with proper versions can be derived from other corresponding environments according to the version numbers of the contract templates in other environments, so that the target contract template data can be derived more accurately. It is also possible to import the contract template data of the latest updated version or the contract template data of the version specified by the user as the target contract template data to the current environment. Contract template data corresponding to the latest target second template unique identifier can also be derived from other environments as target contract template data. And filtering the target contract template data imported to the current environment according to the form white list corresponding to the current environment (deleting data in the target contract template data from forms outside the form white list, and importing the target contract template data into the current environment), so that the occurrence of data leakage caused by import and export of the contract template data can be reduced, and the safety of data in the system is improved. And the target contract template data can be imported into the current environment after corresponding desensitization processing is carried out on the target contract template data according to a desensitization rule corresponding to the current environment.
Example two
Referring to fig. 2, fig. 2 is a schematic structural diagram of an importing apparatus of contract template data according to an embodiment of the present invention. As shown in fig. 2, the importing apparatus of the contract template data may include:
an obtaining module 201, configured to obtain a first template unique identifier set corresponding to a current environment, where the first template unique identifier set includes first template unique identifiers corresponding to all existing contract templates in the current environment;
the obtaining module 201 is further configured to obtain a second template unique identifier set corresponding to other environments, where the second template unique identifier set includes second template unique identifiers corresponding to all existing contract templates in the other environments, and the other environments are all environments in a system where the current environment is located except the current environment;
a determining module 202, configured to determine whether a target second template unique identifier exists in the second template unique identifier set, where the target second template unique identifier is the second template unique identifier whose corresponding first template unique identifier does not exist in the first template unique identifier set;
a derivation module 203, configured to, when the target second template unique identifier exists in the second template unique identifier set, derive the target contract template data from another environment that includes target contract template data corresponding to the target second template unique identifier;
an importing module 204, configured to import the target contract template data into the current environment.
For the specific description of the importing apparatus of the contract template data, reference may be made to the specific description of the importing method of the contract template data, which is not described in detail herein.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention. As shown in fig. 3, the computer apparatus may include:
a memory 301 storing executable program code;
a processor 302 connected to the memory 301;
the processor 302 calls the executable program code stored in the memory 301 to execute the steps of the method for importing the contract template data disclosed in the first embodiment of the present invention.
Example four
The embodiment of the invention discloses a computer storage medium 401, wherein a computer instruction is stored in the computer storage medium 401, and when the computer instruction is called, the computer instruction is used for executing the steps of the method for importing the contract template data disclosed by the embodiment of the invention.
The above-described embodiments of the apparatus are merely illustrative, and the modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, where the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM), or other disk memories, CD-ROMs, or other magnetic disks, A tape memory, or any other medium readable by a computer that can be used to carry or store data.

Claims (9)

1. A method for importing contract template data, the method comprising:
acquiring a first template unique identification set corresponding to a current environment, wherein the first template unique identification set comprises first template unique identifications corresponding to all existing contract templates in the current environment; the acquisition mode of the first template unique identification set is as follows: a contract template record form is set in the system and used for recording the unique template identifier corresponding to the contract template existing in the current environment, and a first template unique identifier set is obtained by inquiring the contract template record form and acquiring the unique template identifier of the contract template existing in the current environment;
acquiring a second template unique identification set corresponding to other environments, wherein the second template unique identification set comprises second template unique identifications corresponding to all existing contract templates in the other environments, and the other environments refer to all environments except the current environment in a system where the current environment is located;
judging whether a target second template unique identifier exists in the second template unique identifier set, wherein the target second template unique identifier is the second template unique identifier without a corresponding first template unique identifier in the first template unique identifier set;
if the target second template unique identifier exists in the second template unique identifier set, deriving the target contract template data from other environments containing the target contract template data corresponding to the target second template unique identifier; the deriving the target contract template data from other environments containing the target contract template data corresponding to the target second template unique identifier specifically includes: screening out at least one first alternative environment from all other environments, wherein the first alternative environment is the other environment containing the contract template corresponding to the target second template unique identifier; acquiring the version number of the contract template corresponding to the unique identifier of the target second template in each first alternative environment; determining a target first alternative environment from all the first alternative environments according to the version number corresponding to each first alternative environment; target contract template data corresponding to the target second template unique identification are derived from the target first alternative environment;
and importing the target contract template data into the current environment.
2. The method for importing contract template data according to claim 1, wherein the determining a target first candidate environment from all the first candidate environments according to the version number corresponding to each first candidate environment includes:
acquiring the updating time of the version number corresponding to each first alternative environment;
determining the version number corresponding to the updating time closest to the current time as a target version number;
determining a target first alternative environment from the first alternative environment whose corresponding version number is the target version number, or,
acquiring a specified version number input by a user;
and determining a target first alternative environment from the first alternative environment with the corresponding version number as the specified version number.
3. The method for importing contract template data according to claim 1, wherein the deriving the target contract template data from other environments containing target contract template data corresponding to the target second template unique identifier comprises:
screening at least one second alternative environment from all other environments, wherein the second alternative environment refers to other environments containing the contract template corresponding to the target second template unique identifier;
acquiring the import time of each second alternative environment for importing the contract template corresponding to the unique identifier of the target second template;
determining the second candidate environment corresponding to the import time closest to the current time as a target second candidate environment;
and deriving target contract template data corresponding to the target second template unique identifier from the target second alternative environment.
4. The method for importing contract template data according to any one of claims 1-3, wherein after the target contract template data is exported from other environments containing target contract template data corresponding to the target second template unique identifier, and before the target contract template data is imported to the current environment, the method further comprises:
acquiring a form white list corresponding to the current environment;
judging whether the target contract template data contains override data, wherein the override data is data from tables except the table white list;
when the target contract template data is judged not to contain the override data, triggering and executing the operation of importing the target contract template data into the current environment;
and when the target contract template data is judged to contain the override data, deleting the override data from the target contract template data, and triggering and executing the operation of importing the target contract template data into the current environment.
5. The method for importing contract template data according to any one of claims 1-3, wherein after the target contract template data is exported from other environments containing target contract template data corresponding to the target second template unique identifier, and before the target contract template data is imported to the current environment, the method further comprises:
obtaining a desensitization rule number corresponding to the current environment;
desensitizing the target contract template data according to desensitization rules corresponding to the desensitization rule numbers, and triggering and executing the operation of importing the target contract template data into the current environment.
6. An apparatus for importing contract template data, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first template unique identification set corresponding to a current environment, and the first template unique identification set comprises first template unique identifications corresponding to all existing contract templates in the current environment; the acquisition mode of the first template unique identification set is as follows: a contract template record form is set in the system and used for recording the unique template identifier corresponding to the contract template existing in the current environment, and a first template unique identifier set is obtained by inquiring the contract template record form and acquiring the unique template identifier of the contract template existing in the current environment;
the acquiring module is further configured to acquire a second template unique identifier set corresponding to other environments, where the second template unique identifier set includes second template unique identifiers corresponding to all existing contract templates in the other environments, and the other environments are all environments in a system where the current environment is located except the current environment;
a judging module, configured to judge whether a target second template unique identifier exists in the second template unique identifier set, where the target second template unique identifier is the second template unique identifier whose corresponding first template unique identifier does not exist in the first template unique identifier set;
the derivation module is used for deriving the target contract template data from other environments containing the target contract template data corresponding to the target second template unique identifier when the target second template unique identifier exists in the second template unique identifier set; the deriving the target contract template data from other environments containing the target contract template data corresponding to the target second template unique identifier specifically includes: screening at least one first alternative environment from all other environments, wherein the first alternative environment refers to other environments containing a contract template corresponding to the target second template unique identifier; acquiring the version number of the contract template corresponding to the unique identifier of the target second template in each first alternative environment; determining a target first alternative environment from all the first alternative environments according to the version number corresponding to each first alternative environment; target contract template data corresponding to the target second template unique identification are derived from the target first alternative environment;
and the importing module is used for importing the target contract template data into the current environment.
7. The apparatus for importing contract template data according to claim 6, wherein the export module exports the target contract template data from other environments containing the target contract template data corresponding to the target second template unique identifier by:
screening at least one first alternative environment from all other environments, wherein the first alternative environment refers to other environments containing a contract template corresponding to the target second template unique identifier;
acquiring the version number of the contract template corresponding to the unique identifier of the target second template in each first alternative environment;
determining a target first alternative environment from all the first alternative environments according to the version number corresponding to each first alternative environment;
and deriving target contract template data corresponding to the target second template unique identifier from the target first alternative environment.
8. A computer device, characterized in that the computer device comprises:
a memory storing executable program code;
a processor coupled to the memory;
the processor calls the executable program code stored in the memory to execute the import method of the contract template data according to any one of claims 1-5.
9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for importing contract template data according to any one of claims 1 to 5.
CN202110285082.9A 2021-03-17 2021-03-17 Method, device and equipment for importing contract template data and storage medium Active CN113065323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110285082.9A CN113065323B (en) 2021-03-17 2021-03-17 Method, device and equipment for importing contract template data and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110285082.9A CN113065323B (en) 2021-03-17 2021-03-17 Method, device and equipment for importing contract template data and storage medium

Publications (2)

Publication Number Publication Date
CN113065323A CN113065323A (en) 2021-07-02
CN113065323B true CN113065323B (en) 2022-09-23

Family

ID=76560896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110285082.9A Active CN113065323B (en) 2021-03-17 2021-03-17 Method, device and equipment for importing contract template data and storage medium

Country Status (1)

Country Link
CN (1) CN113065323B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117520432A (en) * 2023-11-30 2024-02-06 广州方舟信息科技有限公司 Template-based data transmission method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656931A (en) * 2018-09-28 2019-04-19 平安科技(深圳)有限公司 Verification mechanism, device, equipment and the storage medium of contract dataset consistency

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710527A (en) * 2018-04-09 2018-10-26 广东睿江云计算股份有限公司 A kind of virtual machine template management system, method based on xen
CN110046334A (en) * 2019-03-21 2019-07-23 平安国际智慧城市科技股份有限公司 Data lead-in method, device, computer equipment and storage medium
JP7340952B2 (en) * 2019-04-26 2023-09-08 株式会社日立製作所 Template search system and template search method
CN112364101A (en) * 2020-11-11 2021-02-12 深圳前海微众银行股份有限公司 Data synchronization method and device, terminal equipment and medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656931A (en) * 2018-09-28 2019-04-19 平安科技(深圳)有限公司 Verification mechanism, device, equipment and the storage medium of contract dataset consistency

Also Published As

Publication number Publication date
CN113065323A (en) 2021-07-02

Similar Documents

Publication Publication Date Title
CN108268253B (en) Interface code generation method and terminal equipment
CN111490990A (en) Network security analysis method based on big data platform and big data platform server
CN104732154A (en) Method And System For Anonymizing Data
CN111461751B (en) Real estate information chain organization method based on block chain, historical state tracing method and device
CN111914135A (en) Data query method and device, electronic equipment and storage medium
CN111124917A (en) Public test case management and control method, device, equipment and storage medium
CN113065323B (en) Method, device and equipment for importing contract template data and storage medium
CN114896634A (en) Data authority control method and system of enterprise report platform
CN112328275A (en) Data updating method and device for nuclear power plant, terminal equipment and storage medium
CN112363997B (en) Data version management method, device and storage medium
CN108805725B (en) Risk event confirmation method, server, and computer-readable storage medium
CN111061733B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN109460318B (en) Import method of rollback archive collected data, computer device and computer readable storage medium
CN110414197B (en) Bank user identity verification method and device based on behavior characteristics
CN110489434B (en) Information processing method and related equipment
CN111817859A (en) Data sharing method, device, equipment and storage medium based on zero knowledge proof
CN112364022A (en) Information derivation management method and device, computer equipment and readable storage medium
CN110347657A (en) Data creation method, device, electronic equipment and storage medium
CN113392382B (en) Data management method, electronic device and readable storage medium
CN114238273A (en) Database management method, device, equipment and storage medium
CN110457332B (en) Information processing method and related equipment
CN112308440A (en) Work order processing method and device, computer equipment and computer readable storage medium
CN113111153A (en) Data analysis method, device, equipment and storage medium
CN109284278B (en) Calculation logic migration method based on data analysis technology and terminal equipment
CN112348403A (en) Wind control model construction method and device and electronic equipment

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