CN109344372A - Document generation method and system based on big data - Google Patents

Document generation method and system based on big data Download PDF

Info

Publication number
CN109344372A
CN109344372A CN201810920769.3A CN201810920769A CN109344372A CN 109344372 A CN109344372 A CN 109344372A CN 201810920769 A CN201810920769 A CN 201810920769A CN 109344372 A CN109344372 A CN 109344372A
Authority
CN
China
Prior art keywords
server
document
attribute value
configuration
configuration file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810920769.3A
Other languages
Chinese (zh)
Other versions
CN109344372B (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.)
Shanxi Xinborui Technology Co ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201810920769.3A priority Critical patent/CN109344372B/en
Publication of CN109344372A publication Critical patent/CN109344372A/en
Application granted granted Critical
Publication of CN109344372B publication Critical patent/CN109344372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention is suitable for data processing field, provide a kind of document generation method and system based on big data, document mode is determined according to the configuration file that terminal device is sent by server, multiple attribute type set are transferred from the magnanimity attribute type in presetting database under the current document mode, server is repeated extracts an attribute value as selected attribute value from each attribute type set, form the operation of attribute value combination record, the corresponding local template of each selected attribute value is combined simultaneously, corresponding document template is recorded to generate attribute value combination, it matches selected attribute value corresponding with multiple Target Attribute values and combines record, and the combination of selected attribute value is recorded into corresponding selected document template and is sent to terminal device, the document data that terminal device inputs user import in the selected document template , document is generated, to determine document template for greater flexibility, improves the degree of automation that document generates.

Description

Document generation method and system based on big data
Technical field
The invention belongs to data processing field more particularly to a kind of document generation methods and system based on big data.
Background technique
Currently, Internet company can all have the different scenes such as text under cell phone application end, PC computer end, line to use document Demand.The process that existing document is generated and shown, generally requires the document data that terminal device is inputted according to user, transfers this The template for the fixed format that ground has been made, such as the template of PDF format is transferred, then specific document data are inserted into template It is interior, to generate document.
But existing document generation method, on the one hand, due to template be just made and stored in advance, so The data type and type-setting mode that template each region is included are also cured, therefore terminal device possibly can not be in local Suitable template is found, the specific document data that can not input user insert suitable template to generate document.It is another Aspect so terminal device generally requires additionally to install format converter, and expends big since the format of template is also cured The computing resource of amount and time handle the format of the format for the data that user inputs and template.
To sum up, for current technology during production document automatically, there are the forms of document template and format solidification to lead The problem of flexibility difference when document being caused to generate.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of document generation method and system based on big data, to solve The problem of prior art flexibility difference present in the document generating process based on big data.
The first aspect of the embodiment of the present invention provides a kind of document generation method based on big data, comprising:
Server determines document mode according to the configuration file that terminal device is sent, and lowers in the current document mode Multiple attribute type set are taken, include more than one attribute value in the attribute type set;
The server repeats following operation and presets 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;
The server sends triggering command to the terminal device;
The terminal device obtains multiple Target Attribute values of user's input after receiving the triggering command, and will Multiple Target Attribute values are sent to the server;
The server selection is combined record with multiple matched attribute values of Target Attribute values and is belonged to as selected Property value combination record, and the selected attribute value combination is recorded into corresponding document template as selected document template and is sent to institute State terminal device;
The document data that the terminal device inputs user import in the selected document template, generate document.
The second aspect of the embodiment of the present invention provides a kind of document generation system based on big data, comprising: terminal is set Standby and server;
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.
In embodiments of the present invention, document mode is determined according to the configuration file that terminal device is sent by server, Multiple attribute type set are transferred under the current document mode, server is repeated from each attribute type set An attribute value is extracted as selected attribute value, the operation of composition attribute value combination record, while combining each selected attribute value Corresponding part template records corresponding document template to generate attribute value combination, sends in server receiving terminal equipment It after multiple Target Attribute values, matches selected attribute value corresponding with multiple Target Attribute values and combines record, and by selected category Property value combination record corresponding selected document template and be sent to terminal device, the document data importing that user input by terminal device In the selected document template, document is generated, to determine document template for greater flexibility, improves the automation journey that document generates Degree.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the document generation method provided in an embodiment of the present invention based on big data;
Fig. 2 is the specific implementation flow chart of the document generation method S102 provided in an embodiment of the present invention based on big data;
Fig. 3 is the system interaction figure that the document provided in an embodiment of the present invention based on big data generates system;
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.

Claims (10)

