CN114896964A - Data validity verification method and device - Google Patents

Data validity verification method and device Download PDF

Info

Publication number
CN114896964A
CN114896964A CN202210568713.2A CN202210568713A CN114896964A CN 114896964 A CN114896964 A CN 114896964A CN 202210568713 A CN202210568713 A CN 202210568713A CN 114896964 A CN114896964 A CN 114896964A
Authority
CN
China
Prior art keywords
verification
field information
field
standard
receiving object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210568713.2A
Other languages
Chinese (zh)
Inventor
雷清亮
汲美辰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202210568713.2A priority Critical patent/CN114896964A/en
Publication of CN114896964A publication Critical patent/CN114896964A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/226Validation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method and a device for verifying data validity, which can be applied to the field of big data or the field of finance. The method comprises the following steps: responding to an effectiveness verification request of a user interface field, and acquiring field information corresponding to the effectiveness verification request; matching the field information with each receiving object in a pre-constructed verification responsibility chain in sequence, and determining the receiving object matched with the field information as a target receiving object; sequentially judging whether the field information meets each verification standard in each target receiving object; if the field information meets each verification standard in all target receiving objects, the field information passes validity verification; otherwise, the field information fails the validity verification. By applying the method, the problem of non-standard and incomplete verification in the validity verification process of the changed interface field can be avoided, and the verification efficiency of the user interface field is effectively improved.

Description

