CN105205064B - Request data, the method and device for modifying data and detecting data - Google Patents

Request data, the method and device for modifying data and detecting data Download PDF

Info

Publication number
CN105205064B
CN105205064B CN201410268087.0A CN201410268087A CN105205064B CN 105205064 B CN105205064 B CN 105205064B CN 201410268087 A CN201410268087 A CN 201410268087A CN 105205064 B CN105205064 B CN 105205064B
Authority
CN
China
Prior art keywords
attribute
value
field data
configuration center
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410268087.0A
Other languages
Chinese (zh)
Other versions
CN105205064A (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.)
Advanced New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410268087.0A priority Critical patent/CN105205064B/en
Publication of CN105205064A publication Critical patent/CN105205064A/en
Application granted granted Critical
Publication of CN105205064B publication Critical patent/CN105205064B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application involves a kind of request data, the method and device of modification data and detecting data, the method for request data includes: that FIELD Data is stored in configuration center, and FIELD Data is for being requested, modifying or detecting;When the value of first time request attribute, judge whether the attribute of request belongs to the attribute of configuration center;If it is the value of the attribute of far call request, and the value of the attribute of request is buffered in local;When requesting the value of attribute of request again, in the value of the attribute of local acquisition request.The application by directly obtaining response data from local, since improve the processing speed of system;Modified value can be obtained from local;Ensure in the system reform or escalation process, the attribute data of configuration center is fixed and invariable;After the completion of the system reform or upgrading, configuration center can be updated by having new FIELD Data and its attribute.

Description

