Data verification method and device based on dynamic generation rule

基于动态生成规则的数据校验方法及装置

Abstract

本发明公开了一种基于动态生成规则的数据校验方法,包括:获取待校验数据;根据预设的通用规则或业务规则进行数据类型分析,得到所述待校验数据的数据类型;查找预设数据类型库中是否存在所述待校验数据的数据类型;若存在,则根据所述待校验数据的数据类型,生成对应校验规则;根据所述校验规则,对所述待校验数据进行校验。本发明还公开了一种基于动态生成规则的数据校验装置。本发明通过预先收集相关通用的各类数据类型的规则以及相关业务规则,并建立对应的数据类型库,从而完成待校验数据的数据类型确定以及校验规则的生成,同时也降低了数据校验工作开发的复杂度,减少了维护的工作量,提高了数据校验的准确率与校验效率。
The invention discloses a data verification method based on a dynamic generation rule. The data verification method comprises the following steps: obtaining data to be verified; according to a preset general rule or business rule, carrying out data type analysis to obtain the data type of the data to be verified; looking up whether the data type of the data to be verified is in the presence in a preset data type library or not; if the data type of the data to be verified is in the presence in the preset data type library, generating a corresponding verification rule according to the data type of the data to be verified; and according to the verification rule, verifying the data to be verified. The invention also discloses a data verification device based on the dynamic generation rule. The relevant general rules of various data types and relevant business rules are collected in advance, the corresponding data type library is established so as to finish determining the data type of the data to be verified and generating the verification rule, meanwhile, the complexity of data verification work development is also lowered, the workload of maintenance is reduced, and the accuracy and the verification efficiency of data verification are improved.

Claims

Description

Topics

Download Full PDF Version (Non-Commercial Use)

Patent Citations (0)

    Publication numberPublication dateAssigneeTitle

NO-Patent Citations (0)

    Title

Cited By (0)

    Publication numberPublication dateAssigneeTitle