CN107818509A - Business datum method of calibration, device, storage medium and electronic equipment - Google Patents

Business datum method of calibration, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107818509A
CN107818509A CN201711191227.9A CN201711191227A CN107818509A CN 107818509 A CN107818509 A CN 107818509A CN 201711191227 A CN201711191227 A CN 201711191227A CN 107818509 A CN107818509 A CN 107818509A
Authority
CN
China
Prior art keywords
rule
verification
logic
check
business datum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711191227.9A
Other languages
Chinese (zh)
Other versions
CN107818509B (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.)
Taikang Endowment Insurance Co., Ltd
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group 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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201711191227.9A priority Critical patent/CN107818509B/en
Publication of CN107818509A publication Critical patent/CN107818509A/en
Application granted granted Critical
Publication of CN107818509B publication Critical patent/CN107818509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Abstract

The embodiment of the present invention provides a kind of business datum method of calibration, device, storage medium and electronic equipment.This method includes:Determine the type of service of business datum to be verified;It is regular that the verification carried out to the business datum of the type of service needed for data check is obtained from verification rule base;Check logic create-rule is obtained from check logic rule base, and acquired verification rule is handled according to the check logic create-rule, generates check logic;Using the check logic, the business datum to be verified is verified, generates check results.Business datum method of calibration, device, storage medium and electronic equipment provided in an embodiment of the present invention, the dynamic adjustment to check logic can be realized, when carrying out business datum verification, the check logic to business datum verification can be adjusted flexibly according to the type of service of business datum.

Description