Request data, the method and device for modifying data and detecting data
Technical field data
This application involves computer field data, and in particular to a kind of request data, the side for modifying data and detecting data Method and device.
Background technique
The FIELD Data attribute data of preparatory analysis system, carries out in configuration center and is pre-configured with, and configures in configuration center The composition of good FIELD Data sets the structural model of Various types of data, then request and modification in data by preparatory configuration It is in the process that guiding goes management data with the data structure.
Such as: the FIELD Data of analysis fiduciary loan operation system in advance, by credit application area data, credit field number According to, draw application area data, contract field data, provide a loan and FIELD Data and draw FIELD Data, these changeless necks Numeric field data and its attribute data are stored in configuration center, have configured the composition of FIELD Data in configuration center.With contract field number It include contract by the contract field data configuration application area data and contract field data associated with it drawn for It numbers, draw application numbers, product number, main body number and multiple attributes.
Every time in the value of foreground system request querying attributes, require to call category corresponding with request from Server remote Property value, at this point, the performance and response speed of system can only be improved by obtaining the interaction of module, processing module and configuration center Degree.
Due in the value of foreground system request querying attributes, requiring to call from Server remote corresponding with request every time Attribute value.So the existing technology has at least the following problems: first, when request data, cannot directly it be obtained from local The processing speed of response data, system is slow.Second, modified data cannot be directly obtained from local.Third cannot ensure In the system reform or escalation process, the attribute data of configuration center is fixed and invariable.4th, in the system reform or upgrade Cheng Hou cannot update new FIELD Data and its attribute to configuration center.
Summary of the invention
The method and device that the purpose of the application is to provide a kind of request data, modifies data and detecting data, to solve In the prior art, when request data, response data cannot be directly obtained from local;It cannot be directly after obtaining modification in local Data;It cannot ensure in the system reform or escalation process, the attribute data of configuration center is fixed and invariable;Change in system After the completion of making or upgrading, new FIELD Data and its attribute cannot be updated to configuration center.
To achieve the above object, the application first aspect provides a kind of method of request data, which comprises will FIELD Data is stored in configuration center, and the FIELD Data includes that FIELD Data is numbered, associated FIELD Data is numbered and multiple Attribute, the FIELD Data is for being requested, modifying or detecting;When the value of first time request attribute, the request is judged Whether attribute belongs to the attribute of configuration center;If it is the attribute for belonging to configuration center, then the attribute of request described in far call Value, and the value of the attribute of the request is buffered in local;When requesting the value of attribute of the request again, obtained locally Take the value of the attribute of the request;If being not belonging to the attribute of configuration center, the value of the attribute of request described in far call.
The application second aspect provides a kind of method for modifying data, which comprises is stored in FIELD Data Configuration center, the FIELD Data include FIELD Data number, associated FIELD Data number and multiple attributes, the field number According to for being requested, modifying or detecting;When the value of attribute is modified to the first value, judge whether the attribute belongs in configuration The attribute of the heart;If it is the attribute for belonging to configuration center, then judge the attribute with the presence or absence of local;It is local if it is existing, Then judge whether the value in the presence of the local attribute is empty;If for sky, and first value and exist local it is described The value of attribute is not identical, then the attribute is sent to arrangement for detecting;If there is no locally or in the presence of local for the attribute The value of the attribute be sky, then the value of attribute described in far call, and the value of attribute described in far call is buffered in local.
The application third aspect provides a kind of method of detecting data, which comprises is stored in FIELD Data Configuration center, the FIELD Data include FIELD Data number, associated FIELD Data number and multiple attributes, the field number According to for being requested, modifying or detecting;When requesting or modifying the value of attribute, judge whether the attribute belongs to configuration center Attribute;If it is the attribute for belonging to configuration center, then whether the value for detecting the attribute is constant;If the value of the attribute changes , then the attribute is removed from the configuration center;If being not belonging to the attribute of configuration center, the value of the attribute is recorded Change conditions;If the value of the attribute is constant always, the attribute is updated to the configuration center.
The application fourth aspect provides a kind of device of request data, and described device includes: configuration center, is used for high-ranking military officer Numeric field data is stored in configuration center, and the FIELD Data includes FIELD Data number, associated FIELD Data number and multiple categories Property, the FIELD Data is for being requested, modifying or detecting;Judgment module, for judging when the value of first time request attribute Whether the attribute of the request belongs to the attribute of configuration center;First processing module, for if it is the category for belonging to configuration center Property, then the value of the attribute of request described in far call, and the value of the attribute of the request is buffered in local;Module is obtained, is used In when requesting the value of attribute of the request again, the value of the attribute of the request is obtained in local;Second processing module is used If in the attribute for being not belonging to configuration center, the value of the attribute of request described in far call.
The 5th aspect of the application provides a kind of device for modifying data, and described device includes: configuration center, is used for high-ranking military officer Numeric field data is stored in configuration center, and the FIELD Data includes FIELD Data number, associated FIELD Data number and multiple categories Property, the FIELD Data is for being requested, modifying or detecting;First judgment module is modified to first for the value when attribute When value, judge whether the attribute belongs to the attribute of configuration center;Second judgment module, for if it is belonging to configuration center Attribute then judges the attribute with the presence or absence of local;Third judgment module, for if it is existing locally, then judging there is this Whether the value of the attribute on ground is empty;Third processing module, if for being not sky, and first value and exist local The value of the attribute is not identical, then the attribute is sent to arrangement for detecting;Fourth processing module, if not for the attribute In the presence of local or to there is the value of the local attribute be sky, then the value of attribute described in far call, and by far call institute The value for stating attribute is buffered in local.
The 6th aspect of the application provides a kind of device of detecting data, and described device includes: configuration center, is used for high-ranking military officer Numeric field data is stored in configuration center, and the FIELD Data includes FIELD Data number, associated FIELD Data number and multiple categories Property, the FIELD Data is for being requested, modifying or detecting;4th judgment module, for when request or modification attribute value when, Judge whether the attribute belongs to the attribute of configuration center;Detecting module, for if it is the attribute for belonging to configuration center, then detecing Whether the value for surveying the attribute is constant;5th processing module, if the value for the attribute varies by, by the attribute from The configuration center removes;Logging modle records the change of the value of the attribute if the attribute for being not belonging to configuration center Emotionally condition;Collection module updates the attribute to the configuration center if the value for the attribute is constant always.
The method and device that the application provides a kind of request data, modifies data and detecting data, when request data, directly Response data is obtained from local, since improve system processing speed;Can modified value directly be obtained from local;Ensure In the system reform or escalation process, the attribute data of configuration center is fixed and invariable;After the completion of the system reform or upgrading, Configuration center can be updated by having new FIELD Data and its attribute.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the application Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the FIELD Data structural schematic diagram of the configuration center of the embodiment of the present application;
Fig. 2 is the method flow diagram of the request data of the embodiment of the present application one;
Fig. 3 is the method flow diagram of the modification data of the embodiment of the present application two;
Fig. 4 is the method flow diagram of the detecting data of the embodiment of the present application three;
Fig. 5 is the schematic device of the request data of the embodiment of the present application four;
Fig. 6 is the schematic device of the modification data of the embodiment of the present application five;
Fig. 7 is the schematic device of the detecting data of the embodiment of the present application six.
Specific embodiment
Below by drawings and examples, the technical solution of the application is described in further detail.
In the application, due in foreground system request data, being required every time from background system far call and request The corresponding response data of data, reduces the processing speed of system.Such as: every time in foreground system request contract field data When data, response data corresponding with the request data of contract field data from background system far call is required, is reduced The response speed of system.In order to improve the processing speed of system, present applicant proposes a kind of methods of request data, for the first time When requesting the data of FIELD Data, response data corresponding with the data of the request FIELD Data is buffered in local, when again When requesting the data of the FIELD Data, the response data is directly obtained from local, since improve response speed, to improve and be The processing speed of system.
The application scenarios of the application are introduced first, and the method for the request data of the application is real based on changeless data Existing, it include foreground system and background system in operation system, foreground system such as loan customer end, background system for example take Business device.Such as: fiduciary loan operation system mainly provides the service of fiduciary loan for client, FIELD Data within the system Have: credit application area data, credit FIELD Data, draw application area data, contract field data, loan FIELD Data, With amount FIELD Data and FIELD Data can be drawn;Each FIELD Data is unique identification with its number, such as credit application is compiled Number, credit number, draw application numbers etc..Client gets a bank loan ten Wan Yuan, there is 6 in the period that client gets a bank loan The maintenance of changeless FIELD Data has changeless data value in this 6 FIELD Datas, i.e., becomes non-empty from null value The data value just no longer to change later, therefore, there are configuration center by this 6 FIELD Datas for background system, such as Fig. 1 institute Show, is the FIELD Data structural schematic diagram of the configuration center of the embodiment of the present application.Client has submitted at loan customer end and awards first Letter application, server audit credit after credit application, and client can propose to draw application after credit, can only be generated with application every time After one contract, bank just lends client, and client can just draw.Therefore, the incidence relation of every field data is also stable , can be associated under a credit it is multiple draw application, one is drawn application and can be associated with a contract.For the first time in foreground system When requesting the loan body data in contract field data, from background system server far call and request contract field data The corresponding response data of data after, response data is buffered in local, when again request contract field data in loan master When volume data, the response data is directly obtained from local, since improve response speed, to improve the processing speed of system.
Fig. 2 is the method flow diagram of the request data of the embodiment of the present application one.The present embodiment is suitable for operation system Changeless data carry out after being buffered in local, request the data again.
As shown in Fig. 2, the method for the application request data specifically includes the following steps:
FIELD Data is stored in configuration center by step 101, configuration center, and the FIELD Data includes that FIELD Data is compiled Number, associated FIELD Data number and multiple attributes, the FIELD Data is for being requested, modify or detect.
FIELD Data refers to the entity object safeguarded in operation system, has multiple fields data, each field in configuration center Data have FIELD Data number, are associated between some FIELD Datas;Attribute refers to the feature of description entity object, FIELD Data It is used for including FIELD Data number, with the associated FIELD Data number of the FIELD Data and multiple attributes, the FIELD Data Requested, modification or detecting.In configuration center, the value string representation of FIELD Data title and attribute, FIELD Data number With associated FIELD Data number digital representation.
Such as: in fiduciary loan operation system: credit application area data, draw application area number at credit FIELD Data It according to, contract field data, provides a loan and FIELD Data and draws the data in FIELD Data and be fixed and invariable, configuration center is by data Changeless FIELD Data is stored in configuration center.With contract field data instance, contract field data are stored in configuration Center is to draw application area data with the FIELD Data of contract field data correlation, contract field data include contract number, Draw application numbers, product number, main body number and multiple attributes.Multiple attributes include contract amount, product coding, credit class Type and loan main body.Contract number draws application numbers, product number and main body number in digital form, and attribute is with character The form of string is stored in configuration center, but the value of attribute is stored in server.
Preferably, the value of the FIELD Data number in FIELD Data, the value of associated FIELD Data number and multiple attributes Value, after becoming non-null value from null value, and described value is remained unchanged.
The value of FIELD Data numerical digit, associated FIELD Data numerical digit and multiple attributes in FIELD Data, from After null value becomes non-null value, their value is maintained for constant.
Step 102, when the value of first time request attribute, judgment module judges whether the attribute of the request belongs to configuration The attribute at center.
Request refers to when client is started using client webpage clicking or timed task.When the value of first time request attribute When, judgment module judges whether the attribute of the request belongs to the attribute of configuration center, is equivalent to the value of the attribute of judgement request Whether changeless value is belonged to.
Such as: when the name of the creditor in first time inquiry contract field data, i.e., when first time request attribute When value, inquiry is equivalent to request, and creditor is equivalent to the loan main body in contract field data, and the name of creditor is equivalent to loan The value of money main body, judges whether the attribute of inquired creditor belongs to the attribute of configuration center.
Such as: when first time inquiry can be with the value of the available amount in amount FIELD Data, judge to be inquired available Whether the attribute of amount belongs to the attribute of configuration center.
Step 103, if it is the attribute for belonging to configuration center, then the attribute of request described in first processing module far call Value, and the value of the attribute of the request is buffered in local.
Far call refers to the service that long-range server is called in a request, and server returns to the value of corresponding requests, Such data interaction operation.In this application, request includes that distributed synchronization asks summed data library access request, remotely Calling is read-only calling.As the attribute of configuration center be in the form of character string existing for, be stored in the category of configuration center Property void value, so request the value of the attribute for the first time, can only be called by first processing module from server medium-long range described in The value of the attribute of request, and the value of the attribute of the request is buffered in local.
Such as: if creditor is the attribute for belonging to configuration center, the name of creditor is called to Server remote, and By the name cache of provide a loan humanized and creditor in local.
Step 104, when requesting the value of attribute of the request again, obtain module in the category for locally obtaining the request The value of property.
When requesting the value of attribute of the request again, because being asked when requesting for the first time locally having saved this The value for the attribute asked only needs so obtaining module in local acquisition, so that it may obtain the value of the attribute of the request.
Such as: when the name of application for credit people again, directly from the local name for obtaining creditor, it is not necessary to from server Medium-long range has invoked.
If step 105, the attribute for being not belonging to configuration center, the attribute of request described in Second processing module far call Value.
If the attribute is not belonging to the attribute of configuration center, illustrate that the value of the attribute is to change, then request should every time When the value of attribute, Second processing module will request described in far call attribute value.
Such as: if the attribute of configuration center can be not belonging to amount, far call can use the value of amount.Because each Available amount after pen is drawn can change, so configuration center can be stored in amount FIELD Data.Therefore, inquiry every time When can be with the value of the available amount in amount FIELD Data, will far call can use the value of amount.
Therefore, the method for request data provided by the present application, by directly obtaining response data from local, since improve Response speed, to improve the processing speed of system.
In order to enable server is synchronous with local data are buffered in, when modifying the value of attribute, it is filled in local for sky Whether the value of the attribute of value detects identical in the value locally for the value of the attribute of the non-null value attribute newly-increased with the attribute.So as to When request data, modified value can be obtained from local.
Due to one draw application association one contract, client have submitted one draw application after, server can be created A contract is built, which includes the FIELD Data number, associated FIELD Data number and multiple attributes of contract field data. Such as: client client have submitted one draw application after, this draw application ratio before application of drawing increased a conjunction newly It is 100,000 with amount.At this moment it is 100,000 that server, which increases the value of the contract amount attribute of associated contract field data newly, herein Before be buffered in local contract field data contract amount attribute value for sky.So the embodiment of the present application two is introduced, how In the value for the contract amount attribute for increasing local contract field data newly for 100,000.
Fig. 3 is the method flow diagram of the modification data of the embodiment of the present application two.The present embodiment is suitable for operation system Changeless data carry out after being buffered in local, modify the data.
As shown in figure 3, the application modify data method specifically includes the following steps:
FIELD Data is stored in configuration center by step 201, configuration center, and the FIELD Data includes that FIELD Data is compiled Number, associated FIELD Data number and multiple attributes, the FIELD Data is for being requested, modify or detect.
In the embodiment of the present application two be the same configuration center in the embodiment of the present application one, so this step and embodiment Step 101 in one is identical, and therefore not to repeat here.
Preferably, the value of FIELD Data number, the value of the value of associated FIELD Data number and multiple attributes, become from null value After non-null value, and described value is remained unchanged.
The value of FIELD Data numerical digit, associated FIELD Data numerical digit and multiple attributes in FIELD Data, from After null value becomes non-null value, their value is maintained for constant.
Step 202, when the value of attribute is modified to the first value, first judgment module judges whether the attribute belongs to and matches Set the attribute at center.
The value of modification attribute includes the value of newly-increased attribute and the value for deleting attribute.When the value of attribute is revised as first from the background When value, first judgment module judges whether the attribute belongs to the attribute of configuration center, is equivalent to and judges that the value of the attribute is It is no to belong to changeless value.It is long-range to adjust if first judgment module judges that the attribute is not belonging to the attribute of configuration center With the value of attribute.
Such as: client client have submitted one draw application after, submit before draw application in contract amount be Null value, i.e., the attribute value of contract amount before this are null value without being specifically worth, this is drawn and draws application newly before application is compared Having increased a contract amount is 100,000.When the value of contract amount attribute is modified to the first value 100,000, first judgment module is sentenced Whether the attribute of disconnected contract amount belongs to the attribute of configuration center.
Step 203, if it is the attribute for belonging to configuration center, then the second judgment module judges the attribute with the presence or absence of this Ground.
If contract amount attribute is the attribute for belonging to configuration center, the second judgment module judge contract amount whether It is local.Wherein in the value of contract amount attribute by before modifying, user when requesting the loan body attribute of contract field data, When the value of provide a loan body attribute and body attribute of providing a loan is buffered in local, contract amount attribute is also with being buffered in local.Cause This, as long as any one of requested contract field data attribute, contract amount can all be buffered in local.
It is step 204, local if it is existing, then third judgment module judge in the presence of the attribute of local value whether be It is empty.
If contract amount exist it is local, third judgment module judge in the presence of the contract amount attribute of local value whether For sky.
If step 205 is not sky, and first value is not identical as the value for the attribute that there is local, then third The attribute is sent to arrangement for detecting by processing module.
When value if there is the local attribute is not sky, illustrate after the value of attribute is modified to the first value, Other attributes of FIELD Data where the attribute were requested, so the value of the attribute is also buffered in locally.If First value is not identical as the value that there is the local attribute, then the attribute is sent to arrangement for detecting by third processing module, If the first value is identical as there is the local value of the attribute, do not deal with.
Such as: when the value if there is local contract amount attribute is not sky, illustrate to be modified in the value of contract amount After the first value 100,000, other attributes of contract field data were requested, and as the value of other attributes is buffered in local, were closed Value with the attribute of amount is also buffered in local, i.e. the value in the presence of local contract amount attribute is not empty.Next, it is determined that first Whether value 100,000 and the value that there is local contract amount attribute are identical, and the first value here is the value of server, and there are locals The value of contract amount attribute be to be buffered in local value.
If the first value is not identical as the value that there is local contract amount attribute, illustrate the contract field in configuration center The value of data attribute changes, and the value of all properties in configuration center is fixed and invariable, then the contract amount of configuration center The value arrangement abnormalities of attribute are spent, so the attribute is sent to arrangement for detecting by third processing module, are used for contract amount category Property from configuration center remove.
If the first value is identical as there is the local value of contract amount attribute, illustrate the contract field number in configuration center Do not change according to the value of attribute, is fixed and invariable and is consistent with the value of all properties in configuration center, then do not deal with.
If step 206, the attribute, there is no local or to there is the value of the local attribute be sky, the everywhere The value of attribute described in module far call is managed, and the value of attribute described in far call is buffered in local.
If contract amount attribute there is no local, illustrate before any one of contract field data attribute not by It is requested, then the value of contract amount attribute is called to Server remote, and the value of far call contract amount attribute is buffered in It is local.
The value that there is a situation where local contract amount attribute is that sky is: contract amount attribute value by before modifying, When other attributes of contract field data are requested, contract amount attribute is buffered in local with contract attribute, but caches at this time It is sky in the value of local contract amount attribute.Then fourth processing module calls contract field data attribute to Server remote Value 100,000, and the value 100,000 of the contract field data attribute called to Server remote is increased newly and is cached to local contract The value of amount attribute.
Therefore, the method for modification data provided by the present application, so that server is synchronous with local data are buffered in, so as to When request data, modified value can be obtained from local.
The configuration of the attribute of the configuration and FIELD Data of the FIELD Data of configuration center, these configuration be it is preset, In system operation, the acquisition and filling of data are uniformly controlled by reading data.However as the development of operation system, Domain data model can change with the change of time, after FIELD Data variation, how preferably go to update configuration The attribute data at center, it is necessary to automatically go to detect in system operation.Detecting includes two aspects, is on the one hand true Fixed old attribute data does not have variation in the system reform or escalation process, is completed in the system reform or upgrading Afterwards, configuration center can be updated by having new FIELD Data and its attribute.
Fig. 4 is the method flow diagram of the detecting data of the embodiment of the present application three.The present embodiment is suitable for becoming configuration center Dynamic attribute data and the attribute data constant always for being not belonging to configuration center are detected.
As shown in figure 4, the method for the application detecting data specifically includes the following steps:
FIELD Data is stored in configuration center by step 301, configuration center, and the FIELD Data includes that FIELD Data is compiled Number, associated FIELD Data number and multiple attributes, the FIELD Data is for being requested, modify or detect.
In the embodiment of the present application three be the same configuration center, institute in the embodiment of the present application one and the embodiment of the present application two Identical as the step 201 in the step 101 and embodiment two in embodiment one with this step, therefore not to repeat here.
Preferably, the value of the FIELD Data number in FIELD Data, the value of associated FIELD Data number and multiple attributes Value, after becoming non-null value from null value, and described value is remained unchanged.
The value of FIELD Data numerical digit, associated FIELD Data numerical digit and multiple attributes in FIELD Data, from After null value becomes non-null value, their value is maintained for constant.
Step 302, when request or modification attribute value when, the 4th judgment module judges whether the attribute belongs in configuration The attribute of the heart.
The value of modification attribute includes the value of newly-increased attribute and the value for deleting attribute.When requesting or modifying the value of attribute, the Four judgment modules judge whether the attribute belongs to the attribute of configuration center, are equivalent to and judge whether the value of the attribute belongs to admittedly Fixed constant value.
Such as: when the contract amount in inquiry request or newly-increased amendment of contract FIELD Data, judge contract amount attribute Whether the attribute of configuration center is belonged to.
Such as: when inquiry request or newly-increased modification guarantor, judge to assure the humanized category for whether belonging to configuration center Property.
Step 303, if it is the attribute for belonging to configuration center, then detecting module detect the attribute value it is whether constant.
After judging contract amount attribute and being the attribute for belonging to configuration center, then whether not the value of contract amount attribute is detected Become.
If the value of step 304, the attribute varies by, the 5th processing module is by the attribute from the configuration center It removes.
If detecting module detects the value of the attribute in the system reform or escalation process or other reasons change , then be fixed and invariable and contradict with the value of the attribute of configuration center, thus the 5th processing module by the attribute from described Configuration center removes.Here the value of attribute varies by, and is equivalent to the first value of step 205 in embodiment two and there is local The value of the attribute is not identical.
If the value of contract amount attribute is in the system reform or escalation process or other reasons vary by, by contract Amount attribute is removed from configuration center.
If step 305, the attribute for being not belonging to configuration center, logging modle records the variation feelings of the value of the attribute Condition.
If the attribute is not belonging to the attribute of configuration center, logging modle records the value change conditions of the attribute, becomes It is to change that emotionally condition, which includes the value of the attribute, still constant always.
Such as: judge after assuring the humanized attribute for being not belonging to configuration center, then the value of record attribute guarantor name Change conditions.
If the value of step 306, the attribute is constant always, collection module updates the attribute into the configuration The heart.
If the value for recording the attribute is constant always, the attribute is added collection module updates into the configuration The heart.
If the value of attribute guarantor's name is constant always, it will assure that humanized addition is updated to configuration center, it can be with According to the composition of the attribute of six FIELD Datas in configuration center, the humanized contract field number updated to configuration center will be assured In.
Therefore, the method for detecting data provided by the present application, the attribute data that configuration center is changed remove, so that it is guaranteed that In the system reform or escalation process, the attribute data of configuration center is fixed and invariable;And it will not belong to configuration center Attribute data constant always is updated to configuration center, after the completion of the system reform or upgrading, to have new FIELD Data Configuration center can be updated with its attribute.
Fig. 5 is the schematic device of the request data of the embodiment of the present application four.As shown in figure 5, the device packet of request data It includes:
Configuration center 501, for FIELD Data to be stored in configuration center, the FIELD Data includes that FIELD Data is compiled Number, associated FIELD Data number and multiple attributes, the FIELD Data is for being requested, modify or detect;
Judgment module 502, for when the value of first time request attribute, judging whether the attribute of the request belongs to configuration The attribute at center;
First processing module 503, for if it is the attribute for belonging to configuration center, then the attribute of request described in far call Value, and the value of the attribute of the request is buffered in local;
Module 504 is obtained, for obtaining the category of the request in local when requesting the value of attribute of the request again The value of property;
Second processing module 505, if the attribute for being not belonging to configuration center, the attribute of request described in far call Value.
The request data of the embodiment of the present application one may be implemented in the unit of the device of the request data of the embodiment of the present application four Method.The device each unit of the application request data can execute each step in above method embodiment.
Therefore, the device of request data provided by the present application, by directly obtaining response data from local, since improve Response speed, to improve the processing speed of system.
Fig. 6 is the schematic device of the modification data of the embodiment of the present application five.As shown in fig. 6, the device packet of modification data It includes:
Configuration center 501, for FIELD Data to be stored in configuration center, the FIELD Data includes that FIELD Data is compiled Number, associated FIELD Data number and multiple attributes, the FIELD Data is for being requested, modify or detect;
First judgment module 602 is matched for when the value of attribute is modified to the first value, judging whether the attribute belongs to Set the attribute at center;
Second judgment module 603, for if it is the attribute for belonging to configuration center, then judging the attribute with the presence or absence of this Ground;
Third judgment module 604, for local if it is existing, then judge in the presence of the local attribute value whether be It is empty;
Third processing module 605, if for being not sky, and first value and there is the value of the local attribute not It is identical, then the attribute is sent to arrangement for detecting;
Fourth processing module 606, if there is no the values of the attribute that is local or there is local for the attribute For sky, then the value of attribute described in far call, and the value of attribute described in far call is buffered in local.
The modification data of the embodiment of the present application two may be implemented in the unit of the device of the modification data of the embodiment of the present application five Method.The device each unit that the application modifies data can execute each step in above method embodiment.
Therefore, the device of modification data provided by the present application, so that server is synchronous with local data are buffered in, so as to When request data, modified value can be obtained from local.
Fig. 7 is the schematic device of the detecting data of the embodiment of the present application six.As shown in fig. 7, the device packet of detecting data It includes:
Configuration center 501, for FIELD Data to be stored in configuration center, the FIELD Data includes that FIELD Data is compiled Number, associated FIELD Data number and multiple attributes, the FIELD Data is for being requested, modify or detect;
4th judgment module 702, for judging whether the attribute belongs in configuration when requesting or modifying the value of attribute The attribute of the heart;
Whether detecting module 703, the value for if it is the attribute for belonging to configuration center, then detecting the attribute are constant;
5th processing module 704, if the value for the attribute varies by, by the attribute from the configuration center It removes;
Logging modle 705 records the variation feelings of the value of the attribute if the attribute for being not belonging to configuration center Condition;
Collection module 706 updates the attribute into the configuration if the value for the attribute is constant always The heart.
The detecting data of the embodiment of the present application three may be implemented in the unit of the device of the detecting data of the embodiment of the present application six Method.The device each unit of the application detecting data can execute each step in above method embodiment.
Therefore, the device of detecting data provided by the present application, the attribute data that configuration center is changed remove, so that it is guaranteed that In the system reform or escalation process, the attribute data of configuration center is fixed and invariable;And it will not belong to configuration center Attribute data constant always is updated to configuration center, after the completion of the system reform or upgrading, to have new FIELD Data Configuration center can be updated with its attribute.
Therefore, a kind of method and device of request data provided by the present application, the method and device and detecting of modification data The method and device of data, first, by directly obtaining response data from local, since improve response speed, to improve The processing speed of system.Second, so that server is synchronous with local data are buffered in, it, can be from this when so as to request data Ground obtains modified value.Third, the attribute data that configuration center is changed removes, so that it is guaranteed that in the system reform or upgrading The attribute data of Cheng Zhong, configuration center are fixed and invariable.4th, it will not belong to the attribute data constant always of configuration center Configuration center is updated, so that the FIELD Data and its attribute that after the completion of the system reform or upgrading, have new can update Configuration center.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description. These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution. Professional technician can use different methods to achieve the described function each specific application, but this realization It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known in data.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (9)

