CN113642039B - 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
CN113642039B
CN113642039B CN202110908862.4A CN202110908862A CN113642039B CN 113642039 B CN113642039 B CN 113642039B CN 202110908862 A CN202110908862 A CN 202110908862A CN 113642039 B CN113642039 B CN 113642039B
Authority
CN
China
Prior art keywords
document
document template
information
target
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110908862.4A
Other languages
Chinese (zh)
Other versions
CN113642039A (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

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

Abstract

The application relates to an artificial intelligence technology, and provides a method, a device, a computer device and a storage medium for configuring a document template, wherein the method comprises the following steps: judging whether a document template configuration request input by a user is received or not; if yes, invoking a 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 is passed; if yes, displaying a service variable domain list; acquiring a target business variable selected by a user in a business 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 method and the device can reduce the generation cost of the document template and improve the generation efficiency and accuracy of the document template. The application can also be applied to the field of blockchains, and the data such as the document template can be stored on the blockchain.

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 method and a device for configuring a document template, computer equipment and a storage medium.
Background
The configuration management of the current document template realizes variable configuration, and characters which possibly have changes in the document can be set as variables, such as the name and the ID card number of a customer. However, in the process of manufacturing the document template, the variables are usually directly generated by a developer through text editing, so that errors are easy to occur, and the generated document template has lower accuracy. In addition, for variables having the same business meaning, different developers will typically create a variety of different variable representations for such variables, e.g., variables for which business meaning is customer name may include customer name, etc. Because the maintenance of the variables in the document templates is not defined in a standard way, a large number of joint debugging and testing are needed when the document templates are newly added each time, so that the problem of time and labor consumption and low generation efficiency exists in the generation of the document templates.
Disclosure of Invention
The application mainly aims to provide a method, a device, computer equipment and a storage medium for configuring a document template, and aims to solve the technical problems of time consumption, labor consumption, low document template generation efficiency and low accuracy in the existing document template configuration mode.
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 or not; 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 is passed or not;
if the authority verification is passed, 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;
acquiring a target service variable selected by the user in the 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 preset document template database based on the document number.
Optionally, based on the user information, invoking a preset user permission data table and a service operation permission score table to perform permission verification on the user, and judging whether the permission verification is passed, including:
acquiring a preset user authority data table and a preset 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 or not;
if the appointed user information is stored, inquiring the authority score corresponding to the user information based on the user authority data table, and inquiring the authority limit information corresponding to the user information;
inquiring a service authority score interval corresponding to the service operation of the configuration document template based on the service operation authority score table;
Judging whether the authority score is in the service authority score interval or not;
If the current time information is in the service authority score interval, acquiring current time information;
judging whether the time information is in a time interval range corresponding to the authority limit information;
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 or not; the document generation request carries a target document code and parameter data, wherein the parameter data comprises a document variable and a parameter corresponding to the document variable;
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;
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 matched with all variables contained in the target document template;
And if the target document template is matched with all the variables contained in the target document template, filling the target document template based on the parameters in the parameter data, and generating a target document corresponding to the document generation request.
Optionally, the filling processing is performed on the target document template based on the parameters in the parameter data, and after generating the target document file corresponding to the document generation request, the method includes:
screening sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, and acquiring importance level information corresponding to each sensitive variable respectively;
based on the importance level information, determining desensitization rules respectively corresponding to the sensitive variables;
Acquiring a first number of the sensitive variables and acquiring a second number of preset processing threads;
judging whether the second number is larger than the first number;
If yes, randomly screening a plurality of target processing threads with the same number as the first number from the processing threads;
Based on the desensitization rules respectively corresponding to the sensitive variables, establishing a one-to-one correspondence between the target processing threads and the desensitization rules, and respectively transmitting the desensitization rules into the corresponding target processing threads;
Based on the corresponding relation between the desensitization rule and the sensitive variable and the corresponding relation between the target processing thread and the desensitization rule, generating a target corresponding relation between the sensitive variable and the target processing thread, and respectively sending each sensitive variable into the corresponding target processing thread based on the target corresponding relation;
Calling each target processing thread to respectively acquire target parameters corresponding to the internally-contained sensitive variables from all the parameters, and performing desensitization processing on the acquired target parameters based on the internally-contained desensitization rules to acquire desensitization information corresponding to the internally-contained sensitive variables; wherein the interior refers to the interior 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, a desensitization rule corresponding to each sensitive variable respectively includes:
acquiring importance level information of a designated sensitive variable; the appointed sensitive variable is any sensitive variable in all the sensitive variables, and the importance level information of the appointed sensitive variable is marked as appointed importance level information;
If the appointed importance level information is preset first level information, taking a first desensitization rule corresponding to the first level information as a desensitization rule of the appointed sensitive variable; the first desensitization rule is to desensitize data by using a preset encryption mode;
If the appointed importance level information is preset second level information, taking a second desensitization rule corresponding to the second level information as a desensitization rule of the appointed sensitive variable; wherein the second desensitization rule is to use an alternative mode to perform data desensitization;
If the appointed importance level information is preset third level information, taking a third desensitization rule corresponding to the third level information as a desensitization rule of the appointed sensitive variable; wherein the third desensitization rule is to use a fuzzy mode to desensitize the data.
Optionally, after performing parameter verification on the parameter data based on the target document template and determining whether the document variables contained in the parameter data are all matched with all the variables contained in the target document template, the method includes:
If not, screening out 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 specified variable and the information template;
And displaying the data missing reminding information.
Optionally, after the displaying 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 or not;
If the modification request is received, receiving modification data input by the administrator user;
Modifying the service variable domain list based on the modification data to obtain a modified service variable domain list;
And replacing the business variable domain list by using the modified business variable domain list to finish updating the business variable domain list.
The application also provides a configuration device of the document template, which comprises:
The first judging 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 is passed or not;
the first display module is used for displaying a preset service variable domain list if the authority verification is passed; the service variable domain list comprises a plurality of service variables, and the service meaning of each service variable is different;
the first acquisition module is used for acquiring a target business variable selected by the user in the business 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;
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 application also provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the method when executing the computer program.
The application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method.
The configuration method, the device, the computer equipment and the storage medium of the document template provided by the application have the following beneficial effects:
When a document template configuration request input by a user is received, the preset service variable domain list is displayed after the user passes the authority verification is judged, the corresponding document template can be generated based on the target service variable, the configuration information and the preset initial file by acquiring the target service variable selected by the user in the service 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, the text editing is replaced by the variable selection in the determining mode of the variables in the document template, so that the operation risk of a developer can be effectively reduced, and the generation accuracy of the document template is high. In addition, through normalizing the definition of the variable to generate a business variable domain list, multiplexing of the definition of the variable can be realized based on the business variable domain list, so that after the document template is generated by using the business variable domain list, a large number of joint debugging and testing are not needed, 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 flow chart of a method for configuring document templates according to an embodiment of the 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 achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It will be understood by those skilled in the art that 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 unless defined otherwise. 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 the related data based on the artificial intelligence technology. Wherein artificial intelligence (ARTIFICIAL INTELLIGENCE, AI) is the theory, method, technique, and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend, and expand human intelligence, sense the environment, acquire knowledge, and use knowledge to obtain optimal results.
Artificial intelligence infrastructure technologies generally include 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 other directions.
Referring to fig. 1, a document template configuration method according to an embodiment of the present application includes:
S1: judging whether a document template configuration request input by a user is received or not; 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 is passed or not;
S3: if the authority verification is passed, 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;
s4: acquiring a target service variable selected by the user in the service variable domain list;
s5: receiving configuration information input by a 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 steps S1 to S7, the execution body of the embodiment of the method is a configuration device of the document template. In practical application, the configuration device of the document template may be implemented by a virtual device, for example, a software code, or may be implemented by an entity device in which related execution codes are written or integrated, and may perform man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device. The configuration device of the document template in the embodiment can reduce the generation cost of the document template, improve the generation efficiency of the document template and improve the accuracy of generating the document template. Specifically, it is first determined whether a document template configuration request input by a user is received. Wherein, 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 may include information such as a user name, a user id, etc., based on which it can be verified whether the user has configuration rights to the document template. 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 is passed or not. The user authority data table can be used for inquiring authority score of the user and authority limit information of the user, the business operation authority score interval corresponding to business operation of the configuration document template is inquired through the business operation authority score table, the authority score and the business authority score interval are compared in size, verification processing for judging whether the time information is in a 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 rapidly judged according to the obtained processing result.
And if the authority verification is passed, 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, the service variable domain list stores a plurality of service variable domains of different types, and the service variable domains can be understood as a data set containing a plurality of service variables, and each service variable domain contains a corresponding service variable. For example, business variable fields may include customer information fields, corporate legal fields, other information fields. The customer information field may include customer name, identification number, gender, address. The corporate legal domain may include corporate names. Other information fields are information fields corresponding to specific business scenarios, and for credit business scenarios, other information fields may include borrowing amounts, borrowing rates, borrowing terms, repayment periods, signing contract times, and repayment plans. And then acquiring a target business variable selected by the user in the business variable domain list. Wherein the number of the target business variables can be a plurality of.
And then receiving the configuration information input by the user. Wherein, the configuration information at least can comprise the position information of the target business variable in the initial file. In addition, the configuration information can also comprise information such as the name of the document template, the effective 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 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 used for inquiring the corresponding document template from the document template database based on the document number.
When receiving a document template configuration request input by a user, the embodiment displays a preset service variable domain list after judging that the user passes the authority verification, and further generates a corresponding document template based on the target service variable, the configuration information and a preset initial file by acquiring a target service variable selected by the user in the service variable domain list and configuration information input by the user, and stores the document template in a preset document template database based on the document number after generating the document number corresponding to the document template. According to the method, the device and the system, the text editing is replaced by variable selection in the determining mode of the variables in the document template, so that the operation risk of a developer can be effectively reduced, and the generation accuracy of the document template is high. In addition, through normalizing the definition of the variable to generate a business variable domain list, multiplexing of the definition of the variable can be realized based on the business variable domain list, so that after the document template is generated by using the business variable domain list, a large number of joint debugging and testing are not needed, 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 preset 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 or not;
s202: if the appointed user information is stored, inquiring the authority score corresponding to the user information based on the user authority data table, and inquiring the authority limit information corresponding to the user information;
s203: inquiring a service authority score interval corresponding to the service operation of the configuration document template based on the service operation authority score table;
s204: judging whether the authority score is in the service authority score interval or not;
S205: if the current time information is in 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 limit information;
S207: 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 calling 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 is passed may specifically include: firstly, a preset user authority data table and a preset service operation authority score table are obtained. The user authority data table is a first data table which is created in advance and recorded with employee information, and authority scores and authority limit information which are in one-to-one correspondence with the employee information. The service operation authority score table is a second data table which is created in advance and recorded with each service operation and the one-to-one corresponding required authority score interval. The authority limit information is information corresponding to time limitation of the authority score of the user. For example, it may be provided 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 appointed user information which is the same as the user information. And if the appointed user information is stored, inquiring the authority score corresponding to the user information based on the user authority data table, and inquiring the 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 authority score is in the service authority score interval. And if the current time information is in the service authority score interval, acquiring the current time information. And further judging whether the time information is in a time interval range corresponding to the authority limit information. The current time information is verified, so that the validity period of the authority score owned by the user is determined. 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. 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. According to the method and the device, 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, verification processing for judging whether the time information is in the time range corresponding to the authority limit information is carried out, whether the user has the authority of the configuration document template or not can be judged intelligently and rapidly according to the obtained processing result, and accordingly the condition that the configuration authority of the configuration document template is provided for an illegal user or an unauthorized user 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 or not; the document generation request carries a target document code and parameter data, wherein the parameter data comprises a document variable and a parameter corresponding to the document variable;
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: 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 matched with all variables contained in the target document template;
S704: and if the target document template is matched with all the variables contained in the target document template, filling the target document template based on the parameters in the parameter data, and generating a target document corresponding to the document generation request.
As described in the above steps S700 to S704, after the step of 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 is 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 specifying user input is received. Wherein the document generation request is a request for generating a document file. The document generation request carries a target document code and parameter data, wherein the parameter data comprises a document variable and a parameter corresponding to the document variable. And if the document generation request is received, analyzing the target document code and the parameter data from the document generation request. And then, based on the target document code, inquiring a target document template corresponding to the target document code from the document template database. And then, carrying out parameter verification on the parameter data based on the target document template, and judging whether the document variables contained in the parameter data are matched with all the variables contained in the target document template. The specific implementation process for judging whether the document variables contained in the parameter data are matched with all the variables contained 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 number is the same as the second number; if the target variables are the same, judging whether all the document variables contained in the parameter data have the same target variables as the variables or not for each variable contained in the target document template; if each variable contained in the target document template is the same as the variable, judging that the document variable contained in the parameter data is matched with all variables contained in the target document template, otherwise, judging that the document variable contained in the parameter data is not matched with all variables contained in the target document template. In addition, the matching process between each variable contained in the target document template and all the document variables may be performed based on a preset parallel comparison instruction, which may specifically be a single instruction stream multiple data stream (single instruction multiple data, SIMD) instruction. By utilizing the parallel computing capability of the parallel comparison instruction to simultaneously carry out data matching processing on each variable contained in the target document template and each document variable in all the document variables, the matching comparison rate between each variable and the document variable can be effectively improved, and the generation rate of the target document file can be improved. And if the target document template is matched with all the variables contained in the target document template, filling the target document template based on the parameters in the parameter data, and generating a target document 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 variable parameter filling areas corresponding to the target document template. In addition, if the target document template is matched with all the variables contained in the target document template, reminding information with normal parameters can be generated and displayed. According to the method and the device, after the document template is generated according to actual requirements, the corresponding target document file can be generated rapidly according to the document code and the parameter data carried in the document generation request input by the user, and the generation efficiency of the document file can be improved.
Further, in an embodiment of the present application, after the step S704, the method includes:
S7040: screening sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, and acquiring importance level information corresponding to each sensitive variable respectively;
s7041: based on the importance level information, determining desensitization rules respectively corresponding to the sensitive variables;
s7042: acquiring a first number of the sensitive variables and acquiring a second number of preset processing threads;
s7043: judging whether the second number is larger than the first number;
S7044: if yes, randomly screening a plurality of target processing threads with the same number as the first number from the processing threads;
S7045: based on the desensitization rules respectively corresponding to the sensitive variables, establishing a one-to-one correspondence between the target processing threads and the desensitization rules, and respectively transmitting the desensitization rules into the corresponding target processing threads;
S7046: based on the corresponding relation between the desensitization rule and the sensitive variable and the corresponding relation between the target processing thread and the desensitization rule, generating a target corresponding relation between the sensitive variable and the target processing thread, and respectively sending each sensitive variable into the corresponding target processing thread based on the target corresponding relation;
S7047: calling each target processing thread to respectively acquire target parameters corresponding to the internally-contained sensitive variables from all the parameters, and performing desensitization processing on the acquired target parameters based on the internally-contained desensitization rules to acquire desensitization information corresponding to the internally-contained sensitive variables; wherein the interior refers to the interior 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 generating the target document file corresponding to the document generation request by performing the filling processing of the target document template based on the parameters in the parameter data, a process of performing data desensitization processing on the obtained target document file is further included. Specifically, firstly, screening sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, and acquiring importance level information corresponding to each sensitive variable. The sensitive variable list is generated according to sensitive variables input by related users in advance and importance level information corresponding to each sensitive variable, the sensitive variables are variables corresponding to information with higher sensitivity, and data desensitization processing is further needed to be carried out on parameter content corresponding to the sensitive variables in the document file when the final document file is generated later. In addition, the sensitive variable may specifically be a variable corresponding to information with a higher sensitivity degree. The sensitive field can be set according to actual requirements, for example, the information with higher sensitivity degree is the identification card number of the user, and the corresponding sensitive variable can be the identification card number. The importance level information is information for indicating the importance degree of the sensitive variable, and the relevant user can input corresponding importance level information for each sensitive variable according to actual experience, wherein the importance level information can comprise high importance, medium importance and low importance. And then determining desensitization rules respectively corresponding to the sensitive variables based on the importance level information. For the sensitive variables in the sensitive variable list, corresponding desensitization rules are allocated to different sensitive variables according to the importance level information of each sensitive variable. Then, a first number of the sensitive variables is obtained, and a second number of preset processing threads is obtained. And determining whether the second number is greater than the first number; and randomly screening a plurality of target processing threads which are the same as the first number from the processing threads if the second number is larger than the first number. The processing thread is a thread which is pre-allocated by the device and used for carrying out data desensitization processing, the processing thread carries out the data desensitization processing when in a working state, and the processing thread enters a dormant state when not working, so that the thread is not required to be created and destroyed, and the device loss can be saved. The processing thread can perform corresponding data desensitization processing on the parameters with higher sensitivity degree based on the internal desensitization rule, so that the feasibility of the data desensitization process can be ensured. In addition, a first number of target processing threads in the thread pool in a dormant state may be concurrently awakened by triggering an awakening instruction and based on the awakening instruction. The data desensitization processing flow is executed by adopting a plurality of target processing threads with the same quantity as the sensitive variables, so that the CPU and memory performances of the device can be fully utilized, the advantages of the multi-core CPU are brought into play, the time delay of the data desensitization processing is reduced, and the processing efficiency of the data desensitization processing is improved. After the target processing threads are obtained, a one-to-one correspondence is established between the target processing threads and the desensitization rules based on the desensitization rules respectively corresponding to the sensitive variables, and the desensitization rules are respectively sent into the corresponding target processing threads. And generating a target corresponding relation between the sensitive variable and the target processing thread based on the corresponding relation between the desensitization rule and the sensitive variable and the corresponding relation between the target processing thread and sending each sensitive variable into the corresponding target processing thread based on the target corresponding relation. And further calling each target processing thread to respectively acquire target parameters corresponding to the internally-contained sensitive variables from all the parameters, and performing desensitization processing on the acquired target parameters based on the internally-contained desensitization rule to acquire desensitization information corresponding to the internally-contained sensitive variables. Wherein the internal refers to the internal of 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 embodiment also intelligently screens out sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, acquires desensitization rules respectively corresponding to the sensitive variables based on the importance level information, invokes a preset target processing thread to perform corresponding desensitization processing on target parameters corresponding to the sensitive variables based on the desensitization rules so as to obtain processed desensitization information, and finally performs data filling processing on the target document file by utilizing the desensitization information and parameters corresponding to other variables except the desensitization variables so as to generate the processed target document file, wherein 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 based on the sensitive variable list, so that only the target parameters corresponding to the sensitive variables are subjected to desensitization processing, and the parameters corresponding to all the variables contained in all the target document are not subjected to desensitization processing, thereby effectively reducing unnecessary consumption generated in data processing and improving the intelligence and processing efficiency of the data desensitization processing.
Further, in an embodiment of the present application, the step S7041 includes:
S70410: acquiring importance level information of a designated sensitive variable; the appointed sensitive variable is any sensitive variable in all the sensitive variables, and the importance level information of the appointed sensitive variable is marked as appointed importance level information;
s70411: if the appointed importance level information is preset first level information, taking a first desensitization rule corresponding to the first level information as a desensitization rule of the appointed sensitive variable; the first desensitization rule is to desensitize data by using a preset encryption mode;
S70412: if the appointed importance level information is preset second level information, taking a second desensitization rule corresponding to the second level information as a desensitization rule of the appointed sensitive variable; wherein the second desensitization rule is to use an alternative mode to perform data desensitization;
S70413: if the appointed importance level information is preset third level information, taking a third desensitization rule corresponding to the third level information as a desensitization rule of the appointed sensitive variable; wherein the third desensitization rule is to use a fuzzy mode to desensitize the data.
As described in the above steps S70410 to S70413, the step of determining the desensitization rule corresponding to each of the sensitive variables based on the importance level information may specifically include: and acquiring importance level information of the appointed sensitive variable. The appointed sensitive variable is any sensitive variable in all the sensitive variables, and the importance level information of the appointed sensitive variable is marked as appointed importance level information. In addition, importance level information specifying the sensitive variable may be queried from the list of sensitive variables. In addition, the sensitive variable with higher importance level in the importance level information is subjected to desensitization processing by adopting a desensitization mode with higher security. Specifically, if the designated 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 designated sensitive variable. The first desensitization rule is to desensitize data by using a preset encryption mode. In addition, the preset encryption mode is not particularly limited, and may include, for example, an asymmetric encryption algorithm, a hash encryption algorithm, and the like. And if the appointed importance level information is preset second level information, taking a second desensitization rule corresponding to the second level information as a desensitization rule of the appointed sensitive variable. Wherein the second desensitization rule is data desensitization using an alternative approach. In addition, the above-mentioned alternative modes may include preset character substitution, random character substitution, etc. And if the appointed importance level information is preset third level information, taking a third desensitization rule corresponding to the third level information as the desensitization rule of the appointed sensitive variable. Wherein the third desensitization rule is to use a fuzzy mode to desensitize the data. In addition, the blurring method may include a method of processing sensitive data into a blurring state which is not easy to view, for example, a method of using mosaic processing. According to the embodiment, for the acquired sensitive variables, different desensitization rules are intelligently distributed for different sensitive variables according to the importance level information of each sensitive variable, so that the intelligence and rationality of desensitization rule configuration are realized, then corresponding sensitive rules are selected to respectively perform data desensitization processing on target parameters corresponding to each sensitive variable to obtain a processed target document, and the normalization and accuracy of sensitive information contained in the generated processed target document are effectively ensured.
Further, in an embodiment of the present application, after the step S703, the method includes:
S7030: if not, screening out 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 specified variable and the information template;
S7033: and displaying the data missing reminding information.
As described in the above steps S7030 to S7033, when the situation that the document variables contained in the parameter data do not all match all the variables contained in the target document template occurs, after the step of performing parameter verification on the parameter data based on the target document template, determining whether the document variables contained in the parameter data all match all the variables contained in the target document template may further include generating corresponding data missing reminding information to remind the relevant user. Specifically, if not all the variables are matched with all the variables contained in the target document template, the specified variables which are not matched with the document variables are screened out from the target document template. And then acquiring a preset information template. The information template is a template file which is created in advance and stored in the device based on actual use requirements, and comprises a missing variable field. And generating data missing reminding information based on the specified variable and the information template. The data missing reminding information at least comprises the appointed variable, and the corresponding data missing reminding information can be generated by filling the appointed variable into 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 the data missing reminding information can be set according to actual requirements. According to the method and the device, when the situation that whether the document variables contained in the parameter data are matched with all the variables contained in the target document template is judged, the situation that the parameters are missing in the document generation request input by the appointed user is judged, the appointed variables which are not matched with the document variables are intelligently obtained from the target document template at the moment, further, data missing reminding information is generated and displayed based on the appointed variables and a preset information template, so that the appointed user can clearly know the missing data of the generated document file based on the data missing reminding information, and timely and accurately resubmit the missing data according to the data missing reminding information, smoothness and accuracy of the generation of the subsequent target document file are guaranteed, and use experience of the appointed user is improved.
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 or not;
S301: if the modification request is received, receiving modification data input by the administrator user;
S302: modifying the service variable domain list based on the modification data to obtain a modified service variable domain list;
S303: and replacing the business variable domain list by using the modified business variable domain list to finish updating the business variable domain list.
As described in the above steps S300 to S303, after the step of displaying the preset service variable domain list is performed, a process of updating the service 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 service variable domain list based on the modification data to obtain a modified service variable domain list. And finally, replacing the business variable domain list by using the modified business variable domain list to finish updating the business variable domain list. The replacing process refers to a process 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 business variables in the original business variable domain list, some new business variables can be added to the original business variable domain list, so that the newly added business variables can be selected after the data addition is completed. In addition, all the business variables required for generating the document template 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 which is easy to make mistakes when the user configures the business variables required for generating the document template can be effectively avoided, the operation risk of the user is reduced, and the standardization and the intelligence of the document template configuration are improved. In this embodiment, when the administrator user has a modification requirement for the service variable domain list, modification processing is performed on the list intelligently based on modification data input by the administrator user, and replacement processing is performed on the service variable domain list by using the modified list, so as to implement updating and replacement of the service variable domain list, so that configuration processing of the document template can be performed subsequently based on the modified list, thereby effectively improving accuracy and expansibility of the generated document template, and improving user experience.
The configuration method of the document template in the embodiment of the application can also be applied to the field of blockchains, such as storing the data of the document template and the like on the blockchain. By using the blockchain to store and manage the document templates, the security and the non-tamperability of the document templates can be effectively ensured.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The blockchain (Blockchain), essentially a de-centralized database, is a string of data blocks that are generated in association using cryptographic methods, each of which contains information from a batch of network transactions for verifying the validity (anti-counterfeit) of its information and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
The blockchain underlying platform may include processing modules for user management, basic services, smart contracts, operation monitoring, and the like. The user management module is responsible for identity information management of all blockchain participants, including maintenance of public and private key generation (account management), key management, maintenance of corresponding relation between the real identity of the user and the blockchain address (authority management) and the like, and under the condition of authorization, supervision and audit of transaction conditions of certain real identities, and provision of rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node devices, is used for verifying the validity of a service request, recording the service request on a storage after the effective request is identified, for a new service request, the basic service firstly analyzes interface adaptation and authenticates the interface adaptation, encrypts service information (identification management) through an identification algorithm, and transmits the encrypted service information to a shared account book (network communication) in a complete and consistent manner, and records and stores the service information; the intelligent contract module is responsible for registering and issuing contracts, triggering contracts and executing contracts, a developer can define contract logic through a certain programming language, issue the contract logic to a blockchain (contract registering), invoke keys or other event triggering execution according to the logic of contract clauses to complete the contract logic, and simultaneously provide a function of registering contract upgrading; the operation monitoring module is mainly responsible for deployment in the product release process, modification of configuration, contract setting, cloud adaptation and visual output of real-time states in product operation, for example: alarms, monitoring network conditions, monitoring node device health status, etc.
Referring to fig. 2, in an embodiment of the present application, there is further provided a document template configuration apparatus, including:
The first judging module 1 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 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 is passed or not;
The first display module 3 is used for displaying a preset service variable domain list if the authority verification is passed; the service variable domain list comprises a plurality of service variables, and the service meaning of each service 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 performed by the modules or units respectively correspond to the steps of the document template configuration method in the foregoing embodiment one by one, which is 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 preset business operation authority score table;
A first judging unit, configured to judge whether the user permission data table stores specified user information identical to the user information;
The first query unit is used for querying the authority score corresponding to the user information based on the user authority data table and querying the authority limit information corresponding to the user information if the appointed user information is stored;
the second query unit is used for querying a service authority score interval corresponding to the service operation of the configuration document template based on the service operation authority score table;
The second judging unit is used for judging whether the authority score is in the service authority score interval or not;
the second acquisition unit is used for acquiring current time information if the second acquisition unit is in the service authority score interval;
a third judging unit, configured to judge whether the time information is in a time interval range corresponding to the authority limit information;
And the judging unit is used for judging that the authority verification passes if the authority verification is in the range of the time interval corresponding to the authority limit information, and judging that the authority verification does not pass if the authority verification is not in the range of the time interval corresponding to the authority limit information.
In this embodiment, the operations performed by the modules or units respectively correspond to the steps of the document template configuration method in the foregoing embodiment one by one, which is not described herein again.
Further, in an embodiment of the present application, the configuration device of the document template includes:
the second judging module is used for judging whether a document generation request input by a specified user is received or not; the document generation request carries a target document code and parameter data, wherein the parameter data comprises a document variable and a parameter corresponding to the document variable;
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 the document variables contained in the parameter data are matched with all the variables contained in the target document template;
and the second generation module is used for carrying out filling processing on the target document template based on the parameters in the parameter data if the second generation module is matched with all the variables contained in the target document template, and generating a target document corresponding to the document generation request.
In this embodiment, the operations performed by the modules or units respectively correspond to the steps of the document template configuration method in the foregoing embodiment one by one, which is not described herein again.
Further, in an embodiment of the present application, the configuration device of the document template includes:
The first screening module is used for screening sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, and acquiring importance level information corresponding to each sensitive variable respectively;
the determining module is used for determining desensitization rules respectively corresponding to the sensitive variables 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 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 number as the first number from the processing threads if the target processing threads are the same as the first number;
The first sending module is used for establishing a one-to-one correspondence between the target processing threads and the desensitization rules based on the desensitization rules respectively corresponding to the sensitive variables, and sending the desensitization rules into the corresponding target processing threads respectively;
The second sending module is used for generating a target corresponding relation between the sensitive variable and the target processing thread based on the corresponding relation between the desensitization rule and the sensitive variable and the corresponding relation between the target processing thread and the desensitization rule, and respectively sending each sensitive variable into the corresponding target processing thread based on the target corresponding relation;
the third acquisition module is used for calling each target processing thread to respectively acquire target parameters corresponding to the sensitive variables contained in the target processing threads from all the parameters, and performing desensitization processing on the acquired target parameters based on the desensitization rules contained in the target processing threads to acquire desensitization information corresponding to the sensitive variables contained in the target processing threads; wherein the interior refers to the interior 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 performed by the modules or units respectively correspond to the steps of the document template configuration method in the foregoing embodiment one by one, which is not described herein again.
Further, in an embodiment of the present application, the determining module includes:
the second acquisition unit is used for acquiring importance level information of the appointed sensitive variable; the appointed sensitive variable is any sensitive variable in all the sensitive variables, and the importance level information of the appointed sensitive variable is marked as appointed importance level information;
the first determining unit is used for taking a first desensitization rule corresponding to the first level information as the desensitization rule of the appointed sensitive variable if the appointed importance level information is preset first level information; the first desensitization rule is to desensitize data by using a preset encryption mode;
The second determining unit is used for taking a second desensitization rule corresponding to the second level information as the desensitization rule of the appointed sensitive variable if the appointed importance level information is preset second level information; wherein the second desensitization rule is to use an alternative mode to perform data desensitization;
A third determining unit, configured to, if the specified importance level information is preset third level information, use 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 use a fuzzy mode to desensitize the data.
In this embodiment, the operations performed by the modules or units respectively correspond to the steps of the document template configuration method in the foregoing embodiment one by one, which is not described herein again.
Further, in an embodiment of the present application, the configuration device of the document template includes:
The third screening module is used for screening specified variables which are not matched with the document variables from the target document template if the specified 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 performed by the modules or units respectively correspond to the steps of the document template configuration method in the foregoing embodiment one by one, which is not described herein again.
Further, in an embodiment of the present application, the configuration device of the 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 carrying out modification processing on the service variable domain list based on the modification data to obtain a modified service variable domain list;
and the replacing module is used for replacing the business variable domain list by using the modified business variable domain list so as to finish updating the business variable domain list.
In this embodiment, the operations performed by the modules or units respectively correspond to the steps of the document template configuration method in the foregoing embodiment one by one, which is not described herein again.
Referring to fig. 3, in an embodiment of the present application, there is further provided a computer device, which may be a server, and an internal structure thereof may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, a display screen, an input device, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a storage medium, an internal memory. The storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the storage media. The database of the computer device is used for storing user information, a user authority data table, a service variable domain list, target service variables, configuration information, an initial file, a document template and a document number. 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 graphics can be displayed on the screen of the display screen. The input device of the computer equipment is a main device for exchanging information between the computer and a user or other equipment, and is used for conveying data, instructions, certain sign information and the like into the computer. The computer program, when executed by a processor, implements 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 or not; 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 is passed or not;
if the authority verification is passed, 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;
acquiring a target service variable selected by the user in the 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 preset document template database based on the document number.
It will be appreciated by those skilled in the art that the structure shown in fig. 3 is merely a block diagram of a portion of the structure associated with the present application and is not intended to limit the apparatus, or computer device, to which the present application is applied.
An embodiment of the present application further provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor implements a method for configuring a document template, specifically:
Judging whether a document template configuration request input by a user is received or not; 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 is passed or not;
if the authority verification is passed, 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;
acquiring a target service variable selected by the user in the 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 preset document template database based on the document number.
Those skilled in the art will appreciate that implementing all or part of the above-described embodiment methods may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed, may comprise the steps of the above-described embodiment methods. Any reference to memory, storage, database, or other medium provided by the present application and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
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 one … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the application.

Claims (9)

1. A method for configuring a document template, comprising:
Judging whether a document template configuration request input by a user is received or not; 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 is passed or not;
if the authority verification is passed, 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;
acquiring a target service variable selected by the user in the 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;
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;
judging whether a document generation request input by a specified user is received or not; the document generation request carries a target document code and parameter data, wherein the parameter data comprises a document variable and a parameter corresponding to the document variable;
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;
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 matched with all variables contained in the target document template;
And if the target document template is matched with all the variables contained in the target document template, filling the target document template based on the parameters in the parameter data, and generating a target document corresponding to the document generation request.
2. The method for configuring a document template according to claim 1, wherein the step of calling a preset user authority data table and a service operation authority score table to perform authority verification on the user based on the user information and judging whether the authority verification is passed comprises the steps of:
acquiring a preset user authority data table and a preset 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 or not;
if the appointed user information is stored, inquiring the authority score corresponding to the user information based on the user authority data table, and inquiring the authority limit information corresponding to the user information;
inquiring a service authority score interval corresponding to the service operation of the configuration document template based on the service operation authority score table;
Judging whether the authority score is in the service authority score interval or not;
If the current time information is in the service authority score interval, acquiring current time information;
judging whether the time information is in a time interval range corresponding to the authority limit information;
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 for configuring a document template according to claim 1, wherein the filling the target document template based on the parameter in the parameter data, after generating a target document file corresponding to the document generation request, includes:
screening sensitive variables from all variables contained in the target document file based on a preset sensitive variable list, and acquiring importance level information corresponding to each sensitive variable respectively;
based on the importance level information, determining desensitization rules respectively corresponding to the sensitive variables;
Acquiring a first number of the sensitive variables and acquiring a second number of preset processing threads;
judging whether the second number is larger than the first number;
If yes, randomly screening a plurality of target processing threads with the same number as the first number from the processing threads;
Based on the desensitization rules respectively corresponding to the sensitive variables, establishing a one-to-one correspondence between the target processing threads and the desensitization rules, and respectively transmitting the desensitization rules into the corresponding target processing threads;
Based on the corresponding relation between the desensitization rule and the sensitive variable and the corresponding relation between the target processing thread and the desensitization rule, generating a target corresponding relation between the sensitive variable and the target processing thread, and respectively sending each sensitive variable into the corresponding target processing thread based on the target corresponding relation;
Calling each target processing thread to respectively acquire target parameters corresponding to the internally-contained sensitive variables from all the parameters, and performing desensitization processing on the acquired target parameters based on the internally-contained desensitization rules to acquire desensitization information corresponding to the internally-contained sensitive variables; wherein the interior refers to the interior 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.
4. The document template configuration method according to claim 3, wherein the determining, based on the importance level information, a desensitization rule corresponding to each of the sensitive variables, respectively, includes:
acquiring importance level information of a designated sensitive variable; the appointed sensitive variable is any sensitive variable in all the sensitive variables, and the importance level information of the appointed sensitive variable is marked as appointed importance level information;
If the appointed importance level information is preset first level information, taking a first desensitization rule corresponding to the first level information as a desensitization rule of the appointed sensitive variable; the first desensitization rule is to desensitize data by using a preset encryption mode;
If the appointed importance level information is preset second level information, taking a second desensitization rule corresponding to the second level information as a desensitization rule of the appointed sensitive variable; wherein the second desensitization rule is to use an alternative mode to perform data desensitization;
If the appointed importance level information is preset third level information, taking a third desensitization rule corresponding to the third level information as a desensitization rule of the appointed sensitive variable; wherein the third desensitization rule is to use a fuzzy mode to desensitize the data.
5. The method for configuring a document template according to claim 1, 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 all variables included in the target document template, the method comprises:
If not, screening out 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 specified variable and the information template;
And displaying the data missing reminding information.
6. The method for configuring a document template according to claim 1, wherein after the preset business variable domain list is displayed, the method comprises:
judging whether a modification request of an administrator user for the service variable domain list is received or not;
If the modification request is received, receiving modification data input by the administrator user;
Modifying the service variable domain list based on the modification data to obtain a modified service variable domain list;
And replacing the business variable domain list by using the modified business variable domain list to finish updating the business variable domain list.
7. A document template configuration apparatus for implementing the method of any one of claims 1 to 6, comprising:
The first judging 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 is passed or not;
the first display module is used for displaying a preset service variable domain list if the authority verification is passed; the service variable domain list comprises a plurality of service variables, and the service meaning of each service variable is different;
the first acquisition module is used for acquiring a target business variable selected by the user in the business 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;
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.
8. 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, carries out the steps of the method according to any one of claims 1 to 6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
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 CN113642039A (en) 2021-11-12
CN113642039B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296651B (en) * 2021-12-28 2023-08-01 上海右云信息技术有限公司 Method and device for storing custom data information
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

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8037004B2 (en) * 2007-06-11 2011-10-11 Oracle International Corporation Computer-implemented methods and systems for identifying and reporting deviations from standards and policies for contracts, agreements and other business documents

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN113642039A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN113642039B (en) Configuration method and device of document template, computer equipment and storage medium
CN112668041B (en) Method and device for generating document file, computer equipment and storage medium
CN113516297B (en) Prediction method and device based on decision tree model and computer equipment
CN112347310A (en) Event processing information query method and device, computer equipment and storage medium
CN112540811B (en) Cache data detection method and device, computer equipment and storage medium
CN112667592B (en) Data storage method, device, computer equipment and storage medium
CN111737963B (en) Configuration file based form filling method and device and computer equipment
CN113326081A (en) Static resource processing method and device, computer equipment and storage medium
CN112036147B (en) Method, device, computer equipment and storage medium for converting picture into webpage
CN111597424A (en) Crawler identification method and device, computer equipment and storage medium
CN113282514B (en) Method, device, computer equipment and storage medium for processing problem data
CN112328482A (en) Test method and device based on script template, computer equipment and storage medium
CN113742776A (en) Data verification method and device based on biological recognition technology and computer equipment
CN113672654B (en) Data query method, device, computer equipment and storage medium
CN113435990B (en) Certificate generation method and device based on rule engine and computer equipment
CN114840387A (en) Micro-service monitoring method and device, computer equipment and storage medium
CN112650659B (en) Buried point setting method and device, computer equipment and storage medium
CN113656588B (en) Knowledge graph-based data code matching method, device, equipment and storage medium
CN113051372B (en) Material data processing method, device, computer equipment and storage medium
CN112965981B (en) Data checking method, device, computer equipment and storage medium
CN113535260B (en) Simulator-based data processing method, device, equipment and storage medium
CN114398441B (en) Data export method, device, computer equipment and storage medium
CN114511200A (en) Job data generation method and device, computer equipment and storage medium
CN114547053A (en) System-based data processing method and device, computer equipment and storage medium
CN113177396A (en) Report generation 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