Business datum method of calibration, device, storage medium and electronic equipment
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of business datum method of calibration, device, storage medium And electronic equipment.
Background technology
Under current big data historical background, there is multiple business type in the operation system of each field and industry, And every kind of type of service is all corresponding with substantial amounts of business datum.When business datum enters operation system, operation system needs pair Business datum carries out the various verifications based on business rule, if business datum verification is by the way that operation system can feed back phase Information is answered, re-enter operation system after standby service data correction is verified again, until business datum verification passes through.To industry The verification of business data ensure that the accuracy into the data of operation system, and then enable operation system according to the business number Factually existing accurate business processing.
The verification for business datum is typically by pre-set check logic in the prior art, such as which is verified Regular execution sequence of content, verification etc..In specific verified, typically drawn using code logic or third party's rule Hold up.Specifically, code logic or third party's regulation engine are advance according to this when being verified every time to business datum The check logic set verifies to business datum.
But when carrying out business datum verification using code logic of the prior art or third party's regulation engine, deposit Fixed in its check logic, it is impossible to the problem of realizing the dynamic adjustment of check logic.
The content of the invention
The embodiment of the present invention provides a kind of business datum method of calibration, device, storage medium and electronic equipment, to solve The problem of dynamic adjustment of check logic can not be realized in the prior art.
In a first aspect, the embodiment of the present invention provides a kind of business datum method of calibration, this method includes:Determine industry to be verified The type of service for data of being engaged in;
It is regular that the verification carried out to the business datum of the type of service needed for data check is obtained from verification rule base;
Check logic create-rule is obtained from check logic rule base, and according to the check logic create-rule to institute The verification rule of acquisition is handled, and generates check logic;
Using the check logic, the business datum to be verified is verified, generates check results.
Alternatively, the check logic create-rule, including:Verify the effective time of rule;
It is described that acquired verification rule is handled according to the check logic create-rule, check logic is generated, Including:According to the effective time of the verification rule, select to be currently at the verification rule of active states from the verification rule Then, and according to the verification rule generation check logic for being currently at active states.
Alternatively, the check logic create-rule, in addition to:Execution logic order between verification rule;
The verification rule generation check logic of active states is currently at described in the basis, including:
According to the execution logic order between the verification rule, the verification rule for being currently at active states is entered Row sequence, generates check logic.
Alternatively, the check logic create-rule, in addition to:Verify the verification priority of rule;
The execution logic order according between the verification rule, the verification for being currently at active states is advised Then it is ranked up, generates check logic, including:
According to the execution logic order between the verification rule, the verification rule for being currently at active states is arranged Sequence;
It is determined that verifying in rule with the presence or absence of the verification rule for being not carried out logical order after sequence;
If in the presence of according to the verification priority of the verification rule to the verification rule for being not carried out logical order It is ranked up, generates check logic.
Alternatively, mathematical logic rule-like storehouse corresponding with the type of service and business are included in the verification rule base Logic class rule base;
Also included and the mathematical logic rule-like storehouse and the service logic rule-like storehouse point in the verification rule base Not corresponding priority.
Alternatively, the method for inspection, in addition to:
Configuration processing is updated to the verification rule base and/or check logic rule base.
Alternatively, it is described to use the check logic, the business datum to be verified is verified, generation verification knot Fruit, including:
Using the execution logic order of each verification rule in the check logic, school is carried out to business datum to be verified Test;
When each verifies regular in execution, judge whether the check results of business datum are abnormal;If the check results It is abnormal, then stop verification, and generate the abnormal check results of business datum.
Second aspect, the embodiment of the present invention provide a kind of business datum calibration equipment, and the device includes:
Determining module, for determining the type of service of business datum to be verified;
First acquisition module, data school is carried out to the business datum of the type of service for being obtained from verification rule base Test required verification rule;
Second acquisition module, for obtaining check logic create-rule from check logic rule base;
Processing module, for being handled according to the check logic create-rule acquired verification rule, generation Check logic;
Correction verification module, for using the check logic, the business datum to be verified is verified, generation verification knot Fruit.
The third aspect, the embodiment of the present invention provide a kind of computer-readable recording medium, are stored thereon with computer program, The computer program realizes the business datum method of calibration of above-mentioned first aspect when being executed by processor.
Fourth aspect, the embodiment of the present invention provide a kind of electronic equipment, including:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to perform the business number of above-mentioned first aspect via the executable instruction is performed According to method of calibration.
The embodiment of the present invention provides a kind of business datum method of calibration, device, storage medium and electronic equipment, this method bag Include:Determine the type of service of business datum to be verified;Verification rule is obtained from verification rule base, wherein, the verification rule base The complete verification for including carrying out the type of service needed for data check is regular, and the verification rule in the verification rule base can It is actually needed into Mobile state and is adjusted with basis, such as:Delete unwanted rule or add new rule;Then, patrolled from verification Check logic create-rule is obtained in volume rule base, based on the check logic create-rule to the verification rule of acquisition at Reason, check logic is generated, wherein, it is available that check logic rule base includes a variety of different check logic create-rules; Finally, the business datum to be verified is verified using the check logic, generates check results.The embodiment of the present invention carries Business datum method of calibration, device, storage medium and the electronic equipment of confession, because the verification rule base for obtaining verification rule can be with Dynamic adjusts, and check logic create-rule includes polytype, therefore not only can be according to business demand, according to a variety of schools Test a certain or several in logic create-rule, the verification rule of acquisition is handled, flexibly generation, which adapts to the business, needs The check logic asked, it can also realize and the dynamic of check logic is adjusted according to business demand.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to do a simple introduction, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is theory diagram when carrying out data check using code logic in the prior art;
Fig. 2 is the theory diagram of business datum provided in an embodiment of the present invention verification;
Fig. 3 is the flow chart of business datum method of calibration provided in an embodiment of the present invention;
Fig. 4 is the structural representation of business datum calibration equipment provided in an embodiment of the present invention;
Fig. 5 is the structural representation of electronic equipment provided in an embodiment of the present invention.
Embodiment
With reference to the 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 describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this Embodiment in invention is that those of ordinary skill in the art are obtained under the premise of creative work is not made so other realities Example is applied, belongs to the scope of protection of the invention.
In the following description when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different accompanying drawings represent same or similar Key element.Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the disclosure Formula.On the contrary, they are only the device consistent with some aspects being described in detail in such as appended claims, the disclosure and side The example of method.In addition, " first ", " second " in specification describe indicated technical characteristic merely to distinguishing, and can not It is interpreted as indicating or implies relative importance or describe specific order, it should be appreciated that the data so used is in the appropriate case It can exchange.In addition, term " comprising " and " having " and their any deformation, it is intended that cover it is non-exclusive include, For example, contain that the process of series of steps or unit, method, system, product or equipment is not necessarily limited to clearly to list A little steps or unit, but may include not list clearly or for intrinsic its of these processes, method, product or equipment Its step or unit.
When business datum enters operation system, operation system can carry out various based on verification rule to the business datum Verification, generally use code logic or third party's regulation engine carry out the verification of business datum in the prior art.But code Check logic in logical sum third party's regulation engine, just fixed when code and third party's regulation engine generate.The school Testing logic includes the regular execution logic order between rule of fixed verification, i.e., is drawn using code logic or third party's rule Whether when holding up progress data check, not taking into full account needs to use a certain verification rule in check logic to be verified, And the correlation between multiple verification rules, verify regular execution logic order, therefore, its check logic heavy dependence Code or third party's regulation engine fixed logic of itself.As shown in figure 1, to carry out data using code logic in the prior art Theory diagram during verification.Business datum 101 is business datum to be verified, when business datum 101 enters operation system, business system System can perform data check using code logic 102 to it, wherein, the code logic 102 includes fixed check logic, and it is wrapped Execution logic order between the verification rule and rule that include can not enter Mobile state adjustment according to business need.Therefore, verification is worked as , it is necessary to realize the modification of check logic by changing code when logic changes, it is clear that this will extend data check Time, reduce the efficiency of data check.Furthermore, it is desirable to constantly change code to adapt to new check logic, can improve the later stage pair The maintenance cost of system.
Based on the principle verified in the prior art to business datum, the present invention provides a kind of new business datum verification Method, as shown in Fig. 2 the theory diagram for business datum provided in an embodiment of the present invention verification.Verification rule base 203 includes The complete verification rule needed for data check is carried out to business datum, every verification rule is stored in a rules unit, often Individual rules unit definition has interface, and often the concrete methods of realizing of rule interfaces corresponding, therefore, rule invocation module 202 obtain the verification rule carried out to business datum needed for data check from verification rule base 203, can be rule-based list The interface of member realizes the calling to verification rule.Include check logic create-rule in check logic rule base 201, according to obtaining The check logic create-rule taken is handled the verification rule of acquisition, and the verification of verification current service data is adapted to generation Logic;Last rule invocation module 202 is verified using the check logic to business datum.Business datum provided by the invention Verification rule base in method of calibration, verification rule therein can adjust according to being actually needed into Mobile state, delete verification rule Then or increase new verification rule to adapt to the verification requirement of different business datums, also, the school in check logic rule base Testing logic create-rule also has diversified forms, and therefore, business datum method of calibration provided by the invention can realize that verification is patrolled The dynamic adjustment collected.
Technical scheme is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and may be repeated no more for same or analogous concept or process in some embodiments.
Fig. 3 is the flow chart of business datum method of calibration provided in an embodiment of the present invention, as shown in figure 3, the present embodiment Business datum method of calibration comprises the following steps:
S11:Determine the type of service of business datum to be verified.
Specifically, the present embodiment executive agent is to possess the electronic equipment for implementing verifying function to business datum to be verified. When business datum to be verified enters operation system, it is necessary first to determine the type of service of business datum to be verified, each treat school Test business datum and correspond to a kind of type of service.There is the corresponding pass of determination between the corresponding type of service of business datum to be verified System, electronic equipment determine the type of service of business datum to be verified according to the corresponding relation.
S12:It is regular to obtain the verification carried out to the business datum of the type of service needed for data check.
Specifically, electronic equipment obtains from verification rule base carries out data to the business datum to be verified of the type of service Verification rule needed for verification.A kind of corresponding at least one verification rule of type of service, every verification rule define verification Specific object (such as:In business datum form to be verified which or which), business datum to be verified should meet Condition (such as:The data length of a certain list data should be how many).Can be business system for specific verification rule What system had predefined according to the business need of specific type of service, therefore, after type of service is determined, also determine that The verification rule needed for data check is carried out to business datum to be verified.
Verification rule is stored in verification rule base, and electronic device obtains on demand.Verification rule base is included to business Data carry out the complete verification rule needed for data check, and the verification rule verified in rule base can be adjusted as needed It is whole, for example, delete some verification rules not used, add some new verifications rules, verification rule made an amendment in itself, Situations such as by a plurality of verification compatible rule merging, its specific adjustment mode can be determined according to actual conditions, herein to this simultaneously Do not limit.
Due to a kind of corresponding at least one verification rule of type of service, then, when multiple business type is required to use together When one verification is regular, this verification rule stored in the verification rule base in the embodiment of the present application goes for a variety of industry Service type, so, just without complete verification rule corresponding to every kind of type of service is stored respectively, that is, do not have to identical Verification rule repeats to store, and can save memory space;Also, due to being stored with whole verification rules in verification rule base, Verification rule base goes for all types of service.
S13:Check logic create-rule is obtained, and acquired verification rule is carried out according to check logic create-rule Processing, generate check logic.
Specifically, electronic equipment obtains check logic create-rule from check logic rule base.Check logic generation rule Then define how a plurality of independent verification rule combines or associate, so as to form the check logic of an entirety.Verification Logic create-rule can be that operation system needs to predefine good or operation system according to school according to a certain business Existing contact determines between the verification rule tested in rule base;For the latter, identified check logic create-rule will Suitable for all operation systems, for example, by the length of the type checking of data verification data after complete, check logic generation is advised Then it is applicable in all operation systems.
Check logic create-rule is stored in check logic rule base, and electronic device obtains on demand.The check logic Rule base includes a variety of different check logic create-rules, the check logic create-rule in the check logic rule base It can be adjusted as needed, such as:Add new check logic create-rule, multiple check logic create-rules are carried out Combination forms new check logic create-rule etc., and its specific adjustment mode can be determined according to being actually needed, herein This is not limited.
After check logic create-rule is got from check logic rule base, because the check logic create-rule limits Determine how a plurality of independent verification rule combines or associate, that is, defined how at a plurality of independent verification rule Reason, to generate a complete check logic.Therefore, according to the check logic create-rule to the verification rule of acquisition at Reason, generate check logic.
S14:Using check logic, the business datum to be verified is verified, generates check results.
Specifically, the check logic generated using step S13, business datum to be verified is carried out to be based on the check logic Verification, and generate check results accordingly.
The business datum method of calibration that the present embodiment provides, because verification rule base includes carrying out data to type of service Complete verification needed for verification is regular, and the verification rule in the verification rule base can adjust according to being actually needed into Mobile state; Also, check logic rule base include a variety of different check logic create-rules can electronic device select on demand.Therefore, According to the difference of business demand, electronic equipment can the same parity logic create-rule based on acquisition to the different schools of acquisition Test rule to be handled, generate different check logics;Or electronic equipment is also based on the different check logics of acquisition Create-rule is handled the identical verification rule of acquisition, is generated different check logics, that is, is realized check logic Flexibly generation.Also, Mobile state adjustment can also be entered to check logic according to business demand.
On the basis of above-described embodiment, one embodiment of the invention provides a kind of method of calibration of business datum.The implementation Check logic create-rule in example, including:Verify the effective time of rule.
Alternatively, the verification rule effective time can be verification initial time, verification initial time and time span, Verify any of situations such as end time, verification initial time are with verifying end time, non-failed time.Work as checking time Meet the effective time of verification rule, then now verification rule is the verification rule in active states.From verification rule The verification rule obtained in storehouse can include the verification rule for the regular and non-active states of verification for being currently at active states, because This according to check logic create-rule, it is necessary to handle the verification rule of acquisition.
Specifically, acquired verification rule is handled according to check logic create-rule, generates check logic, bag Include:According to the effective time of verification rule, select to be currently at the verification rule of active states from the verification rule of acquisition, and According to the verification rule generation check logic for being currently at active states, only included in the check logic and be currently at active states Verification rule.For example, the verification rule regular 1, regular 2, regular 3 needed for the data check of acquisition, but currently Only regular 1 and rule 2 within its effective time, and rule 3 has been not at its effective time, therefore, only regular 1 He Rule 2 is to be currently at the verification rule of active states, then selection rule 1 and rule 2 generate check logic.
Using the method for the present embodiment, according to the effective time of verification rule, selection is currently at the verification of active states Rule, generates check logic, and the check logic does not include the verification rule of failure or is not at the verification rule of effective time.This The method of embodiment can be avoided to being also needed to during data check to verifying whether rule effectively judges, using whole places Directly business datum is verified in the verification rule of active states, it is possible to increase the efficiency of verification.Also, select the shape that comes into force The verification rule of state can realize the adjustment to check logic.
On the basis of above-described embodiment, another embodiment of the present invention provides a kind of method of calibration of business datum.The reality The check logic create-rule in example is applied, in addition to the effective time of verification rule, in addition to:Execution between verification rule Logical order.
Alternatively, verification rule between execution logic order, for one verification rule execution be with another or There is logic sequencing between the execution of other verification rules or implementing result.Such as can be that a verification rule needs Feedback result based on another verification rule could be called, a verification rule is needed in another verification rule completely It could be called after having verified.
Specifically, for the verification for the being currently at active states rule of acquisition, according to check logic create-rule to it Handled, generate check logic, including:According to the execution logic order between verification rule, to being currently at active states Verification rule be ranked up.For example, the business datum to be verified to present type of service of acquisition carries out data check Required verification rule regular 4, regular 5, regular 6, and judge that the rule 4, rule 5, rule 6 are to be currently at the shape that comes into force The verification rule of state.Wherein, the execution logic order between these three verification rules is:Calling rule 5 realizes that data check needs Rule-based 4 verification feedback result is wanted, calling rule 6 realizes that data check needs rule-based 5 verification feedback result, because This, is ranked up to the rule 4, rule 5, rule 6 for being currently at active states, and the check logic of the verification rule after sequence is First calling rule 4, then calling rule 5, last calling rule 6.Certainly, the execution logic order between verification rule not only limits Latter rule in above-mentioned example needs to be called a kind of this situation based on previous regular feedback result, in addition to such as Previous regular feedback result determines situations such as calling sequencing of follow-up more rules or more rules call simultaneously, herein The embodiment of the present application is not limited.
Using the method for the present embodiment, to being currently at the verification rule of active states according to the execution between verification rule Logical order is ranked up, and generates check logic, can be adjusted flexibly according to the execution logic order between verification rule to industry The check logic of business data check.
On the basis of above-described embodiment, further embodiment of this invention provides a kind of method of calibration of business datum.The reality The check logic create-rule in example is applied, except the execution logic order between the effective time of verification rule and verification rule Outside, in addition to:Verify the verification priority of rule.
Alternatively, each verification rule has priority, or, part, which verifies rule, has priority;If part school Testing rule has priority, then being specifically as follows the verification rule for being not carried out logical order has priority.Verification rule Priority can be systemic presupposition, can also be needed according to business need or business artificial default.Verify the priority of rule It can be preset according to the complexity or significance level of verification, for example, the verification relatively easily verified can be advised Then it is preset as the high verification rule of priority.There is corresponding relation between the priority and the verification rule of each verification rule, Priority can be realized by verifying the priority tag of rule.
Specifically, for the verification for the being currently at active states rule of acquisition, patrolled according to the execution between verification rule Order is collected, generates check logic, including:According to the execution logic order between verification rule, to being currently at active states Verification rule is ranked up;It is determined that verifying in rule with the presence or absence of the verification rule for being not carried out logical order after sequence;If In the presence of, then according to verification rule verification priority the verification rule for being not carried out logical order is ranked up, generation verify Logic.The verification rule of logical order is not carried out, can be that the calling of verification rule is not necessarily dependent on other schools with execution The feedback result of rule is tested, or with others verification rule without sequencing in logic.For example, the verification of acquisition Regular regular 7, rule 8, rule 9, wherein, rule 7, rule 8, regular 9 are the verification rule for being currently at active states, Also, there is no sequencing in logic between rule 7, rule 8, rule 9, rule 7, rule 8, the calling of rule 9 and execution Independent of mutual feedback result, then rule 7, rule 8, rule 9 are the above-mentioned verification rule for being not carried out logical order Then, now, then it is ranked up according to the verification priority of rule 7, rule 8, rule 9, generates check logic.
Using the method for the present embodiment, the verification for being not carried out logical order is advised according to the verification priority of verification rule Then it is ranked up, generates check logic.The height of priority can be set according to the complexity of verification, first carry out easy verification Verification rule, can so improve the efficiency of data check, and excellent due to the addition of in check logic create-rule again First level this, add the option in check logic rule base, can further adjust check logic accordingly.In addition, also may be used To set priority according to the significance level of verification, important content is first verified, the mistake in important content can be avoided.
On the basis of foregoing any embodiment, one embodiment of the invention provides a kind of method of calibration of business datum, should Method includes:In verification rule base in any of the above-described embodiment, mathematical logic corresponding with the type of service is also included Rule-like storehouse and service logic rule-like storehouse.
Specifically, whole mathematical logic rule-likes is stored with mathematical logic rule-like storehouse, such as:Data length is advised Then, data type rule etc.;Whole service logic rule-likes is stored with service logic rule-like storehouse, such as:Specific In Net silver data importing business, last remaining sum should be equal to current period remaining sum, amount of credit side, amount of debit side three's sum.It is determined that After the type of service of business datum to be verified, due to the corresponding at least one verification rule of type of service, wherein type of service pair The verification rule answered can be mathematical logic rule-like, and/or, service logic rule-like, at this point it is possible to directly in mathematical logic Rule-like storehouse, and/or, corresponding rule is obtained in service logic rule-like storehouse.
Verify in rule base also comprising corresponding preferential respectively with mathematical logic rule-like storehouse and service logic rule-like storehouse Level.Alternatively, because the verification of mathematical logic rule-like is more prone to relative to the verification of service logic rule-like, speed is verified Faster, therefore, the priority in mathematical logic rule-like storehouse can be higher than the priority in service logic rule-like storehouse.
On the basis of any of the above-described embodiment, further embodiment of this invention provides a kind of method of calibration of business datum, This method includes:Configuration processing is updated to the verification rule base in any of the above-described embodiment and/or check logic rule base.
Specifically, when with the addition of new item or content in business datum, then new verification rule is needed to verify it, Or system has during more new demand to verification rule base or check logic rule base, it is necessary to patrol verification rule base and/or verification Collect rule base to be updated, reconfigure the check logic life in verification rule or the check logic rule base in verification rule base Into rule.Also, according to the difference of type of service, renewal verification rule base and check logic rule that can be periodically or non-periodically One in storehouse, or both renewals, so as to realize the adjustment to verification rule base and check logic rule base, further realize The dynamic of check logic is adjusted.
In the present embodiment, due to being carried out periodically or non-periodically more to verification rule base and/or check logic rule base New configuration processing so that electronic equipment can match different verification rules in different times, and, need to configure according to business Different check logic create-rules, so as to be needed flexibly to generate different check logics according to business, realize to verification The dynamic adjustment of logic.
On the basis of any of the above-described embodiment, yet another embodiment of the invention provides a kind of method of calibration of business datum, This method includes:Using the execution logic order of each verification rule in the check logic in any of the above-described embodiment, school is treated Business datum is tested to be verified.When each verifies regular in execution, judge whether the check results of business datum are abnormal, if school Results abnormity is tested, then stops verification, and generates the abnormal check results of business datum.For example, when to a certain industry to be verified The check logic that is verified of business data is:According to rule 1, rule 2, the order of rule 3 successively to the business datum to be verified Verified.When then performing verification, first calling rule 1 is verified, if check results are normal, calling rule 2 carries out school Test, such as regular 2 check results then stop verification, directly generate check results to be abnormal, and school is carried out without recalling rule 3 Test.Alternatively, in this embodiment, check results can include the particular location of data exception, and be specially which kind of exception Situation etc..
In the present embodiment, due to when verifying, being verified not when a certain verification is regular by the way that is, verification rule verifies As a result for it is abnormal when, that is, stop verification, subsequent check rule without performing verification again, so, when business datum is present it is abnormal when, Verification efficiency can be improved with rapid feedback check results.
For example, in one embodiment of the invention, Net silver flowing water is verified when Net silver flowing water imports, with reference to Fig. 2 Theory diagram, its specific checking procedure is:
Determine that the type of service of Net silver flowing water to be verified imports type of service for Net silver flowing water when Net silver flowing water imports, it is first Net silver flowing water is first obtained in rule base is verified and imports verification rule corresponding to type of service, as shown in table 1, for the verification of acquisition Rule;Check logic create-rule is obtained from check logic rule base, as shown in table 2, rule are generated for the check logic of acquisition Then.The verification rule in table 1 is handled one by one using the check logic create-rule in table 2, forming one has verification The check logic of order is:Whether the non-NULL rule for being first according to each single item in Net silver pipelined data is that sky carries out school to each single item Test, then the type of each single item is verified according to the typing rule (data type or character types) of each single item, then pressed The length of each single item is verified according to the length rule of each single item, finally according to the rule 4 (service logic rule-like) in table 2 Current balance is verified.
Table 3 is a networking silver pipelined data, when its import system, using the good check logic of above-mentioned configuration in table 3 Data verified.Under this type of service, all verification rules are all exclusive, as long as a therefore verification rule Verification does not pass through, then the data in table 3 are invalid data, and remaining rule directly generates check results without verifying again And export.
The data verification method that the present embodiment provides, from verification rule base and check logic rule base needed for flexible acquisition Verification rule and check logic create-rule, check logic is handled according to the check logic create-rule of acquisition, can With dynamic generation check logic, the problem of check logic is not adapted dynamically in the prior art is overcome.Also, the school of the application It is all exclusive to test between rule, when a rule verification not by, then without carrying out other follow-up regular verifications, because This, can improve the efficiency of data check.
The verification rule that table 1 obtains
The check logic create-rule that table 2 obtains
Verify the effective time of rule Execution logic order between verification rule Verify the verification priority of rule
The Net silver pipelined data of table 3
Fig. 4 is the structural representation of business datum calibration equipment provided in an embodiment of the present invention, as described in Figure 4, the device Including:
Determining module 11, for determining the type of service of business datum to be verified.
First acquisition module 12, data school is carried out to the business datum of the type of service for being obtained from verification rule base Test required verification rule;
Second acquisition module 13, for obtaining check logic create-rule from check logic rule base;
Processing module 14, for being handled according to the check logic create-rule acquired verification rule, generation Check logic;
Correction verification module 15, for using the check logic, business datum to be verified is verified, generates check results.
The business datum calibration equipment that the present embodiment provides, for performing the verification of the business datum in embodiment illustrated in fig. 3 Method, it has identical technical characteristic and technique effect, will not be repeated here.
Alternatively, on the basis of above-described embodiment, processing module 14, available for according to verification rule effective time from The verification rule that selection in rule is currently at active states is verified, and the verification rule life of active states is currently at according to this Into check logic.
Alternatively, on the basis of above-described embodiment, processing module 14, it may also be used for according to holding between the verification rule Row logical order, the verification rule for being currently at active states is ranked up, generates check logic.
Alternatively, on the basis of above-described embodiment, processing module 14, it may also be used for according to holding between the verification rule Row logical order, the verification rule for being currently at active states is ranked up;It is determined that sequence after verification rule in whether deposit It is being not carried out the verification rule of logical order;If in the presence of according to the verification priority of verification rule to being not carried out patrolling The verification rule for collecting order is ranked up, and generates check logic.
Alternatively, on the basis of foregoing any embodiment, the first acquisition module 12, it is additionally operable to, from verification rule base Comprising the type of service corresponding to obtain verification rule in mathematical logic rule-like storehouse and service logic rule-like storehouse.
Alternatively, on the basis of any of the above-described embodiment, the device of the present embodiment may also include:Update configuration module.
Wherein, the renewal configuration module is used to be updated at configuration verification rule base and/or check logic rule base Reason.
Alternatively, on the basis of any of the above-described embodiment, correction verification module 15, available for using each school in check logic The execution logic order of rule is tested, business datum to be verified is verified;When each verifies regular in execution, business is judged Whether the check results of data are abnormal;If check results are abnormal, stop verification, and generate the abnormal verification knot of business datum Fruit.
The business datum calibration equipment that the present embodiment provides, for performing the business datum verification side in above-described embodiment Method, it has identical technical characteristic and technique effect, will not be repeated here.
The embodiment of the present invention also provides a kind of computer-readable storage medium, is stored thereon with computer program, the computer journey The business datum method of calibration any one of above-described embodiment is realized when sequence is executed by processor.
Fig. 5 is the structural representation of electronic equipment provided in an embodiment of the present invention, as shown in figure 5, the embodiment of the present invention Electronic equipment can include:Processor 21;And memory 22, the memory 22 are used for the executable finger for storing processor 21 Order, wherein, processor 21 is configured to perform the industry any one of the various embodiments described above via the executable instruction is performed Business data verification method.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (10)

