A kind of software function treating method and apparatus
Technical field
The present invention relates to computer realm, in particular to a kind of software function treating method and apparatus.
Background technology
At present, software plays huge effect in life, brings social progress, the release of productivity, produces effect
The significant increase of rate, the fast development with Software Industry is constantly ripe, and when doing software project, the function of software needs basis
The demand of client is modified, to meet the needs to software function of client.
In correlation technique, all front end user pages of traditional software, rear end sequential operation logic, the number of database purchase
It is entirely to be write according to customer demand according to structure, and the page of corresponding function, logic, data structure complete to develop in function
After be already affixed to code, in database.
During actual development, client can be modified to software come requirement according to the change of oneself demand at any time,
Development process is modified needs the demand according to client to change code, modifies again, be equivalent to after the completion of software development
Again develop.Therefore, resulting in can not be in time to delivery to customer software, when all bringing also to software developer and client simultaneously
Between, experience and cost on waste.
Content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of software function treating method and apparatus, to improve
Modification speed when carrying out software function change, can also save software simultaneously and opens timely to delivery to customer exploration project
Time, experience and the cost sent out.
In a first aspect, embodiments providing a kind of software function processing method, methods described includes:
When getting the call instruction of software project, call and parse the joining of pre-set business function of being stored with database
Put tables of data, wherein, described call instruction carries business function to be called;
When determining the configuration data table having the corresponding business function of described call instruction in database, to described business function
Configuration data table processed, the configuration data table after being processed;
According to the corresponding relation of the described configuration data table after default process and business datum table, after described process
The corresponding content with business datum table of configuration data table is updated.
In conjunction with a first aspect, embodiments providing the first possible embodiment of first aspect, wherein, when
Get software project call instruction when, call and parse the configuration data table of pre-set business function of being stored with database,
Including:
When getting the call instruction of software project, by interface interchange engine;
Content in the described configuration data table of storage in described database is parsed by engine;
Judge in database, whether to set up the configuration data table of the corresponding business function of described call instruction;
If it is not, then setting up configuration data table and the business datum of the corresponding business function of described call instruction in database
Table.
In conjunction with a first aspect, the possible embodiment of the second that embodiments provides first aspect, wherein, when
When determining the configuration data table having described call instruction to correspond to business function in database, the configuration data to described business function
Table is processed, the configuration data table after being processed, including:
When determining that in database, foundation has the configuration data table that described call instruction corresponds to business function, judge described industry
Whether the demand of business function changes, and wherein, the demand of described business function includes:The interactive interface of business function, business function
Rule, the flow process of business function and business function information;
If it is, according to the demand of business function after change, modifying to the configuration data table of described business function,
Configuration data table after being processed.
In conjunction with a first aspect, embodiments providing the third possible embodiment of first aspect, wherein, root
According to the corresponding relation of the described configuration data table after default process and business datum table, to the configuration data table after described process
Corresponding and business datum table content is updated table, including:
Judge whether described business function has Added Business data;
If it is, according to the described configuration data table after default process and the corresponding relation of business datum table, determining
Need the business datum table updating the data;
Described Added Business data is written in the business datum table needing to update the data, updates the data described in storehouse
Business datum table.
In conjunction with a first aspect, embodiments providing the 4th kind of possible embodiment of first aspect, wherein, count
According to the configuration data table setting up the corresponding business function of described call instruction in storehouse and business datum table, including:
According to the demand of the corresponding business function of described call instruction, generate configuration data table;
According to the business datum of the corresponding business function of described call instruction, generate business datum table, and build in database
Found the corresponding relation of described configuration data table and corresponding business datum table.
Second aspect, embodiments provides a kind of software function processing meanss, and described device includes:
Configuration data table calls parsing module:For when getting the call instruction of software project, calling and parsing number
According to the configuration data table of the pre-set business function that is stored with storehouse, wherein, described call instruction carries business function to be called;
Configuration data table handing module, for when the configuration having the corresponding business function of described call instruction in determination database
During tables of data, the configuration data table of described business function is processed, the configuration data table after being processed;
Business datum table update module, for according to the described configuration data table after default process and business datum table
Corresponding relation, is updated to the corresponding content with business datum table of configuration data table after described process.
In conjunction with second aspect, embodiments provide the first possible embodiment of second aspect, wherein, institute
Stating configuration data table calls parsing module to include:
Engine calling unit, for when getting the call instruction of software project, by interface interchange engine;
Configuration data table resolution unit, for being parsed in the described configuration data table of storage in described database by engine
Content;
Business function judging unit, for judging whether set up the corresponding business function of described call instruction in database
Configuration data table;
Tables of data sets up unit, for when the judged result of described business function judging unit is no, in database
Set up configuration data table and the business datum table of the corresponding business function of described call instruction.
In conjunction with second aspect, embodiments provide the possible embodiment of the second of second aspect, described join
Put data table handing module to include:
Business function changes judging unit, determines to set up have described call instruction to correspond to business function in database for working as
Configuration data table when, judge whether the demand of described business function changes, wherein, the demand of described business function includes:Industry
The interactive interface of business function, the information of the rule of business function, the flow process of business function and business function;
Configuration data table changes unit, when the judged result changing judging unit for described business function is to be, according to
The demand of business function after change, modifies to the configuration data table of described business function, the configuration data after being processed
Table.
In conjunction with second aspect, embodiments provide the third possible embodiment of second aspect, described industry
Business tables of data update module includes:
Added Business data determining unit, for judging whether described business function has Added Business data;
Business datum table determining unit, for described Added Business data determining unit judged result be when, root
According to the described configuration data table after default process and the corresponding relation of business datum table, determine the business number needing to update the data
According to table;
Business datum table updating block, for being written to, by described Added Business data, the business datum needing to update the data
In table, update the data the described business datum table in storehouse.
In conjunction with second aspect, embodiments provide the 4th kind of possible embodiment of second aspect, described number
Include according to the unit that table is set up:
Configuration data table generates subelement, for the demand according to the corresponding business function of described call instruction, generates configuration
Tables of data;
Business datum table generates subelement, for the business datum according to the corresponding business function of described call instruction, generates
Business datum table, and set up described configuration data table and the corresponding relation of corresponding business datum table in database.
A kind of software function treating method and apparatus provided in an embodiment of the present invention, by obtain software project call finger
The configuration data table of the pre-set business function that is stored with database is called and is parsed in order, when determining in database there is call instruction pair
Answer business function configuration data table when, the configuration data table of business function is processed, according to default process after join
Put the corresponding relation of tables of data and business datum table, the content of business datum table is updated, soft in exploitation with prior art
During part, the page of corresponding function, logical sum data structure etc. are fixed in code database and compare, this kind of method can be real
The now quick modification to developed software, with the change met customer need, saves substantial amounts of time, manpower and cost.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be attached to use required in embodiment
Figure is briefly described it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this
A little accompanying drawings obtain other related accompanying drawings.
The flow chart that Fig. 1 shows a kind of software function processing method that the embodiment of the present invention 1 is provided;
Fig. 2 shows a kind of structural representation of software function processing meanss that the embodiment of the present invention 1 is provided.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Generally exist
The assembly of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged with various different configurations and design herein.Cause
This, be not intended to limit claimed invention to the detailed description of the embodiments of the invention providing in the accompanying drawings below
Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment being obtained on the premise of going out creative work, broadly falls into the scope of protection of the invention.
In view of in correlation technique, all front end user pages of traditional software, rear end sequential operation logic, data stock
The data structure of storage is entirely to be write according to customer demand, and the page of corresponding function, logic, data structure are complete in function
Be already affixed to code after becoming exploitation, in database.During actual development, client at any time can be according to the change of oneself demand
Carry out requirement software is modified, being modified in development process needs the demand according to client to change code, in software development
After the completion of modify again, be equivalent to and again develop.Therefore, result in also can not give soft in time to delivery to customer software simultaneously
Part developer and client all bring the waste on time, experience and cost.Based on this, embodiments provide a kind of soft
Part function processing method and device, are described below by embodiment.
Embodiment 1
The executive agent of the software function processing method that the present embodiment proposes is computer or server etc., according to business
The change of function, is updated to the configuration data table in database and/or business datum table, thus realizing the complete of software function
Kind, improve the speed of software upgrading or modification, save time, manpower and cost.
Referring to Fig. 1, the present embodiment provides a kind of software function list processing method, comprises the following steps:
Step 102, when getting the call instruction of software project, call and parse in database the pre-set business that is stored with
The configuration data table of function, wherein, call instruction carries business function to be called.
Step 102 specifically includes step (1) to step (4):
(1) when getting the call instruction of software project, by interface interchange engine;
(2) content in the configuration data table of storage in database is parsed by engine;
(3) judge in database, whether to set up the configuration data table of the corresponding business function of call instruction, in judged result
For no when, execution step (4);
(4) configuration data table and the business datum table of the corresponding business function of call instruction are set up in database.
Step (4) also includes:According to the demand of the corresponding business function of call instruction, generate configuration data table;According to calling
The business datum of the corresponding business function of instruction, generates business datum table, and sets up configuration data table and corresponding in database
The corresponding relation of business datum table.The foundation of this kind of corresponding relation can will be accurate for the data of function corresponding in configuration data table
Be added in corresponding business datum table, realize accurately call.
Function to be developed is divided into the modules such as system interface, rule, flow process, information by software project according to demand, different
Business function may belong to same type functional module, and a business function may comprise several functions module, and software project can
So that engine is called by modes such as API, SDK, the content in configuration data table is parsed by engine, judges whether build in database
The vertical configuration data table having the corresponding business function of call instruction, without foundation, then sets up corresponding configuration data table and industry
Business tables of data, and configuration data table and business datum table are associated binding.Wherein, engine is the general designation of resolver, each
Functional module correspond to an engine, the such as functional module such as system interface, rule, flow process, information correspondence system interface respectively
Engine, regulation engine, flow engine, Information Engine etc..Engine can with analysis request be modification business function demand corresponding
Modification allocation list, or additions and deletions change and look into business datum, and the data center operating lower floor is gone thus operating industry according to analysis result
Business tables of data, peration data modeling are thus operation configuration data table.
Step 104, when determining the configuration data table having the corresponding business function of call instruction in database, to business function
Configuration data table processed, the configuration data table after being processed.
Step 104 specifically includes step (1) to step (2):
(1) when determining that in database, foundation has the configuration data table that call instruction corresponds to business function, judge business work(
Whether the demand of energy changes, and wherein, the demand of business function includes:The interactive interface of business function, the rule of business function, industry
The business flow process of function and the information of business function, then when judged result is to be, execution step (2);
(2) demand according to business function after change, modifies to the configuration data table of business function, after being processed
Configuration data table.
When the modification to software operation function establishes corresponding function in configuration data table in database, then only
Configuration data table corresponding business datum table is modified, newly-increased business datum content is added to corresponding business datum
In table, wherein, configuration data table includes:Functional type, the title of functional configuration, the concrete configuration of function and business datum
The corresponding relation of table;Business datum table includes:With the corresponding relation of configuration data table and by data modeling according to business need
Seek other fields of foundation.
Step 106, the corresponding relation according to the configuration data table after default process and business datum table, after processing
The corresponding content with business datum table of configuration data table is updated.
Step 106 specifically includes step (1) to step (3):
(1) judge whether business function has Added Business data, when judged result is to be, execution step (2);
(2) corresponding relation according to the configuration data table after default process and business datum table, determines and needs to update number
According to business datum table;
(3) Added Business data is written in the business datum table needing to update the data, updates the data the business in storehouse
Tables of data.
When business function has corresponding business datum to carry out newly-increased, corresponding with business datum table according to configuration data table
Newly-increased business datum is written in business datum table relation, realizes the increase of business function.
In sum, call and parse the pre-set business work(that is stored with database by obtaining the call instruction of software project
The configuration data table of energy, when determining the configuration data table having the corresponding business function of call instruction in database, to business function
Configuration data table processed, according to the corresponding relation of configuration data table and business datum table after default process, to industry
The content of business tables of data is updated, with prior art when developing software by the page of corresponding function, logical sum data structure
Compare etc. being fixed in code database, this kind of method is capable of the quick modification to developed software, to meet client
The change of demand, saves substantial amounts of time, manpower and cost.
Embodiment 2
Referring to Fig. 2, the present embodiment provides a kind of software function processing meanss, for executing above-mentioned software function process side
Method, this device includes:
Configuration data table calls parsing module 20:For when getting the call instruction of software project, calling and parsing
The configuration data table of the pre-set business function that is stored with database, wherein, call instruction carries business function to be called;
Configuration data table handing module 21, for when the configuration number having the corresponding business function of call instruction in determination database
During according to table, the configuration data table of business function is processed, the configuration data table after being processed;
Business datum table update module 22, for right according to configuration data table and the business datum table after default process
Should be related to, the corresponding content with business datum table of configuration data table after processing is updated.
Configuration data table calls parsing module 20 to include:
Engine calling unit, for when getting the call instruction of software project, by interface interchange engine;
Configuration data table resolution unit, for parsing the content in the configuration data table of storage in database by engine;
Business function judging unit, for judging whether set up the configuration of the corresponding business function of call instruction in database
Tables of data;
Tables of data sets up unit, for when the judged result of business function judging unit is no, setting up in database
The configuration data table of the corresponding business function of call instruction and business datum table.
Configuration data table handing module 21 includes:
Business function changes judging unit, determines to set up have joining of the corresponding business function of call instruction in database for working as
When putting tables of data, judge whether the demand of business function changes, wherein, the demand of business function includes:The interaction of business function
Interface, the information of the rule of business function, the flow process of business function and business function;
Configuration data table changes unit, when the judged result changing judging unit for business function is to be, according to change
The demand of business function afterwards, modifies to the configuration data table of business function, the configuration data table after being processed.
Business datum table update module 22 includes:
Added Business data determining unit, for judging whether business function has Added Business data;
Business datum table determining unit, for when the judged result of Added Business data determining unit is for being, according to pre-
If process after configuration data table and business datum table corresponding relation, determine the business datum table needing to update the data;
Business datum table updating block, for being written to, by Added Business data, the business datum table needing to update the data
In, update the data the business datum table in storehouse.
The unit that tables of data is set up includes:
Configuration data table generates subelement, for the demand according to the corresponding business function of call instruction, generates configuration data
Table;
Business datum table generates subelement, for the business datum according to the corresponding business function of call instruction, generates business
Tables of data, and set up configuration data table and the corresponding relation of corresponding business datum table in database.
In sum, the present embodiment provide a kind of software function processing meanss, by obtain software project call finger
The configuration data table of the pre-set business function that is stored with database is called and is parsed in order, when determining in database there is call instruction pair
Answer business function configuration data table when, the configuration data table of business function is processed, according to default process after join
Put the corresponding relation of tables of data and business datum table, the content of business datum table is updated, soft in exploitation with prior art
During part, the page of corresponding function, logical sum data structure etc. are fixed in code database and compare, this kind of method can be real
The now quick modification to developed software, with the change met customer need, saves substantial amounts of time, manpower and cost.
The computer program of the software function processing method that the embodiment of the present invention is provided, including storing program generation
The computer-readable recording medium of code, the instruction that program code includes can be used for executing the method in previous methods embodiment, tool
Body is realized can be found in embodiment of the method, will not be described here.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,
Device and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should described be defined by scope of the claims.