CN113642039A - Configuration method and device of document template, computer equipment and storage medium - Google Patents

Configuration method and device of document template, computer equipment and storage medium Download PDF

Info

Publication number
CN113642039A
CN113642039A CN202110908862.4A CN202110908862A CN113642039A CN 113642039 A CN113642039 A CN 113642039A CN 202110908862 A CN202110908862 A CN 202110908862A CN 113642039 A CN113642039 A CN 113642039A
Authority
CN
China
Prior art keywords
document
document template
target
user
information
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
CN202110908862.4A
Other languages
Chinese (zh)
Other versions
CN113642039B (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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202110908862.4A priority Critical patent/CN113642039B/en
Publication of CN113642039A publication Critical patent/CN113642039A/en
Application granted granted Critical
Publication of CN113642039B publication Critical patent/CN113642039B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/38Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • 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
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

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

Abstract

The application relates to an artificial intelligence technology, and provides a configuration method, a device, computer equipment and a storage medium of a document template, wherein the method comprises the following steps: judging whether a document template configuration request input by a user is received; if so, calling the user authority data table and the service operation authority score table to carry out authority verification on the user, and judging whether the authority verification passes; if so, displaying a business variable domain list; acquiring a target service variable selected by a user in a service variable domain list; receiving configuration information input by a user; generating a corresponding document template based on the target business variable, the configuration information and a preset initial file; and generating a document number corresponding to the document template, and storing the document template in a document template database based on the document number. The document template generating method and device can reduce generation cost of the document template and improve generation efficiency and accuracy of the document template. The method and the device can also be applied to the field of block chains, and the data such as the document template can be stored on the block chains.

Description

Configuration method and device of document template, computer equipment and storage medium
Technical Field
The application relates to the technical field of artificial intelligence, in particular to a configuration method and device of a document template, computer equipment and a storage medium.
Background
The configuration management of the current document template realizes variable configuration, and characters which may change in the document can be set as variables, such as the name and identification number of a client. However, in the process of making the document template, variables are usually generated directly by developers through text editing, errors are easy to occur, and the accuracy of the generated document template is low. In addition, for variables with the same business meaning, different developers will typically create a variety of different variable expressions for such variables, e.g., a variable that for a business meaning is the name of a customer may include the name of the customer, etc. Because the maintenance of the variables in the document template is not defined in a standard way, a large amount of joint debugging and testing are easily required when the document template is newly added every time, and the problems of time consumption, labor consumption and low generation efficiency exist in the generation of the document template.
Disclosure of Invention
The application mainly aims to provide a document template configuration method, a document template configuration device, computer equipment and a storage medium, and aims to solve the technical problems that the existing document template configuration mode is time-consuming and labor-consuming, the generation efficiency of the document template is low, and the accuracy is low.
The application provides a configuration method of a document template, which comprises the following steps:
judging whether a document template configuration request input by a user is received; wherein, the document template configuration request carries user information;
if the document template configuration request is received, based on the user information, calling a preset user authority data table and a service operation authority score table to carry out authority verification on the user, and judging whether the authority verification passes;
if the authority passes the verification, displaying a preset business variable domain list; the business variable domain list comprises a plurality of business variables, and the business meaning of each business variable is different;
acquiring a target service variable selected by the user in the service variable domain list;
receiving configuration information input by the user;
generating a corresponding document template based on the target business variable, the configuration information and a preset initial file;
and generating a document number corresponding to the document template, and storing the document template in a preset document template database based on the document number.
Optionally, the invoking a preset user permission data table and a service operation permission score table based on the user information to perform permission verification on the user, and determining whether the permission verification passes includes:
acquiring a preset user authority data table and a service operation authority score table;
judging whether the user authority data table stores the appointed user information which is the same as the user information;
if the appointed user information is stored, inquiring an authority score corresponding to the user information and authority limit information corresponding to the user information based on the user authority data table;
inquiring a business operation authority score interval corresponding to the business operation of the configuration document template based on the business operation authority score table;
judging whether the permission score is in the service permission score interval or not;
if the service authority score is within the service authority score interval, acquiring current time information;
judging whether the time information is in a time interval range corresponding to the authority deadline information;
and if the authority limit information is in the time interval range corresponding to the authority limit information, judging that the authority verification is passed, otherwise, judging that the authority verification is not passed.
Optionally, after generating the document number corresponding to the document template and storing the document template in a preset document template database based on the document number, the method includes:
judging whether a document generation request input by a specified user is received; the document generation request carries target document codes and parameter data, and the parameter data comprises document variables and parameters corresponding to the document variables;
if the document generation request is received, analyzing the target document code and the parameter data from the document generation request;
inquiring a target document template corresponding to the target document code from the document template database based on the target document code;
performing parameter verification on the parameter data based on the target document template, and judging whether document variables contained in the parameter data are all matched with all variables contained in the target document template;
and if the parameters are matched with all the variables contained in the target document template, filling the target document template based on the parameters in the parameter data to generate a target document file corresponding to the document generation request.
Optionally, after the filling processing is performed on the target document template based on the parameters in the parameter data and a target document file corresponding to the document generation request is generated, the method includes:
screening out sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, and acquiring important level information corresponding to each sensitive variable;
determining desensitization rules respectively corresponding to the sensitive variables based on the importance level information;
acquiring a first quantity of the sensitive variables and acquiring a second quantity of preset processing threads;
judging whether the second number is larger than the first number;
if so, randomly screening a plurality of target processing threads with the same number as the first number from the processing threads;
establishing a one-to-one correspondence relationship between the target processing threads and the desensitization rules based on desensitization rules respectively corresponding to the sensitive variables, and respectively sending the desensitization rules to the corresponding target processing threads;
generating a target corresponding relation between the sensitive variables and the target processing thread based on the corresponding relation between the desensitization rule and the sensitive variables and the corresponding relation between the target processing thread and the desensitization rule, and respectively sending each sensitive variable to the corresponding target processing thread based on the target corresponding relation;
calling each target processing thread to respectively obtain target parameters corresponding to the internally contained sensitive variables from all the parameters, and carrying out desensitization processing on the obtained target parameters based on internally contained desensitization rules to obtain desensitization information corresponding to the internally contained sensitive variables; wherein the internal part is the internal part of each target processing thread;
modifying the target document file based on the desensitization information to obtain a processed target document file;
and storing and displaying the processed target document file.
Optionally, the determining, based on the importance level information, desensitization rules respectively corresponding to the sensitive variables includes:
acquiring important level information of a specified sensitive variable; the specified sensitive variable is any one of all the sensitive variables, and the importance level information of the specified sensitive variable is marked as specified importance level information;
if the specified important level information is preset first level information, taking a first desensitization rule corresponding to the first level information as a desensitization rule of the specified sensitive variable; the first desensitization rule is used for performing data desensitization by using a preset encryption mode;
if the specified important level information is preset second level information, taking a second desensitization rule corresponding to the second level information as a desensitization rule of the specified sensitive variable; wherein the second desensitization rule is to use an alternative way to perform data desensitization;
if the specified important level information is preset third level information, taking a third desensitization rule corresponding to the third level information as a desensitization rule of the specified sensitive variable; wherein the third desensitization rule is to perform data desensitization using a fuzzy approach.
Optionally, after performing parameter verification on the parameter data based on the target document template and determining whether document variables included in the parameter data are all matched with all variables included in the target document template, the method includes:
if the variables are not matched with all the variables contained in the target document template, screening out the designated variables which are not matched with the document variables from the target document template;
acquiring a preset information template;
generating data missing reminding information based on the designated variable and the information template;
and displaying the data missing reminding information.
Optionally, after the displaying of the preset service variable domain list, the method includes:
judging whether a modification request of an administrator user for the service variable domain list is received;
if the modification request is received, receiving modification data input by the administrator user;
modifying the business variable domain list based on the modification data to obtain a modified business variable domain list;
and replacing the service variable domain list by using the modified service variable domain list so as to finish the updating of the service variable domain list.
The application also provides a configuration device of document template, includes:
the first judgment module is used for judging whether a document template configuration request input by a user is received or not; wherein, the document template configuration request carries user information;
the verification module is used for calling a preset user authority data table and a service operation authority score table to carry out authority verification on the user based on the user information if the document template configuration request is received, and judging whether the authority verification passes;
the first display module is used for displaying a preset business variable domain list if the authority verification passes; the business variable domain list comprises a plurality of business variables, and the business meaning of each business variable is different;
a first obtaining module, configured to obtain a target service variable selected by the user in the service variable domain list;
the first receiving module is used for receiving the configuration information input by the user;
the first generation module is used for generating a corresponding document template based on the target business variable, the configuration information and a preset initial file;
and the storage module is used for generating a document number corresponding to the document template and storing the document template in a preset document template database based on the document number.
The present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method.
The configuration method, the configuration device, the computer equipment and the storage medium of the document template have the following beneficial effects:
according to the document template configuration method, the document template configuration device, the computer equipment and the storage medium, when a document template configuration request input by a user is received, a preset business variable domain list is shown after the user passes permission verification, the corresponding document template can be generated based on the target business variable, the configuration information and a preset initial file by acquiring the target business variable selected by the user in the business variable domain list and the configuration information input by the user, and the document template is stored in a preset document template database based on the document number after the document number corresponding to the document template is generated. According to the method and the device, the determination mode of the variables in the document template is replaced by variable selection from text editing, so that the operation risk of developers can be effectively reduced, and the generation accuracy of the document template is improved. In addition, the definition of the variable is normalized to generate the business variable domain list, so that the multiplexing of the variable definition can be realized based on the business variable domain list, and a large amount of joint debugging and testing are not needed after the business variable domain list is subsequently utilized to generate the document template, so that manpower and material resources can be saved, the generation cost of the document template is effectively reduced, and the generation efficiency of the document template is improved.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a method for configuring a document template according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a document template configuration device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
Referring to fig. 1, a method for configuring a document template according to an embodiment of the present application includes:
s1: judging whether a document template configuration request input by a user is received; wherein, the document template configuration request carries user information;
s2: if the document template configuration request is received, based on the user information, calling a preset user authority data table and a service operation authority score table to carry out authority verification on the user, and judging whether the authority verification passes;
s3: if the authority passes the verification, displaying a preset business variable domain list; the business variable domain list comprises a plurality of business variables, and the business meaning of each business variable is different;
s4: acquiring a target service variable selected by the user in the service variable domain list;
s5: receiving configuration information input by the user;
s6: generating a corresponding document template based on the target business variable, the configuration information and a preset initial file;
s7: and generating a document number corresponding to the document template, and storing the document template in a preset document template database based on the document number.
As described in the above steps S1-S7, the main implementation of the present method embodiment is a document template configuration device. In practical applications, the configuration device of the document template may be implemented by a virtual device, such as a software code, or may be implemented by an entity device in which a relevant execution code is written or integrated, and may perform human-computer interaction with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device. The configuration device of document template in this embodiment can reduce the generation cost of document template, improves the generation efficiency of document template to and the accuracy of generating document template improves. Specifically, it is first determined whether a document template configuration request input by a user is received. And the document template configuration request carries user information. In addition, the document template configuration request is a request for configuring a document template. The user information can comprise user name, user id and other information, and whether the user has the configuration authority for the document template can be verified based on the user information. And if the document template configuration request is received, calling a preset user authority data table and a service operation authority score table to carry out authority verification on the user based on the user information, and judging whether the authority verification passes. The authority score of the user and the authority limit information of the user can be inquired through the user authority data table, the service authority score interval corresponding to the service operation of the configuration document template can be inquired through the service operation authority score table, the authority score and the service authority score interval are compared in size, verification processing for judging whether the time information is in the time range corresponding to the authority limit information is carried out, and whether the user has the configuration authority of the configuration document template can be intelligently and quickly judged according to the obtained processing result.
And if the authority passes the verification, displaying a preset service variable domain list. The service variable domain list comprises a plurality of service variables, and the service meaning of each service variable is different. Specifically, a plurality of different types of service variable domains are stored in the service variable domain list, and a service variable domain can be understood as a data set including a plurality of service variables, and each service variable domain includes a corresponding service variable. For example, the business variable domain may include a customer information domain, a corporate legal domain, other information domain. The customer information field may include customer name, identification number, gender, address. The corporate legal domain may include a company name, a corporate legal name. The other information fields are information fields corresponding to specific business scenarios, and may include, for credit business scenarios, borrowing limits, borrowing interest rates, borrowing deadlines, repayment cycles, contract signing times, and repayment plans. And then acquiring the target service variable selected by the user in the service variable domain list. Wherein, the number of the target business variables can be multiple.
And then receiving the configuration information input by the user. Wherein the configuration information at least comprises the position information of the target business variable in the initial file. In addition, the configuration information may also include the name of the document template, the validation time of the document template, the aging time of the document template, the version number of the document template, the type of the document template, and the like. And subsequently, generating a corresponding document template based on the target business variable, the configuration information and a preset initial file. The target business variable can be set at the corresponding position of the preset initial file based on the position information in the configuration information, so that a corresponding document template can be generated. In addition, the file type of the initial file is not particularly limited, and may be set according to actual requirements, for example, the file type may be a blank document. And finally, generating a document number corresponding to the document template, and storing the document template in a preset document template database based on the document number. The document number has uniqueness, can be regarded as index information of the document template in the document template database, and can be inquired out the corresponding document template from the document template database based on the document number.
In this embodiment, when a document template configuration request input by a user is received, a preset service variable domain list is displayed after the user is judged to pass the authority verification, a corresponding document template can be generated based on a target service variable selected by the user in the service variable domain list and configuration information input by the user, and after a document number corresponding to the document template is generated, the document template is stored in a preset document template database based on the document number. According to the method and the device, the text editing mode of the variable in the document template is replaced by the variable selection, so that the operation risk of developers can be effectively reduced, and the generation accuracy of the document template is improved. In addition, the definition of the variable is normalized to generate the business variable domain list, so that the multiplexing of the variable definition can be realized based on the business variable domain list, and a large amount of joint debugging and testing are not needed after the business variable domain list is subsequently utilized to generate the document template, so that manpower and material resources can be saved, the generation cost of the document template is effectively reduced, and the generation efficiency of the document template is improved.
Further, in an embodiment of the present application, the step S2 includes:
s200: acquiring a preset user authority data table and a service operation authority score table;
s201: judging whether the user authority data table stores the appointed user information which is the same as the user information;
s202: if the appointed user information is stored, inquiring an authority score corresponding to the user information and authority limit information corresponding to the user information based on the user authority data table;
s203: inquiring a business operation authority score interval corresponding to the business operation of the configuration document template based on the business operation authority score table;
s204: judging whether the permission score is in the service permission score interval or not;
s205: if the service authority score is within the service authority score interval, acquiring current time information;
s206: judging whether the time information is in a time interval range corresponding to the authority deadline information;
s207: and if the authority limit information is in the time interval range corresponding to the authority limit information, judging that the authority verification is passed, otherwise, judging that the authority verification is not passed.
As described in the above steps S200 to S207, the step of invoking a preset user permission data table and a service operation permission score table to perform permission verification on the user based on the user information, and determining whether the permission verification passes may specifically include: firstly, a preset user authority data table and a service operation authority score table are obtained. The user authority data table is a first data table which is created in advance and records all employee information, authority scores and authority limit information which correspond to the employee information one by one. The service operation permission score table is a second data table which is created in advance and records each service operation and the required permission score intervals corresponding to the service operation one by one. The authority limit information is information corresponding to temporal limitation of the authority score of the user. For example, it may be specified that a user of a certain identity has certain rights for a certain period of time, or that a user of a certain identity uses a certain right for a certain length of time. And then judging whether the user authority data table stores the specified user information which is the same as the user information. And if the specified user information is stored, inquiring an authority score corresponding to the user information based on the user authority data table, and inquiring authority limit information corresponding to the user information. And then inquiring a service authority score interval corresponding to the service operation of the configuration document template based on the service operation authority score table. And judging whether the permission score is in the service permission score interval. And if the service authority score is within the service authority score interval, acquiring current time information. And further judging whether the time information is in a time interval range corresponding to the authority deadline information. Wherein the current time information is verified in order to determine the validity period of the permission score owned by the user. If the current time information is in the time range corresponding to the authority limit information, the authority score of the user is indicated to be in a valid state at present, and if the current time information is not in the time range corresponding to the authority limit information, the authority score of the user is indicated to be in a failure state at present. And if the authority limit information is in the time interval range corresponding to the authority limit information, judging that the authority verification is passed, otherwise, judging that the authority verification is not passed. In the embodiment, the authority score of the user and the authority limit information of the user are inquired through the user authority data table, the service authority score interval corresponding to the service operation of the configuration document template is inquired through the service operation authority score table, the authority score and the service authority score interval are compared in size, and the verification processing for judging whether the time information is in the time range corresponding to the authority limit information is carried out, so that whether the user has the authority for configuring the document template can be intelligently and quickly judged according to the obtained processing result, the condition that the configuration authority for configuring the document template is provided for an illegal user or a user without the authority can be effectively avoided, and the processing safety of the configuration process of the document template is effectively ensured.
Further, in an embodiment of the present application, after the step S7, the method includes:
s700: judging whether a document generation request input by a specified user is received; the document generation request carries target document codes and parameter data, and the parameter data comprises document variables and parameters corresponding to the document variables;
s701: if the document generation request is received, analyzing the target document code and the parameter data from the document generation request;
s702: inquiring a target document template corresponding to the target document code from the document template database based on the target document code;
s703: performing parameter verification on the parameter data based on the target document template, and judging whether document variables contained in the parameter data are all matched with all variables contained in the target document template;
s704: and if the parameters are matched with all the variables contained in the target document template, filling the target document template based on the parameters in the parameter data to generate a target document file corresponding to the document generation request.
As described in the above steps S700 to S704, after the steps of generating the document number corresponding to the document template and storing the document template in the preset document template database based on the document number are performed, a process of generating a corresponding target document based on the input document generation request is further included. Specifically, it is first determined whether a document generation request input by a specified user is received. Wherein the document generation request is a request for generating a document file. The document generation request carries target document codes and parameter data, and the parameter data comprises document variables and parameters corresponding to the document variables. And if the document generation request is received, analyzing the target document code and the parameter data from the document generation request. And then inquiring a target document template corresponding to the target document code from the document template database based on the target document code. And then, parameter verification is carried out on the parameter data based on the target document template, and whether document variables contained in the parameter data are all matched with all variables contained in the target document template is judged. The specific implementation process of determining whether the document variables included in the parameter data are all matched with all the variables included in the target document template may include: acquiring a first number of all the document variables and acquiring a second number of all the variables contained in the target document template; judging whether the first quantity is the same as the second quantity; if the target document template is the same as the target document template, judging whether target variables which are the same as the variables exist in all document variables contained in the parameter data or not for each variable contained in the target document template; and if the target variable identical to the variable exists in the parameter data for each variable contained in the target document template, judging that the document variables contained in the parameter data are all matched with all the variables contained in the target document template, and otherwise, judging that the document variables contained in the parameter data are not all matched with all the variables contained in the target document template. In addition, the matching process between each variable included in the target document template and all document variables may be performed based on a preset parallel comparison instruction, and the parallel comparison instruction may specifically be a single instruction stream multiple data (SIMD) instruction. The data matching processing is simultaneously carried out on each variable contained in the target document template and each document variable in all document variables by utilizing the parallel computing capability of the parallel comparison instruction, so that the matching comparison rate between each variable and each document variable can be effectively improved, and the generation rate of the target document file is favorably improved. And if the parameters are matched with all the variables contained in the target document template, filling the target document template based on the parameters in the parameter data to generate a target document file corresponding to the document generation request. The target document template comprises a plurality of variable fields and variable parameter filling areas corresponding to the variable fields, and corresponding target document files can be generated by acquiring parameters corresponding to the variable fields and filling the parameters into the corresponding variable parameter filling areas in the target document template. In addition, if all the variables are matched with all the variables contained in the target document template, reminding information with normal parameters can be generated and displayed. After the document template is generated according to actual requirements, the corresponding target document file can be rapidly generated according to document codes and parameter data carried in a document generation request input by a user, and the generation efficiency of the document file is improved.
Further, in an embodiment of the present application, after the step S704, the method includes:
s7040: screening out sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, and acquiring important level information corresponding to each sensitive variable;
s7041: determining desensitization rules respectively corresponding to the sensitive variables based on the importance level information;
s7042: acquiring a first quantity of the sensitive variables and acquiring a second quantity of preset processing threads;
s7043: judging whether the second number is larger than the first number;
s7044: if so, randomly screening a plurality of target processing threads with the same number as the first number from the processing threads;
s7045: establishing a one-to-one correspondence relationship between the target processing threads and the desensitization rules based on desensitization rules respectively corresponding to the sensitive variables, and respectively sending the desensitization rules to the corresponding target processing threads;
s7046: generating a target corresponding relation between the sensitive variables and the target processing thread based on the corresponding relation between the desensitization rule and the sensitive variables and the corresponding relation between the target processing thread and the desensitization rule, and respectively sending each sensitive variable to the corresponding target processing thread based on the target corresponding relation;
s7047: calling each target processing thread to respectively obtain target parameters corresponding to the internally contained sensitive variables from all the parameters, and carrying out desensitization processing on the obtained target parameters based on internally contained desensitization rules to obtain desensitization information corresponding to the internally contained sensitive variables; wherein the internal part is the internal part of each target processing thread;
s7048: modifying the target document file based on the desensitization information to obtain a processed target document file;
s7049: and storing and displaying the processed target document file.
As described in the above steps S7040 to S7049, after the step of performing the filling processing on the target document template based on the parameters in the parameter data to generate the target document file corresponding to the document generation request is performed, a process of performing data desensitization processing on the obtained target document file is further included. Specifically, sensitive variables are screened from all variables contained in the target document file based on a preset sensitive variable list, and important level information corresponding to each sensitive variable is acquired. The sensitive variable list is generated according to sensitive variables input by relevant users in advance and important level information corresponding to the sensitive variables respectively, the sensitive variables are variables corresponding to information with higher sensitivity, and subsequently, data desensitization processing needs to be further performed on parameter contents corresponding to the sensitive variables in the document file when a final document file is generated. In addition, the sensitive variable may be a variable corresponding to information with a higher sensitivity. The sensitive field can be set according to actual requirements, for example, the information with higher sensitivity is the identification number of the user, and the corresponding sensitive variable can be the identification number. The importance level information is information used for indicating the importance degree of the sensitive variable, relevant users can input corresponding importance level information for each sensitive variable respectively according to actual experience, and the importance level information can comprise high importance, medium importance and low importance. Then, based on the importance level information, desensitization rules corresponding to the sensitive variables are determined. And for the sensitive variables in the sensitive variable list, corresponding desensitization rules are allocated to different sensitive variables according to the important level information of each sensitive variable. And then acquiring a first quantity of the sensitive variables and acquiring a second quantity of preset processing threads. Judging whether the second quantity is larger than the first quantity or not; and if the second quantity is larger than the first quantity, randomly screening a plurality of target processing threads with the same quantity as the first quantity from the processing threads. The processing thread is a thread which is pre-allocated by the device and used for performing data desensitization processing, the processing thread performs data desensitization processing in an operating state, and the processing thread enters a dormant state when not operating, so that the creation and destruction of the thread are not required, and the loss of the device is saved. The processing thread can perform corresponding data desensitization processing on the parameter with higher sensitivity degree based on the internal desensitization rule, and the feasibility of the data desensitization process can be ensured. In addition, a first number of target processing threads in a sleep state in the thread pool can be awakened concurrently by triggering the awakening instruction based on the awakening instruction. The data desensitization processing flow is executed by adopting a plurality of target processing threads with the same number as the sensitive variables, so that the CPU and the memory performance of the device can be fully utilized, the advantages of a multi-core CPU are exerted, the time delay of data desensitization processing is reduced, and the processing efficiency of the data desensitization processing is improved. After the target processing threads are obtained, establishing a one-to-one correspondence relationship between the target processing threads and desensitization rules based on desensitization rules respectively corresponding to the sensitive variables, and respectively sending the desensitization rules to the corresponding target processing threads. And then generating a target corresponding relation between the sensitive variables and the target processing thread based on the corresponding relation between the desensitization rule and the sensitive variables and the corresponding relation between the target processing thread and the desensitization rule, and respectively sending the sensitive variables to the corresponding target processing threads based on the target corresponding relation. And further calling each target processing thread to respectively obtain target parameters corresponding to the internally contained sensitive variables from all the parameters, and carrying out desensitization processing on the obtained target parameters based on the internally contained desensitization rules to obtain desensitization information corresponding to the internally contained sensitive variables. Wherein the internal part is internal to each target processing thread. And finally, modifying the target document file based on the desensitization information to obtain a processed target document file. And after the target document file is obtained, storing and displaying the processed target document file. After the target document file is generated, the present embodiment can also intelligently screen out the sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, and can acquire desensitization rules respectively corresponding to the sensitive variables based on the important level information, and based on the desensitization rules, call a preset target processing thread to perform corresponding desensitization processing on target parameters corresponding to each sensitive variable to obtain processed desensitization information, and finally perform data filling processing on the target document file by using the desensitization information and parameters corresponding to other variables except the desensitization variables to generate a processed target document file, where the processed target document file is the finally required document file. By desensitizing the target parameters corresponding to the sensitive fields in the target document file, the data security of the sensitive information in the target document file is effectively ensured, and the risk of sensitive information leakage is avoided. In addition, in the embodiment, the sensitive variables with higher sensitivity are screened out from all the variables contained in the target document file based on the sensitive variable list, so that only the target parameters corresponding to the part of sensitive variables are subjected to desensitization, and the parameters corresponding to all the variables contained in all the target document files are not subjected to desensitization, thereby effectively reducing unnecessary consumption generated in data processing, and improving the intelligence and the processing efficiency of data desensitization.
Further, in an embodiment of the present application, the step S7041 includes:
s70410: acquiring important level information of a specified sensitive variable; the specified sensitive variable is any one of all the sensitive variables, and the importance level information of the specified sensitive variable is marked as specified importance level information;
s70411: if the specified important level information is preset first level information, taking a first desensitization rule corresponding to the first level information as a desensitization rule of the specified sensitive variable; the first desensitization rule is used for performing data desensitization by using a preset encryption mode;
s70412: if the specified important level information is preset second level information, taking a second desensitization rule corresponding to the second level information as a desensitization rule of the specified sensitive variable; wherein the second desensitization rule is to use an alternative way to perform data desensitization;
s70413: if the specified important level information is preset third level information, taking a third desensitization rule corresponding to the third level information as a desensitization rule of the specified sensitive variable; wherein the third desensitization rule is to perform data desensitization using a fuzzy approach.
As described in the foregoing steps S70410 to S70413, the step of determining, based on the importance level information, a desensitization rule corresponding to each of the sensitive variables may specifically include: and acquiring important level information of the specified sensitive variable. The specified sensitive variable is any one of all the sensitive variables, and the importance level information of the specified sensitive variable is marked as specified importance level information. In addition, importance level information specifying sensitive variables may be queried from the list of sensitive variables. In addition, the desensitization treatment is carried out by adopting a desensitization mode with higher safety for sensitive variables with higher importance levels in the importance level information. Specifically, if the specified importance level information is preset first level information, a first desensitization rule corresponding to the first level information is used as a desensitization rule of the specified sensitive variable. The first desensitization rule is used for performing data desensitization by using a preset encryption mode. The preset encryption method is not particularly limited, and may include, for example, an asymmetric encryption algorithm, a hash encryption algorithm, and the like. And if the specified important level information is preset second level information, taking a second desensitization rule corresponding to the second level information as a desensitization rule of the specified sensitive variable. Wherein the second desensitization rule is to use an alternative approach to data desensitization. In addition, the above-mentioned alternative modes may include preset character substitution, random character substitution and the like. And if the specified important level information is preset third level information, taking a third desensitization rule corresponding to the third level information as a desensitization rule of the specified sensitive variable. Wherein the third desensitization rule is to perform data desensitization using a fuzzy approach. In addition, the fuzzy manner may include a manner of processing the sensitive data into a fuzzy state which is not easy to view, for example, a manner of using mosaic processing. According to the embodiment, different desensitization rules can be intelligently allocated to different sensitive variables according to the important level information of each sensitive variable, so that the intelligence and the reasonability of desensitization rule configuration are realized, and then corresponding sensitive rules are selected subsequently to perform data desensitization processing on target parameters corresponding to each sensitive variable respectively to obtain processed target document files, so that the normalization and the accuracy of sensitive information contained in the generated processed target document files are effectively guaranteed.
Further, in an embodiment of the present application, after the step S703, the method includes:
s7030: if the variables are not matched with all the variables contained in the target document template, screening out the designated variables which are not matched with the document variables from the target document template;
s7031: acquiring a preset information template;
s7032: generating data missing reminding information based on the designated variable and the information template;
s7033: and displaying the data missing reminding information.
As described in the foregoing steps S7030 to S7033, when the document variables included in the parameter data are not all matched with all variables included in the target document template, after the step of performing parameter verification on the parameter data based on the target document template and determining whether the document variables included in the parameter data are all matched with all variables included in the target document template is completed, the method may further include generating corresponding data missing reminding information to remind a related user. Specifically, if all the variables contained in the target document template are not matched, the designated variables which are not matched with the document variables are screened from the target document template. And then acquiring a preset information template. The information template is a template file which is created in advance based on actual use requirements and stored in the device, and comprises a missing variable field. And then generating data missing reminding information based on the specified variable and the information template. The data missing reminding information at least comprises the specified variable, and the corresponding data missing reminding information can be generated by filling the specified variable to a filling position corresponding to a missing variable field in the information template. And finally, displaying the data missing reminding information. The display mode of the data missing reminding information is not limited, and can be set according to actual requirements. In this embodiment, when the condition that whether the document variables included in the parameter data are all matched with all the variables included in the target document template occurs, it is determined that the condition that the parameters are missing occurs in the document generation request input by the designated user, at this time, the designated variable that is not matched with the document variables is intelligently acquired from the target document template, and then data missing reminding information is generated and displayed based on the designated variable and the preset information template, so that the designated user can clearly know the missing data of the generated document file based on the data missing reminding information, and can timely and accurately resubmit the missing data according to the data missing reminding information, which is beneficial to ensuring the smoothness and accuracy of the subsequent generation of the target document file, and improves the use experience of the designated user.
Further, in an embodiment of the present application, after the step S3, the method includes:
s300: judging whether a modification request of an administrator user for the service variable domain list is received;
s301: if the modification request is received, receiving modification data input by the administrator user;
s302: modifying the business variable domain list based on the modification data to obtain a modified business variable domain list;
s303: and replacing the service variable domain list by using the modified service variable domain list so as to finish the updating of the service variable domain list.
As described in the above steps S300 to S303, after the step of displaying the preset business variable domain list is completed, a process of updating the business variable domain list may be further included. Specifically, it is first determined whether a modification request of the administrator user for the service variable domain list is received. And if the modification request is received, receiving modification data input by the administrator user. And then modifying the business variable domain list based on the modification data to obtain a modified business variable domain list. And finally, replacing the service variable domain list by using the modified service variable domain list so as to finish the updating of the service variable domain list. The replacement processing is processing of only retaining the modified service variable domain list and deleting the service variable domain list. In addition, if the administrator user cannot find the required service variable in the original service variable domain list, some new service variables can be added to the original service variable domain list, so that the newly added service variable can be selected after the data addition is completed. In addition, all the business variables required by the document template generation are selected by the user from the business variable domain list, and the user cannot manually edit the business variable domain list, so that the error scene that the user easily makes mistakes when configuring the business variables required by the document template generation can be effectively avoided, the operation risk of the user is reduced, and the normative and intelligent property of document template configuration is improved. In this embodiment, when the administrator user has a modification requirement for the business variable domain list, the list is modified intelligently based on modification data input by the administrator user, and the business variable domain list is replaced by using the modified list, so as to update and replace the business variable domain list, and thus, the configuration processing of the document template can be performed subsequently based on the modified list, so as to effectively improve the accuracy and the expansibility of the generated document template, and improve the user experience.
The configuration method of the document template in the embodiment of the present application may also be applied to the field of block chains, for example, the document template and other data are stored on the block chain. By using the block chain to store and manage the document template, the security and the non-tampering property of the document template can be effectively ensured.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. 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.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
Referring to fig. 2, an embodiment of the present application further provides a device for configuring a document template, including:
the first judging module 1 is used for judging whether a document template configuration request input by a user is received; wherein, the document template configuration request carries user information;
the verification module 2 is used for calling a preset user authority data table and a service operation authority score table to carry out authority verification on the user based on the user information if the document template configuration request is received, and judging whether the authority verification passes;
the first display module 3 is used for displaying a preset business variable domain list if the authority verification passes; the business variable domain list comprises a plurality of business variables, and the business meaning of each business variable is different;
a first obtaining module 4, configured to obtain a target service variable selected by the user in the service variable domain list;
a first receiving module 5, configured to receive the configuration information input by the user;
the first generation module 6 is used for generating a corresponding document template based on the target business variable, the configuration information and a preset initial file;
and the storage module 7 is used for generating a document number corresponding to the document template and storing the document template in a preset document template database based on the document number.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the configuration method of the document template in the foregoing embodiment one by one, and are not described herein again.
Further, in an embodiment of the present application, the verification module 2 includes:
the first acquisition unit is used for acquiring a preset user authority data table and a service operation authority score table;
a first judging unit, configured to judge whether specified user information that is the same as the user information is stored in the user permission data table;
the first query unit is used for querying the authority score corresponding to the user information and querying the authority limit information corresponding to the user information based on the user authority data table if the specified user information is stored;
the second query unit is used for querying a business authority score interval corresponding to the business operation of the configuration document template based on the business operation authority score table;
the second judging unit is used for judging whether the permission score is in the service permission score interval or not;
the second acquisition unit is used for acquiring the current time information if the service authority score interval is within the service authority score interval;
a third judging unit, configured to judge whether the time information is within a time interval range corresponding to the authority deadline information;
and the judging unit is used for judging that the authority verification passes if the authority is in the time interval range corresponding to the authority deadline information, and otherwise, judging that the authority verification fails.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the configuration method of the document template in the foregoing embodiment one by one, and are not described herein again.
Further, in an embodiment of the present application, the device for configuring a document template includes:
the second judgment module is used for judging whether a document generation request input by a specified user is received; the document generation request carries target document codes and parameter data, and the parameter data comprises document variables and parameters corresponding to the document variables;
the analysis module is used for analyzing the target document code and the parameter data from the document generation request if the document generation request is received;
the query module is used for querying a target document template corresponding to the target document code from the document template database based on the target document code;
the third judging module is used for carrying out parameter verification on the parameter data based on the target document template and judging whether document variables contained in the parameter data are all matched with all variables contained in the target document template;
and the second generation module is used for filling the target document template based on the parameters in the parameter data if the target document template is matched with all the variables contained in the target document template, and generating a target document file corresponding to the document generation request.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the configuration method of the document template in the foregoing embodiment one by one, and are not described herein again.
Further, in an embodiment of the present application, the device for configuring a document template includes:
the first screening module is used for screening out sensitive variables from all variables contained in the target document file based on a preset sensitive variable list and acquiring important level information corresponding to each sensitive variable;
a determining module, configured to determine desensitization rules corresponding to the sensitive variables, respectively, based on the importance level information;
the second acquisition module is used for acquiring the first number of the sensitive variables and acquiring the second number of the preset processing threads;
a fourth judging module, configured to judge whether the second number is greater than the first number;
the second screening module is used for randomly screening a plurality of target processing threads with the same quantity as the first quantity from the processing threads if the number of the target processing threads is the same as the first quantity;
a first sending module, configured to establish a one-to-one correspondence relationship between the target processing threads and the desensitization rules based on the desensitization rules respectively corresponding to the sensitive variables, and send the desensitization rules to the corresponding target processing threads respectively;
a second sending module, configured to generate a target correspondence between the sensitive variable and the target processing thread based on a correspondence between the desensitization rule and the sensitive variable and a correspondence between the target processing thread and the desensitization rule, and send each sensitive variable to a corresponding target processing thread based on the target correspondence;
a third obtaining module, configured to invoke each target processing thread to obtain target parameters corresponding to the internally-included sensitive variables from all the parameters, and perform desensitization processing on the obtained target parameters based on an internally-included desensitization rule to obtain desensitization information corresponding to the internally-included sensitive variables; wherein the internal part is the internal part of each target processing thread;
the modification module is used for modifying the target document file based on the desensitization information to obtain a processed target document file;
and the second display module is used for storing and displaying the processed target document file.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the configuration method of the document template in the foregoing embodiment one by one, and are not described herein again.
Further, in an embodiment of the present application, the determining module includes:
the second acquisition unit is used for acquiring important level information of the specified sensitive variable; the specified sensitive variable is any one of all the sensitive variables, and the importance level information of the specified sensitive variable is marked as specified importance level information;
a first determining unit, configured to, if the specified importance level information is preset first level information, use a first desensitization rule corresponding to the first level information as a desensitization rule of the specified sensitive variable; the first desensitization rule is used for performing data desensitization by using a preset encryption mode;
a second determining unit, configured to, if the specified importance level information is preset second level information, use a second desensitization rule corresponding to the second level information as a desensitization rule of the specified sensitive variable; wherein the second desensitization rule is to use an alternative way to perform data desensitization;
a third determining unit, configured to, if the specified importance level information is preset third level information, take a third desensitization rule corresponding to the third level information as a desensitization rule of the specified sensitive variable; wherein the third desensitization rule is to perform data desensitization using a fuzzy approach.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the configuration method of the document template in the foregoing embodiment one by one, and are not described herein again.
Further, in an embodiment of the present application, the device for configuring a document template includes:
the third screening module is used for screening the designated variables which are not matched with the document variables from the target document template if the designated variables are not matched with all the variables contained in the target document template;
the fourth acquisition module is used for acquiring a preset information template;
the third generation module is used for generating data missing reminding information based on the specified variable and the information template;
and the third display module is used for displaying the data missing reminding information.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the configuration method of the document template in the foregoing embodiment one by one, and are not described herein again.
Further, in an embodiment of the present application, the device for configuring a document template includes:
a fifth judging module, configured to judge whether a modification request of the administrator user for the service variable domain list is received;
the second receiving module is used for receiving the modification data input by the administrator user if the modification request is received;
the processing module is used for modifying the business variable domain list based on the modification data to obtain a modified business variable domain list;
and the replacing module is used for replacing the service variable domain list by using the modified service variable domain list so as to finish the updating of the service variable domain list.
In this embodiment, the operations executed by the modules or units respectively correspond to the steps of the configuration method of the document template in the foregoing embodiment one by one, and are not described herein again.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device comprises a processor, a memory, a network interface, a display screen, an input device and a database which are connected through a system bus. Wherein the processor of the computer device is designed to provide computing and control capabilities. The memory of the computer device comprises a storage medium and an internal memory. The storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and computer programs in the storage medium to run. The database of the computer device is used for storing user information, a user authority data table, a business variable domain list, target business variables, configuration information, initial files, document templates and document numbers. The network interface of the computer device is used for communicating with an external terminal through a network connection. The display screen of the computer equipment is an indispensable image-text output equipment in the computer, and is used for converting digital signals into optical signals so that characters and figures are displayed on the screen of the display screen. The input device of the computer equipment is the main device for information exchange between the computer and the user or other equipment, and is used for transmitting data, instructions, some mark information and the like to the computer. The computer program is executed by a processor to implement a method of configuring a document template.
The processor executes the steps of the configuration method of the document template:
judging whether a document template configuration request input by a user is received; wherein, the document template configuration request carries user information;
if the document template configuration request is received, based on the user information, calling a preset user authority data table and a service operation authority score table to carry out authority verification on the user, and judging whether the authority verification passes;
if the authority passes the verification, displaying a preset business variable domain list; the business variable domain list comprises a plurality of business variables, and the business meaning of each business variable is different;
acquiring a target service variable selected by the user in the service variable domain list;
receiving configuration information input by the user;
generating a corresponding document template based on the target business variable, the configuration information and a preset initial file;
and generating a document number corresponding to the document template, and storing the document template in a preset document template database based on the document number.
Those skilled in the art will appreciate that the structure shown in fig. 3 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation to the apparatus and the computer device to which the present application is applied.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for configuring a document template, and specifically includes:
judging whether a document template configuration request input by a user is received; wherein, the document template configuration request carries user information;
if the document template configuration request is received, based on the user information, calling a preset user authority data table and a service operation authority score table to carry out authority verification on the user, and judging whether the authority verification passes;
if the authority passes the verification, displaying a preset business variable domain list; the business variable domain list comprises a plurality of business variables, and the business meaning of each business variable is different;
acquiring a target service variable selected by the user in the service variable domain list;
receiving configuration information input by the user;
generating a corresponding document template based on the target business variable, the configuration information and a preset initial file;
and generating a document number corresponding to the document template, and storing the document template in a preset document template database based on the document number.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for configuring a document template, comprising:
judging whether a document template configuration request input by a user is received; wherein, the document template configuration request carries user information;
if the document template configuration request is received, based on the user information, calling a preset user authority data table and a service operation authority score table to carry out authority verification on the user, and judging whether the authority verification passes;
if the authority passes the verification, displaying a preset business variable domain list; the business variable domain list comprises a plurality of business variables, and the business meaning of each business variable is different;
acquiring a target service variable selected by the user in the service variable domain list;
receiving configuration information input by the user;
generating a corresponding document template based on the target business variable, the configuration information and a preset initial file;
and generating a document number corresponding to the document template, and storing the document template in a preset document template database based on the document number.
2. The method for configuring the document template according to claim 1, wherein the step of invoking a preset user permission data table and a service operation permission score table to perform permission verification on the user based on the user information and judging whether the permission verification passes comprises the steps of:
acquiring a preset user authority data table and a service operation authority score table;
judging whether the user authority data table stores the appointed user information which is the same as the user information;
if the appointed user information is stored, inquiring an authority score corresponding to the user information and authority limit information corresponding to the user information based on the user authority data table;
inquiring a business operation authority score interval corresponding to the business operation of the configuration document template based on the business operation authority score table;
judging whether the permission score is in the service permission score interval or not;
if the service authority score is within the service authority score interval, acquiring current time information;
judging whether the time information is in a time interval range corresponding to the authority deadline information;
and if the authority limit information is in the time interval range corresponding to the authority limit information, judging that the authority verification is passed, otherwise, judging that the authority verification is not passed.
3. The method of claim 1, wherein after generating the document number corresponding to the document template and storing the document template in a preset document template database based on the document number, the method comprises:
judging whether a document generation request input by a specified user is received; the document generation request carries target document codes and parameter data, and the parameter data comprises document variables and parameters corresponding to the document variables;
if the document generation request is received, analyzing the target document code and the parameter data from the document generation request;
inquiring a target document template corresponding to the target document code from the document template database based on the target document code;
performing parameter verification on the parameter data based on the target document template, and judging whether document variables contained in the parameter data are all matched with all variables contained in the target document template;
and if the parameters are matched with all the variables contained in the target document template, filling the target document template based on the parameters in the parameter data to generate a target document file corresponding to the document generation request.
4. The method according to claim 3, wherein the step of performing a filling process on the target document template based on the parameters in the parameter data to generate a target document file corresponding to the document generation request includes:
screening out sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, and acquiring important level information corresponding to each sensitive variable;
determining desensitization rules respectively corresponding to the sensitive variables based on the importance level information;
acquiring a first quantity of the sensitive variables and acquiring a second quantity of preset processing threads;
judging whether the second number is larger than the first number;
if so, randomly screening a plurality of target processing threads with the same number as the first number from the processing threads;
establishing a one-to-one correspondence relationship between the target processing threads and the desensitization rules based on desensitization rules respectively corresponding to the sensitive variables, and respectively sending the desensitization rules to the corresponding target processing threads;
generating a target corresponding relation between the sensitive variables and the target processing thread based on the corresponding relation between the desensitization rule and the sensitive variables and the corresponding relation between the target processing thread and the desensitization rule, and respectively sending each sensitive variable to the corresponding target processing thread based on the target corresponding relation;
calling each target processing thread to respectively obtain target parameters corresponding to the internally contained sensitive variables from all the parameters, and carrying out desensitization processing on the obtained target parameters based on internally contained desensitization rules to obtain desensitization information corresponding to the internally contained sensitive variables; wherein the internal part is the internal part of each target processing thread;
modifying the target document file based on the desensitization information to obtain a processed target document file;
and storing and displaying the processed target document file.
5. The method according to claim 4, wherein the determining desensitization rules corresponding to the sensitive variables based on the importance level information comprises:
acquiring important level information of a specified sensitive variable; the specified sensitive variable is any one of all the sensitive variables, and the importance level information of the specified sensitive variable is marked as specified importance level information;
if the specified important level information is preset first level information, taking a first desensitization rule corresponding to the first level information as a desensitization rule of the specified sensitive variable; the first desensitization rule is used for performing data desensitization by using a preset encryption mode;
if the specified important level information is preset second level information, taking a second desensitization rule corresponding to the second level information as a desensitization rule of the specified sensitive variable; wherein the second desensitization rule is to use an alternative way to perform data desensitization;
if the specified important level information is preset third level information, taking a third desensitization rule corresponding to the third level information as a desensitization rule of the specified sensitive variable; wherein the third desensitization rule is to perform data desensitization using a fuzzy approach.
6. The method according to claim 3, wherein after performing parameter verification on the parameter data based on the target document template and determining whether document variables included in the parameter data all match with all variables included in the target document template, the method includes:
if the variables are not matched with all the variables contained in the target document template, screening out the designated variables which are not matched with the document variables from the target document template;
acquiring a preset information template;
generating data missing reminding information based on the designated variable and the information template;
and displaying the data missing reminding information.
7. The method for configuring document template according to claim 1, wherein said displaying the preset business variable domain list comprises:
judging whether a modification request of an administrator user for the service variable domain list is received;
if the modification request is received, receiving modification data input by the administrator user;
modifying the business variable domain list based on the modification data to obtain a modified business variable domain list;
and replacing the service variable domain list by using the modified service variable domain list so as to finish the updating of the service variable domain list.
8. An apparatus for configuring a document template, comprising:
the first judgment module is used for judging whether a document template configuration request input by a user is received or not; wherein, the document template configuration request carries user information;
the verification module is used for calling a preset user authority data table and a service operation authority score table to carry out authority verification on the user based on the user information if the document template configuration request is received, and judging whether the authority verification passes;
the first display module is used for displaying a preset business variable domain list if the authority verification passes; the business variable domain list comprises a plurality of business variables, and the business meaning of each business variable is different;
a first obtaining module, configured to obtain a target service variable selected by the user in the service variable domain list;
the first receiving module is used for receiving the configuration information input by the user;
the first generation module is used for generating a corresponding document template based on the target business variable, the configuration information and a preset initial file;
and the storage module is used for generating a document number corresponding to the document template and storing the document template in a preset document template database based on the document number.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110908862.4A 2021-08-09 2021-08-09 Configuration method and device of document template, computer equipment and storage medium Active CN113642039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110908862.4A CN113642039B (en) 2021-08-09 2021-08-09 Configuration method and device of document template, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110908862.4A CN113642039B (en) 2021-08-09 2021-08-09 Configuration method and device of document template, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113642039A true CN113642039A (en) 2021-11-12
CN113642039B CN113642039B (en) 2024-05-28

Family

ID=78420165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110908862.4A Active CN113642039B (en) 2021-08-09 2021-08-09 Configuration method and device of document template, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113642039B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114004211A (en) * 2021-12-30 2022-02-01 太平金融科技服务(上海)有限公司深圳分公司 Document template generation method, processing method, device, computer equipment and medium
CN114296651A (en) * 2021-12-28 2022-04-08 上海右云信息技术有限公司 Method and equipment for storing user-defined data information
CN114625441A (en) * 2022-03-11 2022-06-14 平安普惠企业管理有限公司 Rule configuration method and device, computer equipment and storage medium
CN116561795B (en) * 2023-04-26 2024-04-16 合芯科技(苏州)有限公司 Data parallel desensitization processing method

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080306894A1 (en) * 2007-06-11 2008-12-11 Vijay Rajkumar Computer-implemented methods and systems for identifying and reporting deviations from standards and policies for contracts, agreements and other business documents
JP2009026163A (en) * 2007-07-23 2009-02-05 Fujitsu Ltd Database verification method and device
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN108090034A (en) * 2017-12-29 2018-05-29 政采云有限公司 Document code Unified coding generation method and system based on cluster
CN109325843A (en) * 2017-08-01 2019-02-12 平安普惠企业管理有限公司 Business rule control method, device, equipment and storage medium
CN109710903A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Management method, device, equipment and the storage medium of document
CN111680483A (en) * 2020-05-22 2020-09-18 平安普惠企业管理有限公司 Document template updating method and device, electronic equipment and medium
WO2020186786A1 (en) * 2019-03-20 2020-09-24 平安科技(深圳)有限公司 File processing method and apparatus, computer device and storage medium
WO2021003968A1 (en) * 2019-07-09 2021-01-14 深圳壹账通智能科技有限公司 Data checking method and apparatus, and computer device and storage medium
CN112328482A (en) * 2020-11-05 2021-02-05 中国平安人寿保险股份有限公司 Test method and device based on script template, computer equipment and storage medium
CN112529700A (en) * 2020-12-29 2021-03-19 平安消费金融有限公司 Business handling and auditing method, system, equipment and readable storage medium
WO2021051612A1 (en) * 2019-09-19 2021-03-25 平安科技(深圳)有限公司 Automatic data authorization desensitization method, system, device, and storage medium
CN112579867A (en) * 2020-12-10 2021-03-30 平安普惠企业管理有限公司 Document generation method, device, equipment and storage medium
CN112650659A (en) * 2020-12-22 2021-04-13 平安普惠企业管理有限公司 Buried point setting method and device, computer equipment and storage medium
CN112668041A (en) * 2020-12-17 2021-04-16 平安消费金融有限公司 Document file generation method and device, computer equipment and storage medium
CN112784566A (en) * 2021-01-22 2021-05-11 平安普惠企业管理有限公司 Document generation method, device, equipment and storage medium
CN113221517A (en) * 2021-07-08 2021-08-06 金蝶软件(中国)有限公司 Mail editing method and device, computer equipment and storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080306894A1 (en) * 2007-06-11 2008-12-11 Vijay Rajkumar Computer-implemented methods and systems for identifying and reporting deviations from standards and policies for contracts, agreements and other business documents
JP2009026163A (en) * 2007-07-23 2009-02-05 Fujitsu Ltd Database verification method and device
CN106940628A (en) * 2016-01-04 2017-07-11 平安科技(深圳)有限公司 Document Method of printing and device
CN109325843A (en) * 2017-08-01 2019-02-12 平安普惠企业管理有限公司 Business rule control method, device, equipment and storage medium
CN108090034A (en) * 2017-12-29 2018-05-29 政采云有限公司 Document code Unified coding generation method and system based on cluster
CN109710903A (en) * 2018-08-20 2019-05-03 平安普惠企业管理有限公司 Management method, device, equipment and the storage medium of document
WO2020186786A1 (en) * 2019-03-20 2020-09-24 平安科技(深圳)有限公司 File processing method and apparatus, computer device and storage medium
WO2021003968A1 (en) * 2019-07-09 2021-01-14 深圳壹账通智能科技有限公司 Data checking method and apparatus, and computer device and storage medium
WO2021051612A1 (en) * 2019-09-19 2021-03-25 平安科技(深圳)有限公司 Automatic data authorization desensitization method, system, device, and storage medium
CN111680483A (en) * 2020-05-22 2020-09-18 平安普惠企业管理有限公司 Document template updating method and device, electronic equipment and medium
CN112328482A (en) * 2020-11-05 2021-02-05 中国平安人寿保险股份有限公司 Test method and device based on script template, computer equipment and storage medium
CN112579867A (en) * 2020-12-10 2021-03-30 平安普惠企业管理有限公司 Document generation method, device, equipment and storage medium
CN112668041A (en) * 2020-12-17 2021-04-16 平安消费金融有限公司 Document file generation method and device, computer equipment and storage medium
CN112650659A (en) * 2020-12-22 2021-04-13 平安普惠企业管理有限公司 Buried point setting method and device, computer equipment and storage medium
CN112529700A (en) * 2020-12-29 2021-03-19 平安消费金融有限公司 Business handling and auditing method, system, equipment and readable storage medium
CN112784566A (en) * 2021-01-22 2021-05-11 平安普惠企业管理有限公司 Document generation method, device, equipment and storage medium
CN113221517A (en) * 2021-07-08 2021-08-06 金蝶软件(中国)有限公司 Mail editing method and device, computer equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296651A (en) * 2021-12-28 2022-04-08 上海右云信息技术有限公司 Method and equipment for storing user-defined data information
CN114296651B (en) * 2021-12-28 2023-08-01 上海右云信息技术有限公司 Method and device for storing custom data information
CN114004211A (en) * 2021-12-30 2022-02-01 太平金融科技服务(上海)有限公司深圳分公司 Document template generation method, processing method, device, computer equipment and medium
CN114004211B (en) * 2021-12-30 2022-09-02 太平金融科技服务(上海)有限公司深圳分公司 Document template generation method, processing method, device, computer equipment and medium
CN114625441A (en) * 2022-03-11 2022-06-14 平安普惠企业管理有限公司 Rule configuration method and device, computer equipment and storage medium
CN116561795B (en) * 2023-04-26 2024-04-16 合芯科技(苏州)有限公司 Data parallel desensitization processing method

Also Published As

Publication number Publication date
CN113642039B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN113642039B (en) Configuration method and device of document template, computer equipment and storage medium
CN111737963B (en) Configuration file based form filling method and device and computer equipment
CN112540811B (en) Cache data detection method and device, computer equipment and storage medium
CN112668041A (en) Document file generation method and device, computer equipment and storage medium
CN113326081A (en) Static resource processing method and device, computer equipment and storage medium
CN113742776A (en) Data verification method and device based on biological recognition technology and computer equipment
CN112328482A (en) Test method and device based on script template, computer equipment and storage medium
CN111597424A (en) Crawler identification method and device, computer equipment and storage medium
CN112163131A (en) Configuration method and device of business data query platform, computer equipment and medium
CN112036147A (en) Method and device for converting picture into webpage, computer equipment and storage medium
CN114090408A (en) Data monitoring and analyzing method and device, computer equipment and storage medium
CN114840387A (en) Micro-service monitoring method and device, computer equipment and storage medium
CN113282514A (en) Problem data processing method and device, computer equipment and storage medium
CN112650659B (en) Buried point setting method and device, computer equipment and storage medium
CN111880921A (en) Job processing method and device based on rule engine and computer equipment
CN113435990B (en) Certificate generation method and device based on rule engine and computer equipment
CN114817055A (en) Regression testing method and device based on interface, computer equipment and storage medium
CN113656588A (en) Data code matching method, device, equipment and storage medium based on knowledge graph
CN113986581A (en) Data aggregation processing method and device, computer equipment and storage medium
CN112965981A (en) Data checking method and device, computer equipment and storage medium
CN113535260B (en) Simulator-based data processing method, device, equipment and storage medium
CN114547053A (en) System-based data processing method and device, computer equipment and storage medium
CN113177396B (en) Report generation method and device, computer equipment and storage medium
CN113191146B (en) Appeal data distribution method and device, computer equipment and storage medium
CN113420307B (en) Ciphertext data evaluation 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