1. a kind of method of request data, which is characterized in that the described method includes:
FIELD Data is stored in configuration center, the FIELD Data includes FIELD Data number, associated FIELD Data number It immobilizes after becoming non-null value from null value with the attribute value of multiple attributes, the multiple attribute, the FIELD Data is used for Requested, modification or detecting;
When the value of first time request attribute, judge whether the attribute of the request belongs to the attribute of configuration center;
If it is the attribute for belonging to configuration center, then the value of the attribute of request described in far call, and by the attribute of the request Value be buffered in local;
When requesting the value of attribute of the request again, in the value for the attribute for locally obtaining the request;
If being not belonging to the attribute of configuration center, the value of the attribute of request described in far call.
2. the method for request data according to claim 1, which is characterized in that the value of the FIELD Data number and institute The value for stating associated FIELD Data number, after becoming non-null value from null value, value is remained unchanged.
3. a kind of method for modifying data, which is characterized in that the described method includes:
FIELD Data is stored in configuration center, the FIELD Data includes FIELD Data number, associated FIELD Data number It immobilizes after becoming non-null value from null value with the attribute value of multiple attributes, the multiple attribute, the FIELD Data is used for Requested, modification or detecting;
When the value of attribute is modified to the first value, judge whether the attribute belongs to the attribute of configuration center;
If it is the attribute for belonging to configuration center, then judge the attribute with the presence or absence of local;
It is local if it is existing, then judge whether the value in the presence of the local attribute is empty;
If being not sky, and first value is not identical as the value for the attribute that there is local, then is sent to the attribute Arrangement for detecting;
If the attribute is sky there is no the value of the attribute that is local or there is local, attribute described in far call Value, and the value of attribute described in far call is buffered in local.
4. the method for modification data according to claim 3, which is characterized in that the value of FIELD Data number and described The value of associated FIELD Data number, after becoming non-null value from null value, value is remained unchanged.
5. a kind of method of detecting data, which is characterized in that the described method includes:
FIELD Data is stored in configuration center, the FIELD Data includes FIELD Data number, associated FIELD Data number It immobilizes after becoming non-null value from null value with the attribute value of multiple attributes, the multiple attribute, the FIELD Data is used for Requested, modification or detecting;
When requesting or modifying the value of attribute, judge whether the attribute belongs to the attribute of configuration center;
If it is the attribute for belonging to configuration center, then whether the value for detecting the attribute is constant;
If the value of the attribute varies by, the attribute is removed from the configuration center;
If being not belonging to the attribute of configuration center, the change conditions of the value of the attribute are recorded;
If the value of the attribute is constant always, the attribute is updated to the configuration center.
6. the method for detecting data according to claim 5, which is characterized in that the value of FIELD Data number and described The value of associated FIELD Data number, after becoming non-null value from null value, value is remained unchanged.
7. a kind of device of request data, which is characterized in that described device includes:
Configuration center, for FIELD Data to be stored in configuration center, the FIELD Data includes that FIELD Data numbers, is associated FIELD Data number and multiple attributes, the attribute value of the multiple attribute immobilizes after becoming non-null value from null value, described FIELD Data is for being requested, modifying or detecting;
Judgment module, for when the value of first time request attribute, judging whether the attribute of the request belongs to configuration center Attribute;
First processing module, for if it is the attribute for belonging to configuration center, then the value of the attribute of request described in far call, and The value of the attribute of the request is buffered in local;
Module is obtained, for obtaining the value of the attribute of the request in local when requesting the value of attribute of the request again;
Second processing module, if the attribute for being not belonging to configuration center, the value of the attribute of request described in far call.
8. a kind of device for modifying data, which is characterized in that described device includes:
Configuration center, for FIELD Data to be stored in configuration center, the FIELD Data includes that FIELD Data numbers, is associated FIELD Data number and multiple attributes, the attribute value of the multiple attribute immobilizes after becoming non-null value from null value, described FIELD Data is for being requested, modifying or detecting;
First judgment module, for judging whether the attribute belongs to configuration center when the value of attribute is modified to the first value Attribute;
Second judgment module, for if it is the attribute for belonging to configuration center, then judging the attribute with the presence or absence of local;
Third judgment module, for local if it is existing, then whether the value for judging to have the attribute of local is empty;
Third processing module, if for being not sky, and first value is not identical as the value for the attribute that there is local, then The attribute is sent to arrangement for detecting;
Fourth processing module, if for the attribute there is no local or to there is the value of the local attribute be sky, The value of attribute described in far call, and the value of attribute described in far call is buffered in local.
9. a kind of device of detecting data, which is characterized in that described device includes:
Configuration center, for FIELD Data to be stored in configuration center, the FIELD Data includes that FIELD Data numbers, is associated FIELD Data number and multiple attributes, the attribute value of the multiple attribute immobilizes after becoming non-null value from null value, described FIELD Data is for being requested, modifying or detecting;
4th judgment module, for judging whether the attribute belongs to the category of configuration center when requesting or modifying the value of attribute Property;
Whether detecting module, the value for if it is the attribute for belonging to configuration center, then detecting the attribute are constant;
5th processing module removes the attribute from the configuration center if the value for the attribute is varied by;
Logging modle records the change conditions of the value of the attribute if the attribute for being not belonging to configuration center;
Collection module updates the attribute to the configuration center if the value for the attribute is constant always.
CN201410268087.0A 2014-06-16 2014-06-16 Request data, the method and device for modifying data and detecting data Active CN105205064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410268087.0A CN105205064B (en) 2014-06-16 2014-06-16 Request data, the method and device for modifying data and detecting data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410268087.0A CN105205064B (en) 2014-06-16 2014-06-16 Request data, the method and device for modifying data and detecting data