1. a kind of business datum method of calibration, it is characterised in that methods described includes:
Determine the type of service of business datum to be verified;
It is regular that the verification carried out to the business datum of the type of service needed for data check is obtained from verification rule base;
Check logic create-rule is obtained from check logic rule base, and according to the check logic create-rule to acquired Verification rule handled, generate check logic;
Using the check logic, the business datum to be verified is verified, generates check results.
2. according to the method for claim 1, it is characterised in that the check logic create-rule, including:Verification rule Effective time;
It is described that acquired verification rule is handled according to the check logic create-rule, check logic is generated, including: According to the effective time of the verification rule, select to be currently at the verification rule of active states from the verification rule, and According to the verification rule generation check logic for being currently at active states.
3. according to the method for claim 2, it is characterised in that the check logic create-rule, in addition to:Verification rule Between execution logic order;
The verification rule generation check logic of active states is currently at described in the basis, including:
According to the execution logic order between the verification rule, the verification rule for being currently at active states is arranged Sequence, generate check logic.
4. according to the method for claim 3, it is characterised in that the check logic create-rule, in addition to:Verification rule Verification priority;
The execution logic order according between the verification rule, the verification rule for being currently at active states is entered Row sequence, check logic is generated, including:
According to the execution logic order between the verification rule, the verification rule for being currently at active states is arranged Sequence;
It is determined that verifying in rule with the presence or absence of the verification rule for being not carried out logical order after sequence;
If in the presence of according to the verification priority of the verification rule to the verification rule progress for being not carried out logical order Sequence, generate check logic.
5. according to method according to any one of claims 1 to 4, it is characterised in that included and institute in the verification rule base State mathematical logic rule-like storehouse corresponding to type of service and service logic rule-like storehouse;
It is right respectively with the mathematical logic rule-like storehouse and the service logic rule-like storehouse also to be included in the verification rule base The priority answered.
6. according to method according to any one of claims 1 to 4, it is characterised in that methods described, in addition to:
Configuration processing is updated to the verification rule base and/or check logic rule base.
7. according to method according to any one of claims 1 to 4, it is characterised in that it is described to use the check logic, to institute State business datum to be verified to be verified, generate check results, including:
Using the execution logic order of each verification rule in the check logic, school is carried out to the business datum to be verified Test;
When each verifies regular in execution, judge whether the check results of business datum are abnormal;If the check results are abnormal, Then stop verification, and generate the abnormal check results of business datum.
8. a kind of business datum calibration equipment, it is characterised in that described device includes:
Determining module, for determining the type of service of business datum to be verified;
First acquisition module, data check institute is carried out to the business datum of the type of service for being obtained from verification rule base The verification rule needed;
Second acquisition module, for obtaining check logic create-rule from check logic rule base;
Processing module, for being handled according to the check logic create-rule acquired verification rule, generation verification Logic;
Correction verification module, for using the check logic, the business datum to be verified is verified, generates check results.
9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt The business datum method of calibration any one of claim 1-7 is realized during computing device.
10. a kind of electronic equipment, it is characterised in that including:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to come any one of perform claim requirement 1-7 via the execution executable instruction Business datum method of calibration.
CN201711191227.9A 2017-11-24 2017-11-24 Service data checking method and device, storage medium and electronic equipment Active CN107818509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711191227.9A CN107818509B (en) 2017-11-24 2017-11-24 Service data checking method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711191227.9A CN107818509B (en) 2017-11-24 2017-11-24 Service data checking method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107818509A true CN107818509A (en) 2018-03-20
CN107818509B CN107818509B (en) 2022-02-22