1. a kind of document generation method based on big data characterized by comprising
Server determines document mode according to the configuration file that terminal device is sent, and transfers under the current document mode more A attribute type set, the interior attribute type set includes more than one attribute value;
The server repeats following operation until the more than one attribute value combination record generated meets preset section Only condition: an attribute value is extracted from each attribute type set as selected attribute value, by whole quilts It selects attribute value to be combined, generates attribute value combination record, and combine the corresponding local template of each selected attribute value, generate institute State the document template that attribute value combination records corresponding preset format;
The server sends triggering command to the terminal device;
The terminal device obtains multiple Target Attribute values of user's input after receiving the triggering command, and will be multiple The Target Attribute values are sent to the server;
The server selection combines record with multiple matched attribute values of Target Attribute values as selected attribute value Combination record, and the selected attribute value combination is recorded into corresponding document template as selected document template and is sent to the end End equipment;
The document data that the terminal device inputs user import in the selected document template, generate document.
2. the document generation method based on big data as described in claim 1, which is characterized in that in the server according to end The configuration file that end equipment is sent determines before document mode, further includes:
The terminal device receives the accreditation classification of user's input, and determines configuration file based on the accreditation classification, will be described 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 are more than one in the server Class setup parameter is configured, to adjust the document mode.
3. the document generation method based on big data as claimed in claim 2, which is characterized in that the server is according to The data in configuration file that terminal device is sent are more than one configuration class setup parameter in server, comprising:
The server detects the file identification of the configuration file, and judging whether the configuration file belongs to can directly set Class;
If the configuration file, which belongs to, can directly set class, the server reads the configuration text by the POI packet of JAVA Each row data in part, 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 write-in of class name should It configures in the corresponding Parameter File of class name.
4. the document generation method based on big data as claimed in claim 2, which is characterized in that the server is according to The data in configuration file that terminal device is sent are more than one configuration class setup parameter in server, further includes:
If the configuration file is not belonging to directly set class, the server extracts matches included in the configuration file Class name is set, and according to the corresponding relationship of preset configuration class name and sql query statement, is chosen included in the configuration file The corresponding sql query statement of class name is configured as selected sentence;
The server combines more than one configuration file pair according to configuration class name putting in order in the configuration file The selected sentence answered generates script file, and based on the script file from transferring each configuration in configuration file in database 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.
5. the document generation method based on big data as described in claim 1, which is characterized in that the attribute value combination record For 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 format Document template, comprising:
The server combines the corresponding local template of each selected attribute value by editor, generates the attribute value Combination records the document template of corresponding preset format.
6. a kind of document based on big data generates system characterized by comprising terminal device and server;
The server, the configuration file for being sent according to terminal device determine document mode, in the current document mould Multiple attribute type set are transferred under formula, include more than one attribute value in the attribute type set;
The server is also used to repeat following operation up to the more than one attribute value combination record generated meets in advance If cut-off condition: attribute value is extracted from each attribute type set as selected attribute value, will be whole The selected attribute value is combined, and generates attribute value combination record, and combines the corresponding local template of each selected attribute value, Generate 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 after receiving the triggering command, obtaining multiple Target Attribute values of user's input, and will Multiple Target Attribute values are sent to the server;
The server is also used to choose and combines record with multiple matched attribute values of Target Attribute values as selected Attribute value combination record, and the selected attribute value combination is recorded into corresponding document template as selected document template and is sent to The terminal device;
The terminal device, the document data for being also used to input user import in the selected document template, generate document.
7. the document based on big data generates system as claimed in claim 6, which is characterized in that in the server according to end The configuration file that end equipment is sent determines before document mode, further includes:
The terminal device receives the accreditation classification of user's input, and determines configuration file based on the accreditation classification, will be described 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 are more than one in the server Class setup parameter is configured, to adjust the document mode.
8. the document based on big data generates system as claimed in claim 7, which is characterized in that the server is according to The data in configuration file that terminal device is sent are more than one configuration class setup parameter in server, comprising:
The server detects the file identification of the configuration file, and judging whether the configuration file belongs to can directly set Class;
If the configuration file, which belongs to, can directly set class, the server reads the configuration text by the POI packet of JAVA Each row data in part, 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 write-in of class name should It configures in the corresponding Parameter File of class name.
9. the document based on big data generates system as claimed in claim 7, which is characterized in that the server is according to The data in configuration file that terminal device is sent are more than one configuration class setup parameter in server, further includes:
If the configuration file is not belonging to directly set class, the server extracts matches included in the configuration file Class name is set, and according to the corresponding relationship of preset configuration class name and sql query statement, is chosen included in the configuration file The corresponding sql query statement of class name is configured as selected sentence;
The server combines more than one configuration file pair according to configuration class name putting in order in the configuration file The selected sentence answered generates script file, and based on the script file from transferring each configuration in configuration file in database 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.
10. the document based on big data generates system as claimed in claim 6, which is characterized in that the attribute value combination note Record is 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 format Document template, comprising:
The server combines the corresponding local template of each selected attribute value by editor, generates the attribute value Combination records the document template of corresponding preset format.
CN201810920769.3A 2018-08-14 2018-08-14 Big data-based document generation method and system Active CN109344372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810920769.3A CN109344372B (en) 2018-08-14 2018-08-14 Big data-based document generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810920769.3A CN109344372B (en) 2018-08-14 2018-08-14 Big data-based document generation method and system