Publications (2)

Publication Number Publication Date
CN105205064A CN105205064A (en) 2015-12-30
CN105205064B true CN105205064B (en) 2019-03-12

Family

ID=54952754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410268087.0A Active CN105205064B (en) 2014-06-16 2014-06-16 Request data, the method and device for modifying data and detecting data

Country Status (1)

Country Link
CN (1) CN105205064B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600284B (en) * 2016-12-22 2020-09-04 Tcl科技集团股份有限公司 Credit line authorization method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser
CN101997927A (en) * 2010-11-18 2011-03-30 厦门市美亚柏科信息股份有限公司 Method and system for caching data of WEB platform
CN103559306A (en) * 2013-11-18 2014-02-05 电子科技大学 Query system and method for accessing data centers through cloud platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser
CN101997927A (en) * 2010-11-18 2011-03-30 厦门市美亚柏科信息股份有限公司 Method and system for caching data of WEB platform
CN103559306A (en) * 2013-11-18 2014-02-05 电子科技大学 Query system and method for accessing data centers through cloud platform

Also Published As

Publication number Publication date
CN105205064A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN103577440B (en) A kind of data processing method and device in non-relational database
CN105989129B (en) Real time data statistical method and device
CN103995855B (en) The method and apparatus of data storage
CN104052809B (en) A kind of flow-dividing control method and apparatus of website test
CN104331487B (en) The processing method and processing device of log
CN106897930A (en) A kind of method and device of credit evaluation
CN109977129A (en) Multi-stage data caching method and equipment
WO2016145993A1 (en) Method and system for user device identification
CN107016027A (en) The method and apparatus for realizing business information fast search
CN104104717A (en) Inputting channel data statistical method and device
KR101400214B1 (en) Appratus for providing a hybrid c interface
CN104317957B (en) A kind of open platform of report form processing, system and report processing method
CN107705199A (en) The generation method and device of feature calculation code
CN106372266A (en) Cache and accessing method of cloud operation system based on aspects and configuration documents
CN109471843A (en) A kind of metadata cache method, system and relevant apparatus
CN110191168A (en) Processing method, device, computer equipment and the storage medium of online business datum
CN104423982A (en) Request processing method and device
CN108268468A (en) The analysis method and system of a kind of big data
CN107783850A (en) A kind of node tree chooses analytic method, device, server and the system of record
CN106844550A (en) Method and device is recommended in a kind of virtual platform operation
CN114706894A (en) Information processing method, apparatus, device, storage medium, and program product
CN105205064B (en) Request data, the method and device for modifying data and detecting data
CN106201461A (en) Generation method, system and the background server at a kind of interface
CN109783321A (en) Monitoring data management method, device, terminal device
CN105554181A (en) DNS log compression method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20191223

Address after: P.O. Box 31119, grand exhibition hall, hibiscus street, 802 West Bay Road, Grand Cayman, Cayman Islands

Patentee after: Innovative advanced technology Co., Ltd

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Co., Ltd.