Family

ID=61608869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711191227.9A Active CN107818509B (en) 2017-11-24 2017-11-24 Service data checking method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107818509B (en)

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271611A (en) * 2018-09-06 2019-01-25 阿里巴巴集团控股有限公司 A kind of data verification method, device and electronic equipment
CN109409875A (en) * 2018-09-25 2019-03-01 阿里巴巴集团控股有限公司 A kind of bill method of calibration, device and electronic equipment
CN109474578A (en) * 2018-10-17 2019-03-15 平安健康保险股份有限公司 Message method of calibration, device, computer equipment and storage medium
CN109492378A (en) * 2018-11-26 2019-03-19 平安科技(深圳)有限公司 A kind of auth method based on EIC equipment identification code, server and medium
CN109614262A (en) * 2018-09-25 2019-04-12 阿里巴巴集团控股有限公司 Business method of calibration, device and computer readable storage medium
CN109636317A (en) * 2018-11-23 2019-04-16 山东中创软件工程股份有限公司 Service control method, device, system and storage medium
CN109634941A (en) * 2018-11-14 2019-04-16 金色熊猫有限公司 Medical data processing method, device, electronic equipment and storage medium
CN109818962A (en) * 2019-01-31 2019-05-28 泰康保险集团股份有限公司 Business data processing method and device, electronic equipment, storage medium
CN109857755A (en) * 2019-01-08 2019-06-07 中国联合网络通信集团有限公司 A kind of rule method of calibration and device
CN109862030A (en) * 2019-03-05 2019-06-07 浙江邦盛科技有限公司 A method of verification transmission Information Security
CN109934722A (en) * 2019-01-31 2019-06-25 德联易控科技(北京)有限公司 Verify adjustment method, device and the electronic equipment of rule
CN110347691A (en) * 2019-05-29 2019-10-18 平安科技(深圳)有限公司 Type of credential method of calibration, device, computer equipment and storage medium
CN110400213A (en) * 2019-07-26 2019-11-01 中国工商银行股份有限公司 Data processing method and device and electronic equipment and readable medium
CN110502508A (en) * 2019-08-23 2019-11-26 行吟信息科技(上海)有限公司 A kind of method of calibration and system based on dynamic state of parameters
CN110515937A (en) * 2019-09-02 2019-11-29 中国农业银行股份有限公司 A kind of data verification method and device
CN110569234A (en) * 2019-07-30 2019-12-13 深圳市华傲数据技术有限公司 Data checking method and device, electronic equipment and computer readable storage medium
CN110766160A (en) * 2019-10-21 2020-02-07 北京明略软件系统有限公司 Data verification method and device, storage medium and electronic equipment
CN110942377A (en) * 2019-12-06 2020-03-31 北京思特奇信息技术股份有限公司 Method and system for implementing asynchronous verification of telecom CRM (customer relationship management) service
CN111222942A (en) * 2019-12-27 2020-06-02 天津幸福生命科技有限公司 Data processing method and device, readable medium and electronic equipment
CN111917783A (en) * 2020-08-06 2020-11-10 吉林亿联银行股份有限公司 Method, device and storage medium for verifying general message
CN111966673A (en) * 2020-08-18 2020-11-20 深圳市维度统计咨询股份有限公司 Big data based data auditing method and device and storage medium
CN112380200A (en) * 2020-11-10 2021-02-19 中国人寿保险股份有限公司 Insurance information verification method and device
CN112506900A (en) * 2020-11-27 2021-03-16 中广核工程有限公司 Method, device and equipment for checking three-dimensional data of ventilation pipe of nuclear power plant and storage medium
CN112711581A (en) * 2020-12-30 2021-04-27 医渡云(北京)技术有限公司 Medical data verification method and device, electronic equipment and storage medium
CN112947944A (en) * 2019-12-11 2021-06-11 中盈优创资讯科技有限公司 Business work order processing method and device
CN112989433A (en) * 2021-02-24 2021-06-18 上海中通吉网络技术有限公司 Verification method based on Java Bean verification rule and related equipment
CN113239080A (en) * 2021-05-17 2021-08-10 上海中通吉网络技术有限公司 Service configuration method, device and system
CN113935302A (en) * 2021-12-17 2022-01-14 深圳佑驾创新科技有限公司 Table-based PCBA test method, apparatus, device and storage medium
CN114726792A (en) * 2022-04-19 2022-07-08 中国联合网络通信集团有限公司 Processing method, device, equipment and medium based on json message

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391934A (en) * 2014-11-21 2015-03-04 深圳市银雁金融配套服务有限公司 Data calibration method and device
US20160191541A1 (en) * 2012-12-21 2016-06-30 Alibaba Group Holding Limited Method and system for network validation of information
CN105930409A (en) * 2016-04-18 2016-09-07 深圳市永兴元科技有限公司 Data verification method and device based on dynamic generation rule
CN106254045A (en) * 2016-08-09 2016-12-21 中国银行股份有限公司 A kind of data verification method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160191541A1 (en) * 2012-12-21 2016-06-30 Alibaba Group Holding Limited Method and system for network validation of information
CN104391934A (en) * 2014-11-21 2015-03-04 深圳市银雁金融配套服务有限公司 Data calibration method and device
CN105930409A (en) * 2016-04-18 2016-09-07 深圳市永兴元科技有限公司 Data verification method and device based on dynamic generation rule
CN106254045A (en) * 2016-08-09 2016-12-21 中国银行股份有限公司 A kind of data verification method and device

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271611A (en) * 2018-09-06 2019-01-25 阿里巴巴集团控股有限公司 A kind of data verification method, device and electronic equipment
CN109409875A (en) * 2018-09-25 2019-03-01 阿里巴巴集团控股有限公司 A kind of bill method of calibration, device and electronic equipment
CN109614262B (en) * 2018-09-25 2023-03-07 创新先进技术有限公司 Service checking method, device and computer readable storage medium
CN109614262A (en) * 2018-09-25 2019-04-12 阿里巴巴集团控股有限公司 Business method of calibration, device and computer readable storage medium
CN109474578A (en) * 2018-10-17 2019-03-15 平安健康保险股份有限公司 Message method of calibration, device, computer equipment and storage medium
CN109474578B (en) * 2018-10-17 2023-03-24 平安健康保险股份有限公司 Message checking method, device, computer equipment and storage medium
CN109634941A (en) * 2018-11-14 2019-04-16 金色熊猫有限公司 Medical data processing method, device, electronic equipment and storage medium
CN109636317A (en) * 2018-11-23 2019-04-16 山东中创软件工程股份有限公司 Service control method, device, system and storage medium
CN109492378A (en) * 2018-11-26 2019-03-19 平安科技(深圳)有限公司 A kind of auth method based on EIC equipment identification code, server and medium
CN109857755A (en) * 2019-01-08 2019-06-07 中国联合网络通信集团有限公司 A kind of rule method of calibration and device
CN109857755B (en) * 2019-01-08 2021-04-16 中国联合网络通信集团有限公司 Rule checking method and device
CN109934722A (en) * 2019-01-31 2019-06-25 德联易控科技(北京)有限公司 Verify adjustment method, device and the electronic equipment of rule
CN109818962B (en) * 2019-01-31 2021-07-09 泰康保险集团股份有限公司 Service data processing method and device, electronic equipment and storage medium
CN109818962A (en) * 2019-01-31 2019-05-28 泰康保险集团股份有限公司 Business data processing method and device, electronic equipment, storage medium
CN109862030A (en) * 2019-03-05 2019-06-07 浙江邦盛科技有限公司 A method of verification transmission Information Security
CN110347691B (en) * 2019-05-29 2023-10-31 平安科技(深圳)有限公司 Certificate type verification method, certificate type verification device, computer equipment and storage medium
CN110347691A (en) * 2019-05-29 2019-10-18 平安科技(深圳)有限公司 Type of credential method of calibration, device, computer equipment and storage medium
CN110400213A (en) * 2019-07-26 2019-11-01 中国工商银行股份有限公司 Data processing method and device and electronic equipment and readable medium
CN110569234A (en) * 2019-07-30 2019-12-13 深圳市华傲数据技术有限公司 Data checking method and device, electronic equipment and computer readable storage medium
CN110502508A (en) * 2019-08-23 2019-11-26 行吟信息科技(上海)有限公司 A kind of method of calibration and system based on dynamic state of parameters
CN110515937A (en) * 2019-09-02 2019-11-29 中国农业银行股份有限公司 A kind of data verification method and device
CN110766160A (en) * 2019-10-21 2020-02-07 北京明略软件系统有限公司 Data verification method and device, storage medium and electronic equipment
CN110942377A (en) * 2019-12-06 2020-03-31 北京思特奇信息技术股份有限公司 Method and system for implementing asynchronous verification of telecom CRM (customer relationship management) service
CN112947944B (en) * 2019-12-11 2023-12-05 中盈优创资讯科技有限公司 Business work order processing method and device
CN112947944A (en) * 2019-12-11 2021-06-11 中盈优创资讯科技有限公司 Business work order processing method and device
CN111222942A (en) * 2019-12-27 2020-06-02 天津幸福生命科技有限公司 Data processing method and device, readable medium and electronic equipment
CN111917783A (en) * 2020-08-06 2020-11-10 吉林亿联银行股份有限公司 Method, device and storage medium for verifying general message
CN111966673B (en) * 2020-08-18 2021-06-25 深圳市维度数据科技股份有限公司 Big data based data auditing method and device and storage medium
CN111966673A (en) * 2020-08-18 2020-11-20 深圳市维度统计咨询股份有限公司 Big data based data auditing method and device and storage medium
CN112380200A (en) * 2020-11-10 2021-02-19 中国人寿保险股份有限公司 Insurance information verification method and device
CN112506900A (en) * 2020-11-27 2021-03-16 中广核工程有限公司 Method, device and equipment for checking three-dimensional data of ventilation pipe of nuclear power plant and storage medium
CN112711581A (en) * 2020-12-30 2021-04-27 医渡云(北京)技术有限公司 Medical data verification method and device, electronic equipment and storage medium
CN112711581B (en) * 2020-12-30 2022-11-25 医渡云(北京)技术有限公司 Medical data checking method and device, electronic equipment and storage medium
CN112989433A (en) * 2021-02-24 2021-06-18 上海中通吉网络技术有限公司 Verification method based on Java Bean verification rule and related equipment
CN113239080A (en) * 2021-05-17 2021-08-10 上海中通吉网络技术有限公司 Service configuration method, device and system
CN113935302A (en) * 2021-12-17 2022-01-14 深圳佑驾创新科技有限公司 Table-based PCBA test method, apparatus, device and storage medium
CN114726792A (en) * 2022-04-19 2022-07-08 中国联合网络通信集团有限公司 Processing method, device, equipment and medium based on json message