Data validity verification method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for verifying data validity.
Background
With the development of information technology, banks deploy more and more services on the internet, and on the basis, the timely change of banking services and the continuous change of user requirements can make new change requirements on user interface fields in a banking system.
In the prior art, the user interface fields are changed in the bank system, and manual coding and acceptance check are required according to the range of the provided changed fields and the validity verification standard. However, the validity verification method is not standard, is easy to cause errors, and has low verification efficiency.
Disclosure of Invention
In view of the above, the present invention provides a method for verifying data validity, by which the problem of non-normative and incomplete in the validity verification process of changing an interface field can be avoided, and the efficiency of verifying a user interface field can be effectively improved.
The invention also provides a device for verifying the data validity, which is used for ensuring the realization and the application of the method in practice.
A method for verifying data validity comprises the following steps:
responding to a validity verification request of an interface field of a user, and acquiring field information corresponding to the validity verification request;
matching the field information with each receiving object in a pre-constructed verification responsibility chain in sequence, and determining the receiving object matched with the field information as a target receiving object;
sequentially judging whether the field information meets each verification standard in each target receiving object;
if the field information meets all the verification standards in all the target receiving objects, the field information passes validity verification; otherwise, the field information fails to pass the validity verification.
The method described above, optionally, the step of constructing the verification responsibility chain includes:
classifying each interface field to obtain each field type, and setting a plurality of verification standards for each field type;
and determining each field type as a receiving object, and arranging each receiving object according to a preset arrangement rule to generate a responsibility chain.
Optionally, the above method, wherein the sequentially determining whether the field information meets each verification standard in each target receiving object includes:
taking the first verification standard of the target receiving object as a standard to be verified; and judging whether the field information meets the to-be-verified standard or not, if so, taking the next verification standard of the to-be-verified standard as a new to-be-verified standard, and judging whether the field information meets the to-be-verified standard or not again until the field information does not meet the to-be-verified standard or the next verification standard does not exist in the to-be-verified standard.
Optionally, in the method, determining that each receiving object meeting the matching condition with the field information is a target receiving object includes:
acquiring each parameter configuration information in the field information, and determining a receiving object corresponding to each parameter configuration information;
and if the parameter configuration information conforms to a preset matching condition, determining that the receiving object corresponding to the parameter configuration information is a target receiving object.
The above method, optionally, further includes:
and generating a data validity verification code frame according to the verification responsibility chain and preset code configuration information so as to realize validity verification of the field information according to each parameter configuration information in the field information.
A data validity verification apparatus comprising:
the device comprises an acquisition unit, a verification unit and a verification unit, wherein the acquisition unit is used for responding to a validity verification request of an interface field of a user and acquiring field information corresponding to the validity verification request;
the determining unit is used for sequentially matching the field information with each receiving object in a pre-constructed verification responsibility chain and determining the receiving object matched with the field information as a target receiving object;
the judging unit is used for sequentially judging whether the field information meets each verification standard in each target receiving object;
the execution unit is used for verifying the validity of the field information if the field information meets all verification standards in all the target receiving objects; otherwise, the field information fails to pass the validity verification.
The above apparatus, optionally, further comprises:
the classification unit is used for classifying each interface field to obtain each field type and setting a plurality of verification standards for each field type;
and the generating unit is used for determining each field type as a receiving object, and arranging each receiving object according to a preset arrangement rule to generate a responsibility chain.
Optionally, the above apparatus, wherein the determining unit is specifically configured to:
taking the first verification standard of the target receiving object as a standard to be verified; and judging whether the field information meets the to-be-verified standard or not, if so, taking the next verification standard of the to-be-verified standard as a new to-be-verified standard, and judging whether the field information meets the to-be-verified standard or not again until the field information does not meet the to-be-verified standard or the next verification standard does not exist in the to-be-verified standard.
The above apparatus, optionally, the determining unit includes:
the acquiring subunit is configured to acquire each piece of parameter configuration information in the field information, and determine a receiving object corresponding to each piece of parameter configuration information;
and the determining subunit is configured to determine, if the parameter configuration information meets a preset matching condition, that the receiving object corresponding to the parameter configuration information is a target receiving object.
The above apparatus, optionally, further comprises:
and the frame generating unit is used for generating a data validity verification code frame according to the verification responsibility chain and preset code configuration information so as to realize validity verification of the field information according to each parameter configuration information in the field information.
A storage medium comprises stored instructions, wherein when the instructions are executed, a device where the storage medium is located is controlled to execute the data validity verification method.
An electronic device includes a memory, and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by one or more processors to perform the above method for verifying data validity.
Compared with the prior art, the invention has the following advantages:
based on the method provided by the embodiment of the invention, in the process of verifying the data validity, responding to the validity verification request of the interface field of the user, and acquiring the field information corresponding to the validity verification request; matching the field information with each receiving object in a pre-constructed verification responsibility chain in sequence, and determining the receiving object matched with the field information as a target receiving object; sequentially judging whether the field information meets each verification standard in each target receiving object; if the field information meets each verification standard in all target receiving objects, the field information passes validity verification; otherwise, the field information fails the validity verification.
By applying the embodiment provided by the invention, the problem of non-standard and incomplete validation in the validation process of the user interface change field is avoided by standardizing the validation standard, and the validation process is executed through the responsibility chain, so that the field validation request and the receiving validation are decoupled, and the validation efficiency of the user interface field can be effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for verifying data validity according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for verifying data validity according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for verifying data validity according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a chain of responsibilities for data validity provided by embodiments of the present invention;
FIG. 5 is a block diagram of a verification framework for data validity according to an embodiment of the present invention;
fig. 6 is a schematic diagram of validity verification codes corresponding to field types of data validity according to an embodiment of the present invention;
fig. 7 is a device structure diagram of a data validity verifying device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and the terms "comprises", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the present invention provides a method for verifying data validity, which can be applied to a plurality of system platforms, wherein an execution subject of the method can be a computer terminal or a processor of various mobile devices, and a flow chart of the method is shown in fig. 1, and specifically includes:
s101: responding to a validity verification request of an interface field of a user, and acquiring field information corresponding to the validity verification request.
In the embodiment provided by the invention, when a user or a developer needs to change the interface field, the validity verification request of the interface field is sent to the system, and the system acquires the field information of the interface field needing to be changed according to the validity verification request sent by the user, so that the data validity verification is the validity verification of the field information.
S102: and matching the field information with each receiving object in a pre-constructed verification responsibility chain in sequence, and determining the receiving object matched with the field information as a target receiving object.
In the embodiment provided by the invention, the field information of the input field of the user interface is taken as a requester, various normative verification standards on the chain corresponding to the responsibility chain are taken as receiving objects, and the receiving objects on the chains have an opportunity to process the request. The field information is matched with the receiving objects along the chain in turn until a receiving object on the chain can process the field information, namely, the field information is matched, and each receiving object matched with the field information is determined as a target receiving object.
Specifically, the determining that each receiving object satisfying the matching condition with the field information is a target receiving object includes:
acquiring each parameter configuration information in the field information, and determining a receiving object corresponding to each parameter configuration information;
and if the parameter configuration information conforms to a preset matching condition, determining that the receiving object corresponding to the parameter configuration information is a target receiving object.
In the embodiment provided by the invention, different field information needs to be subjected to different field validity verifications, so that different field information corresponds to different target receiving objects. And determining a receiving object corresponding to the parameter configuration information as a target receiving object according to each parameter configuration information in the field information. As shown in table 1, field information of the user interface field includes a Loan Account number Loan Account Numner, a charge Account number Free Account, a transaction Amount, and the like, a receiving object corresponding to each parameter configuration information in the information of the Loan Account number is "N" corresponding to date type processing, "N" corresponding to currency type processing, "N" corresponding to customer type processing, "N" corresponding to product type processing, and "Y" corresponding to Account type processing, and the parameter configuration information conforms to a preset matching condition, that is, the receiving object corresponding to "Y" in the parameter configuration information is determined as a target receiving object.
Figure BDA0003659336430000061
TABLE 1
By applying the embodiment provided by the invention, the target receiving object is determined according to the parameter configuration information corresponding to the field information so as to carry out different validity verifications on different field information, carry out validity verification on the field information in a targeted manner and improve the efficiency of the field validity verification process.
S103: and sequentially judging whether the field information meets each verification standard in each target receiving object.
In the embodiment provided by the present invention, each receiving object corresponds to a plurality of verification criteria, for example, the respective verification criteria in the date class receiving object are: whether the check date meets the standard of the year, the day and the month and whether the check date is greater than 19900101. And sequentially judging whether the field information meets each verification standard in each target receiving object. For example, if the field information needs to be subjected to date-class verification, the date-class receiving object is the target receiving object corresponding to the field information, and if the date information of the field information meets the date-and-month standard, but is less than 19900101, the field information does not meet the date-class verification standard.
S104: if the field information meets all the verification standards in all the target receiving objects, the field information passes validity verification; otherwise, the field information fails to pass the validity verification.
In the embodiment provided by the invention, the process of S103 is executed, and if the field information meets each verification standard in all the target receiving objects, the field information passes the validity verification; if the field information does not meet any verification standard in any target receiving object, the field information is not verified in validity. For example, if the field information needs to perform date-class validity verification and product-class validity verification, the date-class receiving object and the product-class receiving object are target receiving objects corresponding to the field information, and whether the interface field information meets all verification standards in the date-class receiving object and the product-class receiving object is determined. If the field information meets all the verification standards in the date class receiving object and the product class receiving object, the field information passes the validity verification; if the field information does not match any validation criteria in the date class receiving object or the product class receiving object, the field information fails validation; for example, if it is judged that the date information of the field information meets the year-day-month criterion and is greater than 19900101 but the product code in the product information is not a number, the field information does not meet the product-class verification criterion and thus the field information fails the validity verification.
Based on the method provided by the embodiment of the invention, in the process of verifying the data validity, responding to the validity verification request of the interface field of the user, and acquiring the field information corresponding to the validity verification request; matching the field information with each receiving object in a pre-constructed verification responsibility chain in sequence, and determining the receiving object matched with the field information as a target receiving object; sequentially judging whether the field information meets each verification standard in each target receiving object; if the field information meets each verification standard in all target receiving objects, the field information passes validity verification; otherwise, the field information fails the validity verification.
By applying the embodiment provided by the invention, the problem of non-standard and incomplete validation in the validation process of the user interface change field is avoided by standardizing the validation standard, and the validation process is executed through the responsibility chain, so that the field validation request and the receiving validation are decoupled, and the validation efficiency of the user interface field can be effectively improved.
As shown in fig. 2, in the embodiment of the present invention, optionally, the sequentially determining whether the field information meets each verification standard in each target receiving object includes:
s201: and taking the first verification standard of the target receiving object as a standard to be verified.
In the embodiment provided by the invention, one receiving object may correspond to a plurality of preset verification standards, and whether the field information meets each verification standard needs to be sequentially judged.
S202: and judging whether the field information meets the to-be-verified standard or whether the to-be-verified standard has a next verification standard.
If the field information meets the to-be-verified standard and the to-be-verified standard has a next verification standard, executing S203, and if the field information does not meet the to-be-verified standard, executing S204.
S203: and taking the next verification standard of the to-be-verified standards as a new to-be-verified standard.
If the field information meets the to-be-verified standard, the to-be-verified standard is verified, the next verification standard of the to-be-verified standard is continuously used as a new to-be-verified standard, S202 is executed again, whether the field information meets the to-be-verified standard is judged, and the field information does not meet the to-be-verified standard or the next verification standard does not exist in the to-be-verified standard.
S204: and completing the verification process of the field information and each verification standard in the target receiving object.
When the field information does not accord with any verification standard in any target receiving object, the field information does not accord with the verification standard, and the verification process is ended; or when the field information and all the verification standards in all the target receiving objects are verified, the verification process is ended.
By applying the embodiment provided by the invention, whether the field information meets each verification standard is sequentially judged according to each verification standard in the receiving object, and if the field information does not meet any verification standard, the verification process of the field information is ended. The verification mode can verify the field information in order and effectively improve the efficiency of field information verification.
In the embodiment provided by the present invention, optionally, the process for constructing the verification responsibility chain includes:
classifying each interface field to obtain each field type, and setting a plurality of verification standards for each field type;
and determining each field type as a receiving object, and arranging each receiving object according to a preset arrangement rule to generate a responsibility chain.
Specifically, the construction of the interface field validity verification responsibility chain needs to classify and sort commonly used user interface fields, such as date, currency, amount, customer status, account number, and the like, and standardize the corresponding validity verification standard for each category of field.
And introducing a responsibility chain design, taking field information of a user interface input field as a requester, taking various standardized certification standards as receiving objects, and establishing a corresponding chain on the responsibility chain. The receiving objects are decoupled from each other and each chain has the opportunity to process the request. And stringing the receiving objects into a chain according to a preset arrangement rule. When the user interface field verification is carried out, the interface field verification request sent by the user can be transmitted along the responsibility chain until a certain receiving object on the chain is matched with the field information corresponding to the field verification request or all the receiving objects on the chain are not matched with the field information.
By applying the embodiment provided by the invention, the field type and each corresponding verification standard are set as the responsibility chain, the sending and receiving of the field verification request are decoupled, a plurality of receiving objects on the responsibility chain have an opportunity to process the request, and the efficiency of the verification process is improved.
In the embodiment provided by the present invention, optionally, the method further includes:
and generating a data validity verification code frame according to the verification responsibility chain and preset code configuration information so as to realize validity verification of the field information according to each parameter configuration information in the field information.
Specifically, after the responsibility chain is constructed, an automatic data validity verification code frame is constructed through different code configurations according to the verification standard of each receiving object in the responsibility chain and the arrangement information of each receiving object in the responsibility chain. When a user initiates a verification request of an interface field, according to each parameter configuration information in field information corresponding to the verification request, after parameter configuration of a data validity verification code frame is carried out, automatic coding is carried out to realize validity verification of the field information.
By applying the embodiment provided by the invention, the data validity verification code frame is generated according to the verification responsibility chain and the code configuration information, the manual coding link is reduced, the automatic validity verification code is used for replacing, the development speed is high, the code style is unified, the maintainability is strong, the development efficiency is effectively improved, the maintenance cost is reduced, and the requirement implementation period is shortened.
According to the validity verification method of the user interface field, as shown in fig. 3, common user interface fields are classified and sorted, such as date type, currency type, amount type, customer state, account number and the like, and corresponding validity verification standards are normalized for each type of field. And introducing a responsibility chain design, taking the input field of the user interface as a requester, taking various standardized certification standards as receiving objects, and establishing a corresponding chain on the responsibility chain. When the user interface field verification is carried out, the interface field verification request sent by the user can be transmitted along the responsibility chain until a certain receiving object on the chain is matched with the field information corresponding to the field verification request or all the receiving objects on the chain are not matched with the field information. An automated field validation code framework is constructed according to the above-described process and basic code configuration.
When the user interface adds or modifies the field, according to the field information corresponding to the field changing request, identifying the responsibility chain receiving object and each verification standard corresponding to the field information, and after parameter configuration, automatically coding in advance according to the field verification code frame to verify whether the field information meets the standard.
The loan transaction in the bank loan is as follows:
the validity verification standards are sorted out according to user interface fields of the core bank loan service and are shown in fig. 4, the validity verification standards mainly comprise a date type, a currency type, a client type, a product type and an account number type, each interface field type corresponds to a plurality of verification standards, for example, whether the date type needs to check whether the date conforms to a year, day and month format and whether the date is greater than 19000101, and similarly, each verification standard corresponding to other field types is shown in fig. 4. And setting the responsibility chain of the interface field verification according to each verification standard corresponding to each field type by taking each field type as a receiving object, so as to obtain the responsibility chain shown in fig. 4. And according to the parameter configuration corresponding to the field information of the user, sequentially carrying out field verification with each verification standard of the receiving object in the responsibility chain, and finishing the verification process of the field information.
And setting a validity verification framework according to the code configuration information and the constructed responsibility chain, as shown in the figure 5. According to the interface variables corresponding to the field types shown in table 1, validity verification codes corresponding to the field types are set as shown in fig. 6, and the validity verification codes corresponding to the field types, the codes for loading the user interface field codes, loading the field parameter configuration file codes, the cycle conditions and the like form a validity verification framework of the user interface fields. When a user newly adds or modifies the interface user field, the automatic coding can be realized by only carrying out simple parameter configuration and applying an effectiveness verification framework.
The invention designs the responsibility chain of the normalized verification standard by normalizing the verification standard of the common service field of the core bank, and can realize automatic coding by simply configuring the parameters of the newly added or modified interface user field. The invention avoids the problem that the validity verification of the newly added or modified fields of the user interface is not standard and incomplete, reduces the manual coding link, uses the automatic validity verification code for substitution, realizes the high development speed, uniform code style and strong maintainability, effectively improves the development efficiency, reduces the maintenance cost and compresses the requirement implementation period.
The specific implementation procedures and derivatives thereof of the above embodiments are within the scope of the present invention.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a data validity verification apparatus, which is used for implementing the method in fig. 1 specifically, the data validity verification apparatus provided in the embodiment of the present invention may be applied to a computer terminal or various mobile devices, and a schematic structural diagram of the data validity verification apparatus is shown in fig. 7, and specifically includes:
an obtaining unit 701, configured to respond to a validity verification request of an interface field of a user, and obtain field information corresponding to the validity verification request;
a determining unit 702, configured to sequentially match the field information with each receiving object in a pre-constructed verification responsibility chain, and determine the receiving object matched with the field information as a target receiving object;
a determining unit 703, configured to sequentially determine whether the field information meets each verification standard in each target receiving object;
an executing unit 704, configured to, if the field information meets each verification criterion in all the target receiving objects, pass validity verification on the field information; otherwise, the field information fails to pass the validity verification.
Based on the device provided by the embodiment of the invention, in the process of verifying the data validity, responding to the validity verification request of the interface field of the user, and acquiring the field information corresponding to the validity verification request; matching the field information with each receiving object in a pre-constructed verification responsibility chain in sequence, and determining the receiving object matched with the field information as a target receiving object; sequentially judging whether the field information meets each verification standard in each target receiving object; if the field information meets each verification standard in all target receiving objects, the field information passes validity verification; otherwise, the field information fails the validity verification.
By applying the device provided by the embodiment of the invention, the problem of non-standard and incomplete validation in the validation process of the user interface change field is avoided by standardizing the validation standard, and the validation process is executed through the responsibility chain, so that the field validation request and the receiving validation are decoupled, and the validation efficiency of the user interface field can be effectively improved.
The above apparatus, optionally, further comprises:
the classification unit is used for classifying each interface field to obtain each field type and setting a plurality of verification standards for each field type;
and the generating unit is used for determining each field type as a receiving object, and arranging each receiving object according to a preset arrangement rule to generate a responsibility chain.
Optionally, the above apparatus, wherein the determining unit is specifically configured to:
taking the first verification standard of the target receiving object as a standard to be verified; and judging whether the field information meets the to-be-verified standard or not, if so, taking the next verification standard of the to-be-verified standard as a new to-be-verified standard, and judging whether the field information meets the to-be-verified standard or not again until the field information does not meet the to-be-verified standard or the next verification standard does not exist in the to-be-verified standard.
The above apparatus, optionally, the determining unit includes:
the acquiring subunit is configured to acquire each piece of parameter configuration information in the field information, and determine a receiving object corresponding to each piece of parameter configuration information;
and the determining subunit is configured to determine, if the parameter configuration information meets a preset matching condition, that the receiving object corresponding to the parameter configuration information is a target receiving object.
The above apparatus, optionally, further comprises:
and the frame generating unit is used for generating a data validity verification code frame according to the verification responsibility chain and preset code configuration information so as to realize validity verification of the field information according to each parameter configuration information in the field information.
The specific working processes of each unit and sub-unit in the data validity verification apparatus disclosed in the above embodiment of the present invention may refer to corresponding contents in the data validity verification method disclosed in the above embodiment of the present invention, and are not described herein again.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the equipment where the storage medium is located is controlled to execute the verification method for the data validity.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 8, which specifically includes a memory 801 and one or more instructions 802, where the one or more instructions 802 are stored in the memory 801 and configured to be executed by the one or more processors 803 to perform the following operations:
responding to a validity verification request of an interface field of a user, and acquiring field information corresponding to the validity verification request;
matching the field information with each receiving object in a pre-constructed verification responsibility chain in sequence, and determining the receiving object matched with the field information as a target receiving object;
sequentially judging whether the field information meets each verification standard in each target receiving object;
if the field information meets all the verification standards in all the target receiving objects, the field information passes validity verification; otherwise, the field information fails to pass the validity verification.
It should be noted that the method and the device for verifying the data validity provided by the invention can be used in the field of big data or the field of finance. The above is only an example, and the application fields of the data validity verification method and device provided by the present invention are not limited.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for verifying data validity is characterized by comprising the following steps:
responding to a validity verification request of an interface field of a user, and acquiring field information corresponding to the validity verification request;
matching the field information with each receiving object in a pre-constructed verification responsibility chain in sequence, and determining the receiving object matched with the field information as a target receiving object;
sequentially judging whether the field information meets each verification standard in each target receiving object;
if the field information meets all the verification standards in all the target receiving objects, the field information passes validity verification; otherwise, the field information fails to pass the validity verification.
2. The method of claim 1, wherein the verifying the building process of the chain of responsibility comprises:
classifying each interface field to obtain each field type, and setting a plurality of verification standards for each field type;
and determining each field type as a receiving object, and arranging each receiving object according to a preset arrangement rule to generate a responsibility chain.
3. The method of claim 1, wherein said sequentially determining whether said field information meets respective validation criteria in each of said target receiving objects comprises:
taking the first verification standard of the target receiving object as a standard to be verified; and judging whether the field information meets the to-be-verified standard or not, if so, taking the next verification standard of the to-be-verified standard as a new to-be-verified standard, and judging whether the field information meets the to-be-verified standard or not again until the field information does not meet the to-be-verified standard or the next verification standard does not exist in the to-be-verified standard.
4. The method of claim 1, wherein the determining that each receiving object satisfying the matching condition with the field information is a target receiving object comprises:
acquiring each parameter configuration information in the field information, and determining a receiving object corresponding to each parameter configuration information;
and if the parameter configuration information conforms to a preset matching condition, determining that the receiving object corresponding to the parameter configuration information is a target receiving object.
5. The method of claim 1, further comprising:
and generating a data validity verification code frame according to the verification responsibility chain and preset code configuration information so as to realize validity verification of the field information according to each parameter configuration information in the field information.
6. An apparatus for verifying validity of data, comprising:
the device comprises an acquisition unit, a verification unit and a verification unit, wherein the acquisition unit is used for responding to a validity verification request of an interface field of a user and acquiring field information corresponding to the validity verification request;
the determining unit is used for sequentially matching the field information with each receiving object in a pre-constructed verification responsibility chain and determining the receiving object matched with the field information as a target receiving object;
the judging unit is used for sequentially judging whether the field information meets each verification standard in each target receiving object;
the execution unit is used for verifying the validity of the field information if the field information meets all verification standards in all the target receiving objects; otherwise, the field information fails to pass the validity verification.
7. The apparatus of claim 6, further comprising:
the classification unit is used for classifying each interface field to obtain each field type and setting a plurality of verification standards for each field type;
and the generating unit is used for determining each field type as a receiving object, and arranging each receiving object according to a preset arrangement rule to generate a responsibility chain.
8. The apparatus according to claim 6, wherein the determining unit is specifically configured to:
taking the first verification standard of the target receiving object as a standard to be verified; and judging whether the field information meets the to-be-verified standard or not, if so, taking the next verification standard of the to-be-verified standard as a new to-be-verified standard, and judging whether the field information meets the to-be-verified standard or not again until the field information does not meet the to-be-verified standard or the next verification standard does not exist in the to-be-verified standard.
9. The apparatus of claim 6, wherein the determining unit comprises:
the acquiring subunit is configured to acquire each piece of parameter configuration information in the field information, and determine a receiving object corresponding to each piece of parameter configuration information;
and the determining subunit is configured to determine, if the parameter configuration information meets a preset matching condition, that the receiving object corresponding to the parameter configuration information is a target receiving object.
10. The apparatus of claim 6, further comprising:
and the frame generating unit is used for generating a data validity verification code frame according to the verification responsibility chain and preset code configuration information so as to realize validity verification of the field information according to each parameter configuration information in the field information.
CN202210568713.2A 2022-05-24 2022-05-24 Data validity verification method and device Pending CN114896964A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210568713.2A CN114896964A (en) 2022-05-24 2022-05-24 Data validity verification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210568713.2A CN114896964A (en) 2022-05-24 2022-05-24 Data validity verification method and device

