Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the implementation process of the document generation method provided in an embodiment of the present invention based on big data, this method
Process includes step S101 to S107.The specific implementation principle of each step is as follows.
S101: terminal device receives the accreditation classification of user's input, and determines configuration file based on the accreditation classification, will
The configuration file is sent to server.
In embodiments of the present invention, the document generating process based on big data is related to server and terminal device, wherein
Terminal device finally produces document for receiving the Various types of data that user selects or inputs, and server was used for according to end
The Various types of data of end equipment transmission makes suitable document template, and the document template is sent to terminal device.
In embodiments of the present invention, user firstly the need of input one accreditation classification to terminal device, for example, accreditation classification
It may is that " guarantee and certificate of entrustment ", after terminal device receives accreditation classification, can transfer and be stored in the pre- of local terminal
If configured list, the configured list contains the corresponding relationship of accreditation classification Yu file id, so being arranged according to the configuration
Table, terminal device can determine the corresponding file id of an accreditation classification, and find a configuration text based on this file id
Part.
In embodiments of the present invention, configuration file is sent to server, so that server is according to the number in configuration file
According to the relevant parameter of modification.
It is to be appreciated that different terminal devices may be corresponding with different data power due in embodiments of the present invention
Limit or affiliated department are different, so the preset configured list stored in each terminal device is not also identical.Even if therefore
The accreditation classification of the received user's input of two terminal devices is identical, it is also possible to different configuration files is sent to server.It is logical
Above-mentioned situation analysis is crossed it is found that the embodiment of the present invention determines configuration file by terminal device, is retransmited to server, and
The relevant configuration class of server is configured in subsequent step, is conducive to carry out server by configuration file personalized
Control, to change the calculating environment of server and adjust document mode, it is more suitable to make during subsequent
Document template.
S102, server determine document mode according to the configuration file that terminal device is sent, in the current document mould
Multiple attribute type set are transferred under formula, include more than one attribute value in the attribute type set.
Optionally, the data in configuration file that server is sent according to the terminal device, are one in the server
A above configuration class setup parameter, to adjust the document mode.
In embodiments of the present invention, the operation of server is influenced by multiple configuration classes of server, each configuration class
In parameter change after, the running environment of server will change, hence into different document modes.In different document moulds
Under formula, server can call the material of different generation document templates.
Illustratively, it after server adjusts document mode according to configuration file, can be transferred from database current
The corresponding multiple attribute type set of document mode, such as: current document mode are as follows: " guarantee and service certificate of entrustment " mould
Formula, then corresponding multiple attribute type set include: document code set, business bar line set, produce sector's set, product collection
Conjunction, fund side's set, reference side's set, uses link set, external company's set and channel set etc. at sub- product set.
It illustratively, include more than one attribute value in each attribute type set, such as: include: in product set
House-owner borrows, life insurance is borrowed, owner borrows, salary is borrowed and the attribute values such as excellent housing loan;It include Everbright Bank in fund side's set and flat
Pacify the attribute values such as bank.
As an embodiment of the present invention, as shown in Fig. 2, above-mentioned S102 includes:
S1021, server detect the file identification of the configuration file, and judging whether the configuration file belongs to can be direct
Set class.
In embodiments of the present invention, each configuration file has a corresponding file identification, for distinguishing the configuration
File is can directly to set class also right and wrong directly whom can determine class.It is to be appreciated that in the server, some configuration classes are corresponding to match
Setting can be adjusted according to changeless static parameter, if the static parameter can be by the outside relative to server
Equipment (such as: terminal device) storage, then relevant terminal device may send the configuration text that can directly set class to server
Part, server can be repaired directly using parameter of the data that can directly set in the configuration file of class to relevant configuration class
Change.
Conversely, in the server, the corresponding configuration of some configuration classes is what the parameter changed according to dynamic was adjusted, or
Person is although according to static parameter adjustment but the static parameter can only be stored in the local data base of server, then relevant
Terminal device may send the non-configuration file that can directly set class to server, and server is needed according in configuration file
Data, the static parameter searching corresponding dynamic parameter or being locally stored recycle these parameters to the ginseng of configuration class later
Number is modified.
S1022, if the configuration file, which belongs to, can directly set class, the server is read by the POI packet of JAVA
Each row data in the configuration file, the row data include the corresponding relationship of configuration class name and Configuration Values.
S1023, the server transfer file corresponding with each configuration class name, and will configure that class name is corresponding to match
Value is set to be written in the corresponding Parameter File of configuration class name.
In embodiments of the present invention, each configuration class name has its corresponding Parameter File, changes in Parameter File
Data can modify the parameter of configuration class.
S1024, if the configuration file is not belonging to directly set class, the server is extracted in the configuration file
The configuration class name for being included, and according to the corresponding relationship of preset configuration class name and sql query statement, choose the configuration file
Included in the corresponding sql query statement of configuration class name as selected sentence.
S1025, the server combine more than one according to configuration class name putting in order in the configuration file
The corresponding selected sentence of configuration file generates script file, and transfers configuration file from database based on the script file
In the corresponding Configuration Values of each configuration class.
S1026, the server will configure the corresponding Configuration Values of class name and be written in the corresponding Parameter File of configuration class name.
It is to be appreciated that through the embodiment of the present invention, the type of different configuration files, reasonable selection pair can be directed to
The method that class carries out parameter setting is configured, thus after parameter setting, into corresponding document mode.
S103, server repeat following operation and preset up to the more than one attribute value combination record generated meets
Cut-off condition: attribute value is extracted from each attribute type set as selected attribute value, by whole institutes
It states selected attribute value to be combined, generates attribute value combination record, and combine the corresponding local template of each selected attribute value, it is raw
The document template of corresponding preset format is recorded at attribute value combination.
As described in example above, due under a document mode, the multiple attribute type set of server calls, and it is every
There are more than one attribute values again in a attribute type set, then can be by way of permutation and combination every time from whole categories
Property type set in respectively extract an attribute value out, and the whole attribute values extracted every time are spliced into an attribute value combination note
Record.
Optionally, the attribute value combination is recorded as the data of json format.
Optionally, preset cut-off condition are as follows: each category in each attribute type set under a document mode
Property value all permutation and combination result be spliced into attribute value combination record.
In embodiments of the present invention, the corresponding local template of each attribute value, it is possible to understand that ground, a localized mode
Plate is the material of a document template, and multiple part template groups can generate a complete document template altogether.Therefore exist
During attribute value combination record generates, the corresponding local template of each selected attribute value can be also combined by server,
To generate the document template that the attribute value currently spliced combination records corresponding preset format.
Optionally, server combines the corresponding local template of each selected attribute value by editor, generates institute
State the document template that attribute value combination records corresponding preset format.
It is to be appreciated that carrying out visual edit by editor.The staff for being conducive to server is making
, can be with each format effect of live preview when making document template, including PDF preview, H5 webpage effect preview, two-dimensional code scanning are pre-
It lookes at, word document format preview.In addition, the document template using editor editor ensure that front and back end content is unified
While, in turn ensure the compatibility of format.So that terminal device does not need additionally to convert according to format when using document template
Device.
S104, the server send triggering command to the terminal device.
Notably, in embodiments of the present invention, when server is generating more than one list according to configuration file
After demonstrate,proving template and the corresponding attribute value combination record of each document template, just a triggering can be sent to terminal device and referred to
It enables, to allow terminal device to receive subsequent data.
S105, the terminal device obtain multiple Target Attribute values of user's input after receiving the triggering command,
And multiple Target Attribute values are sent to the server.
Notably, in embodiments of the present invention, Target Attribute values are the attribute values of user's input, for example, user exists
Select guarantee and certificate of entrustment " after this accreditation classification, in this step, it can input: " no mortgage ", " masses ", " car owner
The attribute values such as loan ", " Everbright Bank " are as Target Attribute values.
S106, the server selection combine record with multiple matched attribute values of Target Attribute values as quilt
Attribute value combination record is selected, and the selected attribute value combination is recorded into corresponding document template as selected document template and is sent
To the terminal device.
It is to be appreciated that since each attribute value combination record all has multiple attribute values to be spliced, so service
Device can combine the attribute value in recording with each attribute value by comparing the multiple Target Attribute values received, to choose institute
The attribute value for including combines record with the identical attribute value of multiple Target Attribute values received, as selected attribute value group
Close record.
S107, the document data that the terminal device inputs user import in the selected document template, generate document.
It is to be appreciated that document data, that is, user should fill in the data into document.
It is to be appreciated that in embodiments of the present invention, being determined by server according to the configuration file that terminal device is sent
Document mode, transfers multiple attribute type set under the current document mode, and server is repeated from each attribute
An attribute value is extracted in type set as selected attribute value, the operation of composition attribute value combination record, while being combined each
The corresponding local template of a selected attribute value records corresponding document template to generate attribute value combination, receives eventually in server
After multiple Target Attribute values that end equipment is sent, matches selected attribute value corresponding with multiple Target Attribute values and combine note
Record, and the combination of selected attribute value is recorded into corresponding selected document template and is sent to terminal device, terminal device inputs user
Document data import in the selected document template, generate document, to determine document template for greater flexibility, it is raw to improve document
At the degree of automation.
Corresponding to the document generation method described in foregoing embodiments based on big data, Fig. 3 shows the embodiment of the present invention
The document based on big data provided generates the system interaction figure of system, for ease of description, illustrates only and implements with the present invention
The relevant part of example.
Referring to Fig. 3, the system include: include: terminal device 301 and server 302;
The server, the configuration file for being sent according to terminal device determine document mode, in the current list
Multiple attribute type set are transferred under card mode, include more than one attribute value in the attribute type set;
The server is also used to repeat following operation until the more than one attribute value combination record generated is full
The preset cut-off condition of foot: extracting an attribute value from each attribute type set and be used as selected attribute value, will be complete
The selected attribute value in portion is combined, and generates attribute value combination record, and combine the corresponding part of each selected attribute value
Template generates the document template that the attribute value combination records corresponding preset format;
The server is also used to send triggering command to the terminal device;
The terminal device, for obtaining multiple Target Attribute values of user's input after receiving the triggering command,
And multiple Target Attribute values are sent to the server;
The server is also used to choose and combines record conduct with multiple matched attribute values of Target Attribute values
Selected attribute value combination record, and the selected attribute value combination is recorded into corresponding document template as selected document template and is sent out
It send to the terminal device;
The terminal device, the document data for being also used to input user import in the selected document template, generate single
Card.
Optionally, before the server determines document mode according to the configuration file that terminal device is sent, further includes:
The terminal device receives the accreditation classification of user's input, and determines configuration file based on the accreditation classification, will
The configuration file is sent to server;
The server determines document mode according to the configuration file that terminal device is sent, comprising:
The data in configuration file that the server is sent according to the terminal device, be in the server one with
On configuration class setup parameter, to adjust the document mode.
Optionally, the data in configuration file that the server is sent according to the terminal device, are one in server
A above configuration class setup parameter, comprising:
The server detects the file identification of the configuration file, and judging whether the configuration file belongs to can directly set
Determine class;
If the configuration file, which belongs to, can directly set class, match described in POI packet reading of the server by JAVA
Each row data in file are set, the row data include the corresponding relationship of configuration class name and Configuration Values;
The server transfers file corresponding with each configuration class name, and will configure the corresponding Configuration Values of class name and write
Enter in the corresponding Parameter File of configuration class name.
Optionally, the data in configuration file that the server is sent according to the terminal device, are one in server
A above configuration class setup parameter, further includes:
If the configuration file is not belonging to directly set class, the server is extracted included in the configuration file
Configuration class name, and according to it is preset configuration class name and sql query statement corresponding relationship, choose in the configuration file and wrapped
The corresponding sql query statement of the configuration class name contained is as selected sentence;
The server combines more than one configuration text according to configuration class name putting in order in the configuration file
The corresponding selected sentence of part generates script file, and each in configuration file from transferring in database based on the script file
Configure the corresponding Configuration Values of class;
The server will configure the corresponding Configuration Values of class name and be written in the corresponding Parameter File of configuration class name.
Optionally, the attribute value combination is recorded as the data of json format;
It is described to combine the corresponding local template of each selected attribute value, it generates the attribute value combination and records corresponding preset
The document template of format, comprising:
The server combines the corresponding local template of each selected attribute value by editor, generates the category
Property value combination record the document template of corresponding preset format.
It is to be appreciated that in embodiments of the present invention, being determined by server according to the configuration file that terminal device is sent
Document mode, transfers multiple attribute type set under the current document mode, and server is repeated from each attribute
An attribute value is extracted in type set as selected attribute value, the operation of composition attribute value combination record, while being combined each
The corresponding local template of a selected attribute value records corresponding document template to generate attribute value combination, receives eventually in server
After multiple Target Attribute values that end equipment is sent, matches selected attribute value corresponding with multiple Target Attribute values and combine note
Record, and the combination of selected attribute value is recorded into corresponding selected document template and is sent to terminal device, terminal device inputs user
Document data import in the selected document template, generate document, to determine document template for greater flexibility, it is raw to improve document
At the degree of automation.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.