Also Published As

Publication number Publication date
CN107818509B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN107818509A (en) Business datum method of calibration, device, storage medium and electronic equipment
CN109615495B (en) Data reconciliation method, device, equipment and system
CN108255738A (en) Automated testing method, device, computer equipment and storage medium
CN109597685A (en) Method for allocating tasks, device and server
CN109542428A (en) Method for processing business, device, computer equipment and storage medium
CN107424069A (en) A kind of generation method of air control feature, risk monitoring and control method and apparatus
CN107909330A (en) Work stream data processing method, device, storage medium and computer equipment
CN109408262B (en) Service data processing method and related equipment
CN110162566A (en) Association analysis method, device, computer equipment and the storage medium of business datum
CN110533531B (en) Method and device for identifying abnormal account, medium and electronic equipment
CN110471821A (en) Abnormal alteration detection method, server and computer readable storage medium
CN110401899A (en) Audio testing method and relevant apparatus
CN104966190A (en) Network payment method and apparatus
CN107330572A (en) Air control method, apparatus and system
CN107402720A (en) A kind of processing method of hard disk, device and terminal
CN108694672A (en) Order processing method, apparatus, computer equipment and storage medium
CN108335435A (en) A kind of maintaining method of automatic teller machine, device, terminal device and storage medium
KR20220115357A (en) A method and apparatus for generating future demand forecast data based on attention mechanism
CN106899447A (en) The method and device that a kind of link determines
CN110489329A (en) A kind of output method of test report, device and terminal device
CN115130577A (en) Method and device for identifying fraudulent number and electronic equipment
CN109062638A (en) A kind of system component display methods, computer readable storage medium and terminal device
CN107704362A (en) A kind of method and device based on Ambari monitoring big data components
CN110689418B (en) Bill generation method and device
CN110264331B (en) Method, device and equipment for analyzing capital data

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
TA01 Transfer of patent application right

Effective date of registration: 20211110

Address after: Taikang Life Building, 156 fuxingmennei street, Xicheng District, Beijing 100031

Applicant after: Taikang Insurance Group Co., Ltd

Applicant after: Taikang Endowment Insurance Co., Ltd

Address before: Taikang Life Building, 156 fuxingmennei street, Xicheng District, Beijing 100031

Applicant before: Taikang Insurance Group Co., Ltd

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant