CN110287204A - Document method for updating edition, device, equipment and readable storage medium storing program for executing - Google Patents

Document method for updating edition, device, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110287204A
CN110287204A CN201910443375.8A CN201910443375A CN110287204A CN 110287204 A CN110287204 A CN 110287204A CN 201910443375 A CN201910443375 A CN 201910443375A CN 110287204 A CN110287204 A CN 110287204A
Authority
CN
China
Prior art keywords
document
updated
default
target environment
stored
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.)
Pending
Application number
CN201910443375.8A
Other languages
Chinese (zh)
Inventor
江静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910443375.8A priority Critical patent/CN110287204A/en
Publication of CN110287204A publication Critical patent/CN110287204A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Technology Law (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of document method for updating edition, device, equipment and readable storage medium storing program for executing, the document method for updating edition includes: when detecting the instruction of document version updating, document to be updated is chosen from default document database according to the more new command, and the document to be updated is stored in default base library;Obtain configuration information entrained in the more new command, wherein include the target environment of the document to be updated in the configuration information;The document to be updated being stored in default base library is copied in the target environment, and activates the document to be updated in the target environment, to complete the update of the document to be updated.Present invention seek to address that the update low efficiency of document version, accuracy are low in the prior art, it is difficult to meet the technical issues of the needs of industry development.

Description

Document method for updating edition, device, equipment and readable storage medium storing program for executing
Technical field
The present invention relates to field of computer technology more particularly to a kind of document method for updating edition, device, equipment and readable Storage medium.
Background technique
Various documents are often referred to during business handling, document can be understood as one kind of contract, document version It can be interpreted as contract version, due to the difference of the factors such as time and scene, the corresponding document version of business is constantly to become Change, thus, document version needs to constantly update, however, currently, it is manual to there are needs in the renewal process of document version It replicates newest edition data etc. and easily leads to leakage biography, logical pass of the manpowers such as mistake biography operates, and could complete the update of document version, this drop The low efficiency and accuracy of document version updating, it is difficult to meet the needs of industry development.
Summary of the invention
The main purpose of the present invention is to provide a kind of document method for updating edition, device, equipment and readable storage medium storing program for executing, Aim to solve the problem that the update low efficiency of document version in the prior art, accuracy is low, it is difficult to meet the technology of the needs of industry development Problem.
To achieve the above object, the present invention provides a kind of document method for updating edition, and the document method for updating edition is answered For browser, the document method for updating edition includes:
When detecting the instruction of document version updating, chosen from default document database to more according to the more new command New document, and the document to be updated is stored in default base library;
Obtain configuration information entrained in the more new command, wherein include described to be updated in the configuration information The target environment of document;
The document to be updated being stored in default base library is copied in the target environment, and in the target ring The document to be updated is activated in border, to complete the update of the document to be updated.
Optionally, described that the document to be updated being stored in default base library is copied into step in the target environment Include:
Obtain the first address of the default Ji Ku and the second address of the target environment;
The preset reproducer section to be done for the document reproduction process to be updated is obtained, by described pre- first It fills to the source address region of the reproducer section to be done address;
Second address is filled to the destination address region of the reproducer section to be done;
Based on the source address region and the destination address region after the completion of filling, default base is stored in by described Document to be updated in library copies in the target environment.
Optionally, described when detecting the instruction of document version updating, according to the more new command from default document data Document to be updated is chosen in library, and the document to be updated is stored in step in default base library and includes:
When detecting the instruction of document version updating, preset query SQL sentence and the first sequence SQL statement are called;
According to the query SQL sentence from chosen in the default document database upload in preset time period in the past to Document is updated, and the document to be updated is stored in default base library;
The multiple documents to be updated being stored in default base library are generated according to the first sequence SQL statement First sequence of time descending, to carry out the orderly update of the document to be updated according to first sequence.
Optionally, described to copy to the document to be updated being stored in default base library in the target environment, and The document to be updated is activated in the target environment, includes: to complete the update step of the document to be updated
The document to be updated being stored in default base library is copied in the target environment, and calls the target The second sequence SQL statement in environment;
The document to be updated and the document to be updated are corresponded into legacy version according to the second sequence SQL statement Document carries out the second sequence of time descending;
According to second sequence, effective status is set by the document to be updated, and by the document pair to be updated The document of legacy version is answered to be set as invalid state, to complete the update of the document to be updated.
Optionally, described when detecting the instruction of document version updating, according to the more new command from default document data Include: before choosing document step to be updated in library
When detecting that document version generates instruction, configuration information entrained in the generation instruction is obtained;
Target template is chosen from preset table library according to the document release type in the configuration information, and according to described Configuration information chooses parameter to be configured from preset table library;
The parameter to be configured is filled into the target template, to obtain document to be updated.
Optionally, described to fill the parameter to be configured into the target template, to obtain document step to be updated Include:
The cell attribute for obtaining each unit in the target template executes following step for the cell attribute of each unit It is rapid:
The target table that there is preset association relationship with the cell attribute is chosen from preset table library, described in determination The filling relationship of the corresponding unit of cell attribute and parameter to be configured in table;
The parameter to be configured is filled into the corresponding unit with filling relationship, to obtain document to be updated.
Optionally, described to copy to the document to be updated being stored in default base library in the target environment, and The document to be updated is activated in the target environment, includes: after the update step to complete the document to be updated
If detect that the document to be updated is completed to update, the more new command corresponding requests side Xiang Suoshu is sent completely prompting Information, the version number completed in prompting message including the document to be updated, deadline, target environment information.
The present invention also provides a kind of document version updating device, the document version updating device includes:
First obtains module, for when detecting the instruction of document version updating, according to the more new command from default list Document to be updated is chosen in card database, and the document to be updated is stored in default base library;
Second obtains module, for obtaining configuration information entrained in the more new command, wherein the configuration information In include the document to be updated target environment;
Replication module, for the document to be updated being stored in default base library to be copied in the target environment, And the document to be updated is activated in the target environment, to complete the update of the document to be updated.
Optionally, the replication module includes:
First acquisition unit, for obtaining the first address of the default Ji Ku and the second ground of the target environment Location;
Second acquisition unit, for obtaining the preset duplication journey to be done for the document reproduction process to be updated Sequence section fills pre- first address to the source address region of the reproducer section to be done;
Fills unit, for filling second address to the destination address area of the reproducer section to be done Domain;
First copied cells, for based on the source address region and the destination address region after the completion of filling, The document to be updated being stored in default base library is copied in the target environment.
Optionally, the first acquisition module step includes:
Call unit, for calling preset query SQL sentence and first when detecting the instruction of document version updating Sort SQL statement;
Storage unit, when for choosing default in the past from the default document database according to the query SQL sentence Between the document to be updated that uploads in section, and the document to be updated is stored in default base library;
First sequencing unit, for according to it is described first sequence SQL statement to it is described be stored in it is multiple in default base library Document to be updated generate the first sequence of time descending, to carry out the document to be updated according to first sequence Orderly update.
Optionally, the replication module includes:
The document to be updated being stored in default base library is copied in the target environment, and calls the target The second sequence SQL statement in environment;
Second copied cells, for according to the second sequence SQL statement by the document to be updated and described to more The document that new document corresponds to legacy version carries out the second sequence of time descending;
Setting unit, for setting effective status for the document to be updated, and will be described according to second sequence The document that document to be updated corresponds to legacy version is set as invalid state, to complete the update of the document to be updated.
Optionally, the document version updating device further include:
Third obtains module, entrained in the generation instruction for obtaining when detecting that document version generates instruction Configuration information;
Module is chosen, for choosing target mould from preset table library according to the document release type in the configuration information Plate, and parameter to be configured is chosen from preset table library according to the configuration information;
Module is filled, for filling the parameter to be configured into the target template, to obtain document to be updated.
Optionally, the filling module includes:
Third acquiring unit, for obtaining the cell attribute of each unit in the target template, for each unit Cell attribute executes following steps:
The target table that there is preset association relationship with the cell attribute is chosen from preset table library, described in determination The filling relationship of the corresponding unit of cell attribute and parameter to be configured in table;
The parameter to be configured is filled into the corresponding unit with filling relationship, to obtain document to be updated.
Optionally, the document version updating device further include:
Reminding module, if when for detecting that the document to be updated is completed to update, Xiang Suoshu more new command corresponding requests Side is sent completely prompting message, the version number completed in prompting message including the document to be updated, deadline, target Environmental information.
In addition, to achieve the above object, the present invention also provides a kind of document version updating equipment, the document version updating Equipment includes: memory, processor, communication bus and the document version updating program being stored on the memory,
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the document version updating program, to perform the steps of
When detecting the instruction of document version updating, chosen from default document database to more according to the more new command New document, and the document to be updated is stored in default base library;
Obtain configuration information entrained in the more new command, wherein include described to be updated in the configuration information The target environment of document;
The document to be updated being stored in default base library is copied in the target environment, and in the target ring The document to be updated is activated in border, to complete the update of the document to be updated.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing storage Have one perhaps more than one program the one or more programs can be held by one or more than one processor Row is to be used for:
When detecting the instruction of document version updating, chosen from default document database to more according to the more new command New document, and the document to be updated is stored in default base library;
Obtain configuration information entrained in the more new command, wherein include described to be updated in the configuration information The target environment of document;
The document to be updated being stored in default base library is copied in the target environment, and in the target ring The document to be updated is activated in border, to complete the update of the document to be updated.
The present invention is by when detecting the instruction of document version updating, according to the more new command from default document database It is middle to choose document to be updated, and the document to be updated is stored in default base library;It obtains entrained in the more new command Configuration information, wherein in the configuration information include the document to be updated target environment;Default base is stored in by described Document to be updated in library copies in the target environment, and the document to be updated is activated in the target environment, with Complete the update of the document to be updated.In the present embodiment, in the renewal process of document version, it is no longer necessary to manually will be pre- If the document in document database is copied in target environment, but realize automation duplication, that is, in this application, from choosing It takes document to be updated to document process to be updated is finally activated, realization is automated, due to the renewal process of document version In do not further relate to the logical operation passed of manpower, thus avoid that efficiency caused by due to manual operation reduces and error rate mentions It rises, in turn, improves the update efficiency of document version, thus, solve the update low efficiency of document version in the prior art, it is quasi- Exactness is low, it is difficult to meet the technical issues of the needs of industry development.
Detailed description of the invention
Fig. 1 is the flow diagram of document method for updating edition first embodiment of the present invention;
Fig. 2 is document method for updating edition second embodiment of the present invention by the list to be updated being stored in default base library Card copies to the refinement flow diagram of step in the target environment;
Fig. 3 is the device structure schematic diagram for the hardware running environment that present invention method is related to.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of document method for updating edition, in the first embodiment of document method for updating edition of the present invention In, referring to Fig.1, the document method for updating edition includes:
Step S10, when detecting the instruction of document version updating, according to the more new command from default document database Document to be updated is chosen, and the document to be updated is stored in default base library;
Step S20 obtains configuration information entrained in the more new command, wherein includes institute in the configuration information State the target environment of document to be updated;
Step S30 copies to the document to be updated being stored in default base library in the target environment, and in institute It states and activates the document to be updated in target environment, to complete the update of the document to be updated.
Specific step is as follows:
Step S10, when detecting the instruction of document version updating, according to the more new command from default document database Document to be updated is chosen, and the document to be updated is stored in default base library;
In the present embodiment, document method for updating edition is applied to document version updating system, in the document version updating In system, there are the generation subsystems of document version, and there is also in default document database, there is also the update of document version System, wherein after the generation subsystem of document version generates document version, the document version of generation is stored in default document In database, it should be noted that preserve the corresponding business document table of each different business, the business sheet in default document library The document of each different editions is stored in card table, for example, being stored with multiple versions that serious illness insurance corresponds to business in default document library This document, is also stored with the document etc. that accident insurance corresponds to multiple versions of business, for the update subsystem of document version For, it needs to choose document to be updated from default document database, document to be updated is respectively sent in corresponding environment, To realize the activation of corresponding document in corresponding environment.
Wherein, it when detecting the instruction of document version updating, is selected from default document database according to the more new command Document to be updated is taken, and the document to be updated is stored in default base library, it should be noted that the update of document version refers to Order can be daily clocked flip, namely in the present embodiment, and there are clocked flip document versions in document version updating system The trigger section of this update, the trigger section generate the instruction of document version updating in set time point, are obtaining the document After version updating instruction, document to be updated is chosen from default document database according to the more new command, according to the update Instruction chooses document process to be updated from default document database and includes:
Mode one: it was chosen according to the more new command based on the storage time of each document in default document database Remove the document to be updated newly stored in preset time period.
Mode one: according to the more new command, the mark of each document in default document database is obtained, determination does not replicate The mark of the mark for the document the crossed perhaps document of not processed mistake is according to the mark of not copied document or not processed The mark for the document crossed chooses document to be updated.
After obtaining document to be updated, the document to be updated is stored in default base library, wherein in default base library The difference of document to be updated and the document in default document database is:
Document to be updated in default base library is currently to need to be copied in corresponding target environment, to carry out activation processing Either update the document of processing, and the document in default document database includes having updated of saving or list to be updated Card namely default document database are the preservation for carrying out document data, so that subsequent query is either called.
Step S20 obtains configuration information entrained in the more new command, wherein includes institute in the configuration information State the target environment of document to be updated;
It in the present embodiment, is more to carry configuration information in new command, wherein may include from default in configuration information The document to be updated specifically what time period stored is chosen in document database, for example, configuration information includes from default document number According to one day document to be updated newly stored in the past is chosen in library, which further includes the target environment of document to be updated, by Can be with more than one, thus in document to be updated, the target environment more than one of the document to be updated, thus, specifically, this is matched It include the specific corresponding target environment of document to be updated in confidence breath, for example, when document to be updated is A document, it should It include that the corresponding target environment of A document should be with confidence when document to be updated is B document for stg5 environment in configuration information In breath include the corresponding target environment of A document be stg6 environment, it should be noted that specific target environment can in configuration information To have determining special identifier, corresponding document can be identified based on the special identifier of the determination, updated to avoid mistake.Separately Outside, it should be noted that in configuration information, due to the multiple documents of correspondence, thus also carried in configuration information multiple to be updated The update sequence of document either carries the update rule of multiple documents to be updated, for example, according to storage time sequencing into Row updates.
Step S30 copies to the document to be updated being stored in default base library in the target environment, and in institute It states and activates the document to be updated in target environment, to complete the update of the document to be updated.
According to configuration information, the document to be updated being stored in default base library is copied in the target environment, Specifically, the document to be updated being stored in default base library is orderly copied into the mesh according to configuration information according to described It marks in environment, after orderly copying to the document to be updated in the target environment, institute is activated in the target environment State document to be updated, wherein activation refers to setting effective version for the updated document version, legacy version is arranged For invalid version, to complete the update of the document to be updated.
In the present embodiment, realization automatically copies to the document to be updated being stored in default base library described In target environment, the update efficiency of document version is promoted, reduces the update error rate of document version, is carried out to specific embodiment Illustrate, obtains the document of a serious illness insurance V2.0 version if generating, developer can send the document of serious illness insurance V2.0 version Into default document database, when detecting the instruction of document version updating, need to obtain this from default document database heavy Disease danger V2.0 version is simultaneously issued in default base library, it should be noted that in the present embodiment, all documents to be updated all need It is issued in the stg1 environment in the default base library library T1, for document version updating subsystem, being includes predetermined number (for the storing document version) in the library ssp of environment (for executing document version) and corresponding predetermined number, this default The number libraries ssp include library T5, T6, T7, T8 etc., and the environment of corresponding predetermined number can be stg2, stg3, stg4, stg5 regardless of It is to need to update document version in which library in the library T5, T6, T7, T8, requires document from the stg1 environment in the base library library T1 Version is copied to target environment, could finally realize and activate the document to be updated in the target environment, to complete State the update of document to be updated.For example, needing will be under stg1 environment in the default base library library T1 after obtaining serious illness insurance V2.0 version Serious illness insurance V2.0 version replication could be executed into the corresponding stg5 environment in the library corresponding target T8, in the present embodiment, from It is dynamic to copy to the data in the library T1 in the corresponding library T8, to be executed in stg5 environment.
Specifically, described that the document to be updated being stored in default base library is copied into the target ring referring to Fig. 2 Step includes: in border
Step S31 obtains the first address of the default Ji Ku and the second address of the target environment;
In the present embodiment, the realization process specifically replicated is provided, when detecting duplicate instructions, obtains default base first First address in library and the second address of target environment, it should be noted that the first address can be determining, but mesh It is uncertain for marking address, but is changed according to the variation of specific document.
Step S32 obtains the preset reproducer section to be done for the document reproduction process to be updated, by institute Pre- first address is stated to fill to the source address region of the reproducer section to be done;
In the present embodiment, the source address field there are reproducer section to be done, in the reproducer section to be done Domain can be completion be also possible to it is unfinished, when in reproducer section to be done source address region do not complete when, obtain Take the preset reproducer section to be done for the document reproduction process to be updated, by pre- first address fill to The source address region of the reproducer section to be done.
Step S33 fills second address to the destination address region of the reproducer section to be done;
It fills by pre- first address to the source address region of the reproducer section to be done, obtains configuration The second address in information fills second address to the destination address region of the reproducer section to be done, with Complete the filling processing of reproducer section.
Step S34, based on the source address region and the destination address region after the completion of filling, by the preservation Document to be updated in default base library copies in the target environment.
Complete reproducer section filling processing after, based on after the completion of filling the source address region and the mesh Address area is marked, the document to be updated being stored in default base library is copied in the target environment, needed by triggering It is bright, after the completion of duplication, the source address region and destination address region for having been filled with the reproducer section of completion are removed, with Just the duplication of next document is carried out.
The present invention is by when detecting the instruction of document version updating, according to the more new command from default document database It is middle to choose document to be updated, and the document to be updated is stored in default base library;It obtains entrained in the more new command Configuration information, wherein in the configuration information include the document to be updated target environment;Default base is stored in by described Document to be updated in library copies in the target environment, and the document to be updated is activated in the target environment, with Complete the update of the document to be updated.In the present embodiment, in the renewal process of document version, it is no longer necessary to manually will be pre- If the document in document database is copied in target environment, but realize automation duplication, that is, in this application, from choosing It takes document to be updated to document process to be updated is finally activated, realization is automated, due to the renewal process of document version In do not further relate to the logical operation passed of manpower, thus avoid that efficiency caused by due to manual operation reduces and error rate mentions It rises, in turn, improves the update efficiency of document version, thus, solve the update low efficiency of document version in the prior art, it is quasi- Exactness is low, it is difficult to meet the technical issues of the needs of industry development.
Further, the present invention provides another embodiment of document method for updating edition, in this embodiment, described to examine When measuring the instruction of document version updating, document to be updated is chosen from default document database according to the more new command, and will The document to be updated is stored in step in default base library
Step S11 calls preset query SQL sentence and the first sequence when detecting the instruction of document version updating SQL statement;
In the present embodiment, when detecting the instruction of document version updating, need to call preset query SQL sentence and First sequence SQL statement, realizes the orderly extraction of document to be updated, wherein whether preset query SQL sentence has for inquiring Document to be updated.
Step S12 chooses in past preset time period according to the query SQL sentence from the default document database The document to be updated uploaded, and the document to be updated is stored in default base library;
If being inquired from the default document database according to the query SQL sentence and obtaining document to be updated, According to the query SQL sentence from being chosen in the default document database in preset time period in the past as uploaded in one day in the past Document to be updated, which is extracted and is stored in default base library.
Step S13, according to the first sequence SQL statement to the multiple documents to be updated being stored in default base library Generate the first sequence of time descending, to carry out the orderly update of the document to be updated according to first sequence.
After the document to be updated is stored in default base library, according to the first sequence SQL statement to the guarantor There are the first sequences that multiple documents to be updated in default base library generate time descending, so as to according to first sequence Carry out the orderly update of the document to be updated.It should be noted that in the present embodiment, it can also be according to first sequence After SQL statement carries out the first sequence of generation time descending to the document for being stored in default document database, further according to institute State the document to be updated that query SQL sentence is uploaded out of selection in the default document database in the past preset time period.At this In embodiment when there are multiple documents to be updated, realizes and automatically orderly update.
It is described to copy to the document to be updated being stored in default base library in the target environment, and in the mesh The document to be updated is activated in mark environment, includes: to complete the update step of the document to be updated
The document to be updated being stored in default base library is copied in the target environment, and called by step S35 The second sequence SQL statement in the target environment;
In the present embodiment, the document to be updated being stored in default base library is copied in the target environment Afterwards, the second sequence SQL statement in the target environment is called, the second sequence SQL statement in the target environment is called Purpose is in time to distinguish document to be updated and legacy version document.
Step S36, it is according to the second sequence SQL statement that the document to be updated and the document to be updated is corresponding The document of legacy version carries out the second sequence of time descending;
The document to be updated and the document to be updated are corresponded into legacy version according to the second sequence SQL statement Document carries out the second sequence of time descending, to ensure that document to be updated comes the first place of the second sequence.
Step S37 sets effective status for the document to be updated, and will be described to more according to second sequence The document that new document corresponds to legacy version is set as invalid state, to complete the update of the document to be updated.
Activate document to be updated, activation are as follows: according to second sequence, set effective for the document to be updated State, and invalid state is set by the document that the document to be updated corresponds to legacy version, to complete the document to be updated It updates.
In the present embodiment, by the way that the document to be updated being stored in default base library is copied to the target environment In, and call the second sequence SQL statement in the target environment;It will be described to be updated according to the second sequence SQL statement The document that document and the document to be updated correspond to legacy version carries out the second sequence of time descending;According to the second row Sequence sets effective status for the document to be updated, and sets nothing for the document that the document to be updated corresponds to legacy version Effect state, to complete the update of the document to be updated.The present embodiment realization automatically activates document.
Further, the present invention provides another embodiment of document method for updating edition, in this embodiment, described to examine Measure document version updating instruction when, chosen from default document database according to the more new command document step to be updated it Before include:
Step S01 is obtained when detecting the generation instruction of document version and is matched confidence entrained by described generate in instruction Breath;
In the present embodiment, it also realizes automatically generation document version, specifically, refers to detecting that document version generates When enabling, configuration information entrained by described generate in instruction is obtained, wherein generating configuration information entrained in instruction includes list Demonstrate,prove the information such as release type and corresponding parameter to be configured.
Step S02 chooses target template from preset table library according to the document release type in the configuration information, and Parameter to be configured is chosen from preset table library according to the configuration information;
The template of various corresponding types is stored in different table word banks in preset table library, according to document release type Corresponding basic templates can be chosen, which can be target template, be also possible to need to be added or supplement Target template could be generated after unit, be if desired added or supplementary units after could generate target template, then according to matching Specification information in confidence breath carries out the addition or supplement of unit (usually list cell) to the basic templates, to obtain mesh Mark template, it should be noted that the point of addition for the unit that addition perhaps supplements determines in configuration information to be added or mending After filling unit, the display form of basic templates carries out corresponding adjustment, wherein system is stored with the adjustment rule of preset display form Then.
After obtaining target template, in the present embodiment, chosen from preset table library wait match according to the configuration information Parameter is set, to carry out the filling of target template
Step S03 fills the parameter to be configured into the target template, to obtain document to be updated.
According to configuration information, the parameter to be configured is filled into the target template, to obtain document to be updated.
Specifically, described to fill the parameter to be configured into the target template, to obtain document step to be updated Include:
Step A1 obtains the cell attribute of each unit in the target template, holds for the cell attribute of each unit Row following steps:
In the present embodiment, the cell attribute of each unit in target template is obtained, which refers to unit Filled object attribute.
Step A2 chooses the target table for having preset association relationship with the cell attribute from preset table library, with Determine the filling relationship of the corresponding unit of the cell attribute with parameter to be configured in table;
Different types of parameter is stored in table in preset table library, and different types of parameter is ordered into storage , for example document is the relevant document of bank's class, then specific Bank Name is stored in the A table in document preset table library as handed over Logical bank either safety bank etc., further includes the tax rate in the B table in document preset table library other than Bank Name parameter Such as the Individual Income Tax either consumption tax or business tariff parameter,
The target table that there is preset association relationship with the cell attribute is chosen from preset table library, namely in this reality It applies in example, the unit in each table stored in preset table library and target template has preset association relationship, it is thus possible to Determine the filling relationship of the corresponding unit of the cell attribute with parameter to be configured in table.
Step A3 fills the parameter to be configured into the corresponding unit with filling relationship, to obtain list to be updated Card.
The parameter to be configured is filled into the corresponding unit with filling relationship, to obtain document to be updated.
In the present embodiment, it realizes and automatically generates document version, further improve in document renewal process Update efficiency.
Further, the present invention provides another embodiment of document method for updating edition, in this embodiment, described by institute It states the document to be updated being stored in default base library to copy in the target environment, and in the target environment described in activation Document to be updated, to complete to include: after the update step of the document to be updated
Step B1, if detect that the document to be updated is completed to update, the more new command corresponding requests side Xiang Suoshu is sent Complete prompting message, the version number completed in prompting message including the document to be updated, deadline, target environment letter Breath.
In the present embodiment, if detect that the document to be updated is completed to update, Xiang Suoshu more new command corresponding requests Side is sent completely prompting message, the version number completed in prompting message including the document to be updated, deadline, target Environmental information so that requesting party confirms or knows, and provides convenience for subsequent query.
Referring to Fig. 3, Fig. 3 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Document version updating equipment of the embodiment of the present invention can be PC, be also possible to smart phone, tablet computer, e-book Reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard Audio level 3) player, MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert Compression standard audio level 3) terminal devices such as player, portable computer.
As shown in figure 3, the document version updating equipment may include: processor 1001, such as CPU, memory 1005 leads to Believe bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between processor 1001 and memory 1005.Storage Device 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as disk Memory.Memory 1005 optionally can also be the storage equipment independently of aforementioned processor 1001.
Optionally, which can also include target user interface, network interface, camera, RF (Radio Frequency, radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..Target user interface may include Display screen (Display), input unit such as keyboard (Keyboard), optional target user interface can also include having for standard Line interface, wireless interface.Network interface optionally may include standard wireline interface and wireless interface (such as WI-FI interface).
It will be understood by those skilled in the art that document version updating device structure shown in Fig. 3 is not constituted to document The restriction of version updating equipment may include perhaps combining certain components or different than illustrating more or fewer components Component layout.
As shown in figure 3, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module and document version updating program.Operating system is to manage and control document version updating device hardware and software resource Program, support the operation of document version updating program and other softwares and/or program.Network communication module is for realizing depositing Communication between the 1005 each component in inside of reservoir, and communicated between other hardware and softwares in document version updating equipment.
In document version updating equipment shown in Fig. 3, processor 1001 is for executing the list stored in memory 1005 The step of demonstrate,proving version updating program, realizing document method for updating edition described in any of the above embodiments.
Document version updating equipment specific embodiment of the present invention and above-mentioned each embodiment of document method for updating edition are basic Identical, details are not described herein.
The present invention also provides a kind of document version updating device, the document version updating device includes:
First obtains module, for when detecting the instruction of document version updating, according to the more new command from default list Document to be updated is chosen in card database, and the document to be updated is stored in default base library;
Second obtains module, for obtaining configuration information entrained in the more new command, wherein the configuration information In include the document to be updated target environment;
Replication module, for the document to be updated being stored in default base library to be copied in the target environment, And the document to be updated is activated in the target environment, to complete the update of the document to be updated.
Document version updating device specific embodiment of the present invention and above-mentioned each embodiment of document method for updating edition are basic Identical, details are not described herein.
The present invention provides a kind of readable storage medium storing program for executing, the readable storage medium storing program for executing is stored with one or more than one journey Sequence, the one or more programs can also be executed by one or more than one processor for realizing above-mentioned The step of document method for updating edition described in one.
Readable storage medium storing program for executing specific embodiment of the present invention and above-mentioned each embodiment of document method for updating edition are essentially identical, Details are not described herein.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field similarly includes in patent process range of the invention.

Claims (10)

1. a kind of document method for updating edition, which is characterized in that the document method for updating edition includes:
When detecting the instruction of document version updating, list to be updated is chosen from default document database according to the more new command Card, and the document to be updated is stored in default base library;
Obtain configuration information entrained in the more new command, wherein include the document to be updated in the configuration information Target environment;
The document to be updated being stored in default base library is copied in the target environment, and in the target environment The document to be updated is activated, to complete the update of the document to be updated.
2. document method for updating edition as described in claim 1, which is characterized in that
It is described the document to be updated being stored in default base library is copied into step in the target environment to include:
Obtain the first address of the default Ji Ku and the second address of the target environment;
The preset reproducer section to be done for the document reproduction process to be updated is obtained, by pre- first address It fills to the source address region of the reproducer section to be done;
Second address is filled to the destination address region of the reproducer section to be done;
Based on the source address region and the destination address region after the completion of filling, it is stored in described in default base library Document to be updated copy in the target environment.
3. document method for updating edition as described in claim 1, which is characterized in that described to detect that document version updating refers to When enabling, document to be updated is chosen from default document database according to the more new command, and the document to be updated is saved Step includes: in default base library
When detecting the instruction of document version updating, preset query SQL sentence and the first sequence SQL statement are called;
It is uploaded out of selection in the default document database in the past preset time period according to the query SQL sentence to be updated Document, and the document to be updated is stored in default base library;
According to the first sequence SQL statement are carried out to the multiple documents to be updated being stored in default base library the generation time First sequence of descending, to carry out the orderly update of the document to be updated according to first sequence.
4. document method for updating edition as described in claim 1, which is characterized in that described to be stored in described in default base library Document to be updated copy in the target environment, and the document to be updated is activated in the target environment, to complete The update step of the document to be updated includes:
The document to be updated being stored in default base library is copied in the target environment, and calls the target environment In second sequence SQL statement;
The document to be updated and the document to be updated are corresponded to the document of legacy version according to the second sequence SQL statement Carry out the second sequence of time descending;
According to second sequence, effective status is set by the document to be updated, and the document to be updated corresponded to old The document of version is set as invalid state, to complete the update of the document to be updated.
5. document method for updating edition as described in claim 1, which is characterized in that described to detect that document version updating refers to When enabling, include: before choosing document step to be updated in default document database according to the more new command
When detecting that document version generates instruction, configuration information entrained in the generation instruction is obtained;
Target template is chosen from preset table library according to the document release type in the configuration information, and according to the configuration Information chooses parameter to be configured from preset table library;
The parameter to be configured is filled into the target template, to obtain document to be updated.
6. document method for updating edition as described in claim 1, which is characterized in that it is described by the parameter to be configured fill to In the target template, include: to obtain document step to be updated
The cell attribute for obtaining each unit in the target template executes following steps for the cell attribute of each unit:
The target table that there is preset association relationship with the cell attribute is chosen, from preset table library with the determination unit The filling relationship of the corresponding unit of attribute and parameter to be configured in table;
The parameter to be configured is filled into the corresponding unit with filling relationship, to obtain document to be updated.
7. document method for updating edition as described in claim 1, which is characterized in that described to be stored in described in default base library Document to be updated copy in the target environment, and the document to be updated is activated in the target environment, to complete Include: after the update step of the document to be updated
If detect that the document to be updated is completed to update, the more new command corresponding requests side Xiang Suoshu is sent completely prompting letter Breath, the version number completed in prompting message including the document to be updated, deadline, target environment information.
8. a kind of document version updating device, which is characterized in that the document version updating device includes:
First obtains module, for when detecting the instruction of document version updating, according to the more new command from default document number According to choosing document to be updated in library, and the document to be updated is stored in default base library;
Second obtains module, for obtaining configuration information entrained in the more new command, wherein wrap in the configuration information Include the target environment of the document to be updated;
Replication module, for the document to be updated being stored in default base library to be copied in the target environment, and The document to be updated is activated in the target environment, to complete the update of the document to be updated.
9. a kind of document version updating equipment, which is characterized in that the document version updating equipment includes: memory, processor, Communication bus and the document version updating program being stored on the memory,
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the document version updating program, to realize as of any of claims 1-7 The step of document method for updating edition.
10. a kind of readable storage medium storing program for executing, which is characterized in that document version updating program is stored on the readable storage medium storing program for executing, Such as document version updating of any of claims 1-7 is realized when the document version updating program is executed by processor The step of method.
CN201910443375.8A 2019-05-22 2019-05-22 Document method for updating edition, device, equipment and readable storage medium storing program for executing Pending CN110287204A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910443375.8A CN110287204A (en) 2019-05-22 2019-05-22 Document method for updating edition, device, equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910443375.8A CN110287204A (en) 2019-05-22 2019-05-22 Document method for updating edition, device, equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110287204A true CN110287204A (en) 2019-09-27

Family

ID=68002689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910443375.8A Pending CN110287204A (en) 2019-05-22 2019-05-22 Document method for updating edition, device, equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN110287204A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111680483A (en) * 2020-05-22 2020-09-18 平安普惠企业管理有限公司 Document template updating method and device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815317A (en) * 2016-12-23 2017-06-09 中国银联股份有限公司 A kind of data copy method and system based on disparate databases
CN107783770A (en) * 2017-08-25 2018-03-09 上海壹账通金融科技有限公司 Page configuration update method, device, server and medium
CN107861926A (en) * 2016-12-28 2018-03-30 平安科技(深圳)有限公司 Document template configuration method and device
CN109343881A (en) * 2018-10-11 2019-02-15 珠海格力电器股份有限公司 Firmware upgrading and updating method and device and air conditioner

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106815317A (en) * 2016-12-23 2017-06-09 中国银联股份有限公司 A kind of data copy method and system based on disparate databases
CN107861926A (en) * 2016-12-28 2018-03-30 平安科技(深圳)有限公司 Document template configuration method and device
CN107783770A (en) * 2017-08-25 2018-03-09 上海壹账通金融科技有限公司 Page configuration update method, device, server and medium
CN109343881A (en) * 2018-10-11 2019-02-15 珠海格力电器股份有限公司 Firmware upgrading and updating method and device and air conditioner

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111680483A (en) * 2020-05-22 2020-09-18 平安普惠企业管理有限公司 Document template updating method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN109725933B (en) Big data document generation method, device, equipment and computer readable storage medium
US9779153B2 (en) Data transfer between storage systems using data fingerprints
CN101964820B (en) Method and system for keeping data consistency
CN109446570B (en) Business process display method, device, computer equipment and storage medium
CN109863474A (en) Update migratory system and method
CN112685117A (en) System language internationalization maintenance method, device and computer readable storage medium
CN106649600A (en) Way, device and system of migrating file permissions
CN113377763B (en) Database table switching method and device, electronic equipment and computer storage medium
CN101093477B (en) Data process method for electronic form, and data process system for electronic form
US20200379982A1 (en) Information processing system and method of controlling information processing system
CN115794641A (en) Method, device and equipment for making number based on business process and storage medium
CN113377458B (en) Plug-in management method and device, electronic equipment and storage medium
CN110287204A (en) Document method for updating edition, device, equipment and readable storage medium storing program for executing
CN114386853A (en) Data auditing processing method, device and equipment based on universal auditing model
CN109739539A (en) Application dissemination method, device, equipment and the storage medium of Cross-environment
CN110235108A (en) A kind of patch program check method, terminal device and computer readable storage medium
CN102073541B (en) Data access method and mobile terminal
CN114201207B (en) Resource synchronization method and device, electronic equipment and storage medium
CN113741931B (en) Software upgrading method and device, electronic equipment and readable storage medium
CN100358302C (en) Method for testing network element interface by state apparatus
CN116048609A (en) Configuration file updating method, device, computer equipment and storage medium
CN109451064A (en) Offline implementation method, device, computer equipment and the storage medium of web application
CN108845857A (en) A kind of icon management method and device based on cloud platform
CN113254455A (en) Dynamic configuration method and device of database, computer equipment and storage medium
CN112579117A (en) Data upgrading method and device

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
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20240628