Publications (2)

Publication Number Publication Date
CN109344372A true CN109344372A (en) 2019-02-15
CN109344372B CN109344372B (en) 2024-01-26

Family

ID=65291490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810920769.3A Active CN109344372B (en) 2018-08-14 2018-08-14 Big data-based document generation method and system

Country Status (1)

Country Link
CN (1) CN109344372B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134387A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Document template data processing method, device and computer equipment in loan transaction

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861926A (en) * 2016-12-28 2018-03-30 平安科技(深圳)有限公司 Document template configuration method and device
CN107885709A (en) * 2017-09-29 2018-04-06 深圳市共济科技股份有限公司 A kind of report form generation method, system and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861926A (en) * 2016-12-28 2018-03-30 平安科技(深圳)有限公司 Document template configuration method and device
CN107885709A (en) * 2017-09-29 2018-04-06 深圳市共济科技股份有限公司 A kind of report form generation method, system and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134387A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Document template data processing method, device and computer equipment in loan transaction

Also Published As

Publication number Publication date
CN109344372B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
DE60027247T2 (en) Methods and systems for converting data formats
CN106980605A (en) Contract generation method and device
CN109948132A (en) A kind of data of configuration template make a report on method and system
GB2574903A (en) Compilable data model
CN104123227A (en) Method for automatically generating testing cases
CN110020381A (en) Method of calibration, device, equipment and computer storage medium based on configuration file
CN104932480A (en) Automobile diagnostic system design method and apparatus
CN107423061A (en) A kind of list generation method based on ISON data
CN109871314A (en) The automatic generation method of test script
CN106155769A (en) A kind of workflow processing method, device and workflow engine
CN110489407A (en) Data filling mining method, apparatus, computer equipment and storage medium
CN107729924B (en) Picture review probability interval generation method and picture review determination method
CN110377892A (en) A kind of government intelligence form templat designing system
CN111126019A (en) Report generation method and device based on mode customization and electronic equipment
CN108460068A (en) Method, apparatus, storage medium and the terminal that report imports and exports
CN108427554A (en) A kind of the cloud mode software method for automatically constructing and system of table- driven
CN109783565A (en) A kind of method and system that excel data quickly introduce
CN106156306A (en) A kind of template rendering intent and device
CN110738038A (en) Contract text generation method, device, equipment and computer readable storage medium
CN110298692A (en) Method, system and the storage medium of customer data unified management by all kinds of means
CN109344372A (en) Document generation method and system based on big data
CN109783782A (en) Generation method, equipment, storage medium and the device of electronic contract template
CN111581937A (en) Document generation method and device, computer readable medium and electronic equipment
CN108108444B (en) Enterprise business unit self-adaptive system and implementation method thereof
CN114004587B (en) Design system and method for automatic control of whole machine model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240307

Address after: 518000, Building 702, Building A, No. 4545 Songbai Road, Heshuikou Community, Matian Street, Guangming District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Yongsheng Intellectual Property Service Co.,Ltd.

Country or region after: China

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240409

Address after: Room 905, Building A, Smart Port, No. 163 Jinyang Street, Xuefu Industrial Park, Shanxi Transformation and Comprehensive Reform Demonstration Zone, Taiyuan City, Shanxi Province, 030000

Patentee after: Shanxi Xinborui Technology Co.,Ltd.

Country or region after: China

Address before: 518000, Building 702, Building A, No. 4545 Songbai Road, Heshuikou Community, Matian Street, Guangming District, Shenzhen, Guangdong Province

Patentee before: Shenzhen Yongsheng Intellectual Property Service Co.,Ltd.

Country or region before: China