Publications (1)

Publication Number Publication Date
CN114896964A true CN114896964A (en) 2022-08-12

Family

ID=82724932

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210568713.2A Pending CN114896964A (en) 2022-05-24 2022-05-24 Data validity verification method and device

Country Status (1)

Country Link
CN (1) CN114896964A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116955211A (en) * 2023-09-21 2023-10-27 中国标准化研究院 Standard compliance testing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075989A (en) * 2007-03-23 2007-11-21 腾讯科技(深圳)有限公司 Method and system for verifying field validity
CN104077682A (en) * 2014-06-30 2014-10-01 昆山云景网络科技有限公司 Document data entry method based on OCR and task fragmentization
CN111125731A (en) * 2019-12-11 2020-05-08 支付宝(杭州)信息技术有限公司 Business processing method, device and equipment based on verifiable statement
CN112328612A (en) * 2020-11-03 2021-02-05 平安信托有限责任公司 Method, system, device and medium for generating field consistency verification test data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075989A (en) * 2007-03-23 2007-11-21 腾讯科技(深圳)有限公司 Method and system for verifying field validity
CN104077682A (en) * 2014-06-30 2014-10-01 昆山云景网络科技有限公司 Document data entry method based on OCR and task fragmentization
CN111125731A (en) * 2019-12-11 2020-05-08 支付宝(杭州)信息技术有限公司 Business processing method, device and equipment based on verifiable statement
CN112328612A (en) * 2020-11-03 2021-02-05 平安信托有限责任公司 Method, system, device and medium for generating field consistency verification test data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116955211A (en) * 2023-09-21 2023-10-27 中国标准化研究院 Standard compliance testing method and device, electronic equipment and storage medium
CN116955211B (en) * 2023-09-21 2024-01-12 中国标准化研究院 Standard compliance testing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109063985B (en) Business risk decision method and device
US10884826B2 (en) System and method for establishing common request processing
CN111580874B (en) System safety control method and system for data application and computer equipment
KR102672533B1 (en) system and method for automatic investment of financial assets based on quint investment
CN110766275A (en) Data verification method and device, computer equipment and storage medium
CN110288755A (en) The invoice method of inspection, server and storage medium based on text identification
CN104376452A (en) System and method for managing payment success rate on basis of international card payment channel
CN111782809A (en) International reimbursement network data processing method, device, electronic equipment and storage medium
CN110197426B (en) Credit scoring model building method, device and readable storage medium
CN110851298A (en) Abnormality analysis and processing method, electronic device, and storage medium
CN112711640A (en) Method and device for configuring business handling process
CN114896964A (en) Data validity verification method and device
CN113190562A (en) Report generation method and device and electronic equipment
CN116860856A (en) Financial data processing method and device, computer equipment and storage medium
KR20120032606A (en) Stock investment system enabling participattion of stock investment clients and method thereof
WO2016123657A1 (en) Computer implemented frameworks and methodologies configured to enable generation of a synthetic profit and loss report based on business data, and loan management based on including risk-based loan construction and pricing and/or pricing based on data analysis of default risk and loss given default parameters
CN111242773A (en) Virtual resource application docking method and device, computer equipment and storage medium
CN111709709A (en) Information processing method, system and computer equipment based on warranty service
CN114240335A (en) Data processing method and device
CN115686495A (en) Application generation method and device and server
CN115545858A (en) RPA-based automatic account checking method, device, equipment and storage medium
CN115578170A (en) Financial batch certificate making method, device, equipment and storage medium
CN113537964A (en) Application form processing method, device, storage medium and device
CN113015170A (en) Short message verification method, device, electronic equipment and medium
CN117710068B (en) Temporary supplier verification method, device and equipment based on artificial intelligence

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