CN116401148A - Form data verification method and device - Google Patents

Form data verification method and device Download PDF

Info

Publication number
CN116401148A
CN116401148A CN202310155407.0A CN202310155407A CN116401148A CN 116401148 A CN116401148 A CN 116401148A CN 202310155407 A CN202310155407 A CN 202310155407A CN 116401148 A CN116401148 A CN 116401148A
Authority
CN
China
Prior art keywords
verification
target
logic
target form
information
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
CN202310155407.0A
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.)
Boc Financial Technology Co ltd
Original Assignee
Boc Financial Technology 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 Boc Financial Technology Co ltd filed Critical Boc Financial Technology Co ltd
Priority to CN202310155407.0A priority Critical patent/CN116401148A/en
Publication of CN116401148A publication Critical patent/CN116401148A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3608Software analysis for verifying properties of programs using formal methods, e.g. model checking, abstract interpretation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a form data verification method and device, wherein the method comprises the following steps: determining a target verification category of the target form and a data field to be verified corresponding to the form information based on the form information of the target form; based on the target verification category, obtaining a verification logic code block of the target form from a form verification library; and verifying the target form based on the verification logic code block and the data field to be verified of the target form, and determining a verification result of the target form. According to the form data verification method and device, the corresponding verification logic code blocks are automatically obtained according to the form types in a form verification library mode, so that automatic verification of the target form is realized, and the verification efficiency of the form is improved. When the form needs to be changed, the association relation of a plurality of check logic code blocks corresponding to the form category can be directly used for realizing the quick and efficient change of the form logic.

Description

Form data verification method and device
Technical Field
The invention relates to the technical field of computers, in particular to a form data verification method and device.
Background
The existing design of the form flow is generally designed by a flow form designer, then delivered to a developer, and written into the background in a hard-coded mode.
In the existing form design process, when a low-code process center designs a form, if too many forms are set for calculation and verification rules, a user can easily generate a clamping phenomenon when filling in the process data and submitting the process form for verification, and the process designer needs too much attention to front-end related knowledge, so that the use efficiency is reduced. In addition, when the form logic is changed, the verification logic of the form needs to be rewritten, the hard coding of the form is changed, and the process is complicated.
Disclosure of Invention
The invention provides a form data verification method and device, which are used for solving the technical problem of low efficiency caused by complicated process when a form is verified and form logic is changed in the prior art.
The invention provides a form data verification method, which comprises the following steps:
determining a target verification category of a target form and a data field to be verified corresponding to the form information based on the form information of the target form;
based on the target verification category, acquiring a verification logic code block of the target form from a form verification library, wherein the form verification library is constructed in advance;
and verifying the target form based on the verification logic code block of the target form and the data field to be verified, and determining a verification result of the target form.
According to the form data verification method provided by the invention, the target form is verified based on the verification logic code block of the target form and the data field to be verified, and the method comprises the following steps:
based on the form information, combining the check logic code blocks of the target form to obtain a check logic sequence of the target form;
and verifying the target form based on the verification logic sequence and the data field to be verified.
According to the form data verification method provided by the invention, based on the form information, the verification logic code blocks of the target form are combined to obtain the verification logic sequence of the target form, and the method comprises the following steps:
determining a logic verification sequence in the target form based on the form information;
and combining the check logic code blocks of the target form based on the logic check sequence to obtain a check logic sequence of the target form.
According to the form data verification method provided by the invention, after the verification result of the target form is determined, the method further comprises the following steps:
determining verification prompt information of the target form according to the verification result;
and sending the verification prompt information to a front-end interface so that the front-end interface can display the verification prompt information.
According to the form data verification method provided by the invention, the method for pre-constructing the form verification library comprises the following steps:
correlating the verification category of the form with a plurality of verification logic code blocks corresponding to the verification category to obtain verification correlation information of the form;
and constructing a form verification library based on the verification association information.
According to the form data verification method provided by the invention, the form verification library is constructed in advance, and the method further comprises the following steps:
receiving verification logic change information of the target form;
and based on the verification logic change information, changing verification association information corresponding to the target form in the form verification library.
The invention also provides a form data verification device, which comprises:
the information processing module is used for determining a target verification category of the target form and a data field to be verified corresponding to the form information based on the form information of the target form;
the retrieval module is used for acquiring a check logic code block of the target form from a form check library based on the target check category, wherein the form check library is constructed in advance;
and the verification module is used for verifying the target form based on the verification logic code block of the target form and the data field to be verified and determining a verification result of the target form.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes any form data verification method when executing the computer program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a form data verification method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements a form data verification method as described in any one of the above.
According to the form data verification method and device, the target verification type of the target form and the data field to be verified corresponding to the form information are determined through the form information of the target form, the verification logic code block of the target form is obtained from the form verification library, and the verification process of the target form is realized based on the verification logic code block of the target form and the data field to be verified. Based on the form checking library mode, the corresponding checking logic code blocks are automatically acquired according to the form types, so that the complete checking logic of the form is automatically generated according to the form types, and the form checking efficiency is improved. When the form needs to be changed, the association relation of the form category or a plurality of check logic code blocks corresponding to the form category can be directly changed, so that the form logic can be changed quickly and efficiently.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the invention and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a form data verification method provided by the invention;
FIG. 2 is a schematic diagram of the form data checking device provided by the invention;
fig. 3 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic flow chart of a form data verification method provided by the invention. Referring to fig. 1, the form data verification method provided by the present invention may include:
step 110, determining a target verification category of a target form and a data field to be verified corresponding to the form information based on the form information of the target form;
step 120, based on the target verification category, obtaining a verification logic code block of the target form from a form verification library, wherein the form verification library is pre-constructed;
and 130, checking the target form based on the check logic code block of the target form and the data field to be checked, and determining a check result of the target form.
The execution subject of the form data verification method provided by the invention can be electronic equipment, components in the electronic equipment, an integrated circuit or a chip. The electronic device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet, notebook, palmtop, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS) or personal computer (personal computer, PC), etc., the invention is not particularly limited.
The technical scheme of the invention is described in detail below by taking a computer to execute the form data verification method provided by the invention as an example.
In step 110, form information of a target form is obtained, and a target verification type of the target form and a data field to be verified corresponding to the form information of the target form are determined based on the form information of the target form.
The form is mainly responsible for the data acquisition function in the web page. A form has three basic components: form labels, form fields, and form buttons. Form label: a URL (Uniform Resource Locator ) of a CGI (Common Gateway Interface, universal gateway interface) program for handling form data and a method of submitting data to a server are included. Form field: including text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio boxes, drop down select boxes, and file upload boxes, among others. Form button: the system comprises a submit button, a reset button and a general button; the CGI script used to transfer data to the server or cancel the input may also use form buttons to control other processing tasks that define the processing script.
Form information for a target form can be derived from three basic components of the target form: form labels, form fields, and form buttons. Based on the form information, the verification category of the target form can be determined, and the target verification category of the target form can be determined. The form information of the target form comprises a target verification type corresponding to the target form and a data field to be verified for verifying the target form.
The target verification category of the target form refers to a specific category of the form, and can be divided according to labels of the form. Such as approval category forms, business process category forms, or flow category forms. The forms of the approval category can be classified into financial approval forms, travel approval flow forms, leave approval flow forms and the like. The types of different forms are different in data to be checked, checking flow and checking logic.
After determining the target verification category of the target form, verification logic of the target form may be determined based on the verification category of the target form.
It can be appreciated that, according to the form information of the target form, the data field to be verified in the target form to be verified can be determined. The verification of the target form can be realized based on the verification logic of the form and the data field to be verified.
In step 120, after determining the target verification category of the target form in step 110, a verification logic code block corresponding to the verification category of the target form is obtained from the form verification library.
The form verification library is pre-constructed, and the specific construction process can be as follows: all possible verification categories of the form are obtained. And associating the verification category of the form with a plurality of verification logic code blocks corresponding to the verification category to obtain verification association information of the verification category. The check logic code block is a logic code corresponding to check logic. A form may contain multiple check logic, so the complete check logic of a form may be constructed based on multiple check logic code blocks.
After determining the target verification category of the target form, inquiring in a form verification library based on the target verification category. Based on the association information, the plurality of check logic code blocks corresponding to the check categories in the library of the lookup table Shan Jiaoyan.
And after the plurality of check logic code blocks of the target form, combining the obtained plurality of check logic code blocks according to the check flow of the target form to obtain a subsequent check logic flow for checking the target form.
In the process of checking the forms corresponding to different services in practice, the checking flow of the forms corresponding to different services is different. And combining the needed check logic code blocks according to the check categories corresponding to the services to obtain form check logic flows of different services. The verification process of the forms corresponding to different services can be designed according to the service requirements.
Based on the code blocks, the forms of different check logic code blocks are determined, so that the combination of the different check logic code blocks according to the requirements of different services can be realized, and the check flow of each service is realized through the codes of the blocks.
It will be appreciated that for a class of forms, multiple check logic may be included, i.e., may be made up of multiple different check logic code blocks. Based on the category of the form, a plurality of check logic code blocks of the form are obtained from a form check library to form the complete check logic of the form. The form is verified based on the integrity verification logic.
For form flow designers, much computation and verification rules need to be focused on when designing the flow form, resulting in more front-end related knowledge being required, and more reasons for the advent of low code platforms, it is desirable that the designer not have excessive front-end related knowledge.
Based on the form checking library mode, corresponding checking logic code blocks are automatically acquired according to the form types, and for the design of more concerned business processes of process designers who are not familiar with code development, the related data calculation and checking rules can be conveniently set and quoted in the process form through simple setting, and different rules are conveniently quoted at different nodes submitted in the process, so that the flow of the process is better controlled.
In step 130, after determining the check logic code block and the data field to be checked of the target form, the target form is checked to determine a check result of the target form.
After determining the check logic code blocks of the target form, the check logic code blocks of the target form may be combined to obtain a complete check logic flow of the target form. And verifying the target form based on the complete verification logic flow of the target form and the data field to be verified, and determining the verification result of the target form.
And in the process of checking the target form, collecting returned real-time data in the form checking process, and sending the returned real-time data to the user. The real-time data can comprise prompt information returned by a user in the middle of filling in a form or verification result information determined by calling an interface after submitting a flow. Therefore, the complex calculation and page data back display of the flow data of the target form are realized before the user submits the verification of the target form, and the calculation and control of the multidimensional variables such as workload or cost can be also performed when the target form is submitted.
It will be appreciated that the form needs to be checked both during development and during actual use. In the development process, only the check category of the form needs to be configured. In the process of checking the form, the complete check logic of the target form is determined from the form check library based on the check category of the form. When the form needs to be changed, the association relation of the form category or a plurality of check logic code blocks corresponding to the form category can be directly changed, so that the form logic can be changed quickly and efficiently. The verification logic of the form is prevented from being written into a hard-coded form in the development process, so that the change efficiency is low under the condition that the form needs to be changed.
According to the form data verification method provided by the embodiment of the invention, through the form information of the target form, the target verification type of the target form and the data field to be verified corresponding to the form information are determined, the verification logic code block of the target form is obtained from the form verification library, and the verification process of the target form is realized based on the verification logic code block of the target form and the data field to be verified. Based on the form checking library mode, the corresponding checking logic code blocks are automatically acquired according to the form types, so that the complete checking logic of the form is automatically generated according to the form types, and the form checking efficiency is improved. When the form needs to be changed, the association relation of the form category or a plurality of check logic code blocks corresponding to the form category can be directly changed, so that the form logic can be changed quickly and efficiently.
In one embodiment, verifying the target form based on the verification logic code block of the target form and the data field to be verified includes: based on the form information, combining the check logic code blocks of the target form to obtain a check logic sequence of the target form; and verifying the target form based on the verification logic sequence and the data field to be verified.
After the check logic code blocks of the target form are acquired, the check logic code blocks of the target form are combined based on the form information of the target form. The form information of the target form comprises a logic sequence for checking the target form. And checking the check logic code blocks in the target form based on the form information of the target form to obtain a check logic sequence of the target form.
It can be appreciated that the check logic sequence of the target form includes the check logic of the target form and the check sequence of the check logic. Based on the verification logic sequence of the target form, the verification logic of the target form is verified according to the verification sequence, so that the verification of the target form can be completed.
According to the form data verification method provided by the embodiment of the invention, the verification logic code blocks of the target form are combined through the form information of the target form to obtain the verification logic sequence of the target form, and the target form is logically verified based on the verification logic sequence of the target form, so that the verification process of the target form is realized.
In one embodiment, based on the form information, the check logic code blocks of the target form are combined to obtain a check logic sequence of the target form, including: determining a logic verification sequence in the target form based on the form information; and combining the check logic code blocks of the target form based on the logic check sequence to obtain a check logic sequence of the target form.
The verification logic sequence of the target form comprises the verification logic of the target form and the verification sequence of the verification logic. Based on the check logic sequence of the target form, the check logic code blocks of the target form are combined according to the check sequence, so that the check logic sequence of the target form can be obtained.
For a category of forms, containing multiple check logic, may be determined based on a combination of multiple different check logic code blocks. Therefore, after determining a plurality of check logic code blocks of the target form, combining the determined plurality of check logic code blocks according to the logic check sequence in the target form to obtain the complete check logic of the target form.
And combining the check logic code blocks of the target form to obtain a check logic sequence of the target form, namely obtaining the complete check logic of the target form. The verification process of the target form may be implemented based on complete verification logic for the target form.
According to the form data verification method provided by the embodiment of the invention, the logic verification sequence in the target form is determined through the form information of the target form, and based on the determined logic verification sequence, the verification logic code blocks of the target form are combined to obtain the verification logic sequence of the target form, so that a foundation is provided for the subsequent verification of the target form.
In one embodiment, after determining the verification result of the target form, the method further includes: determining verification prompt information of the target form according to the verification result; and sending the verification prompt information to a front-end interface so that the front-end interface can display the verification prompt information.
After the verification result of the target form is determined, the verification prompt information of the target form is determined based on the verification result of the target form. The verification prompt information of the target form can comprise specific fields of passing target form verification, failing target form verification, specific logic codes of failing target form verification and the like.
After the verification prompt information of the target form is determined, the verification prompt of the target form is newly sent to the front-end interface, and the verification prompt information of the target form is displayed on the front-end interface in real time.
It can be understood that when the developer designs the form, the logic of the target form is determined, and under the condition of testing the logic of the target form, the verification result of the target form, the verification prompt information such as the verification error and the like are returned in real time, so that the adjustment of the developer to the design of the target form is facilitated.
In the process of checking the target form by using the system, the user can check the specific state of the current form in real time based on the real-time feedback of the checking result of the target form by the front-end interface. Since the verification logic of the target form is modular, it is combined from multiple blocks of verification logic code. Under the condition that the verification result is abnormal, the code blocks which are abnormal can be quickly positioned based on a plurality of verification logic code blocks of the target form, so that the problem can be quickly checked.
According to the form data verification method provided by the embodiment of the invention, after the verification prompt information of the target form is determined, the verification prompt information of the target form is newly sent to the front-end interface, the verification prompt information of the target form is displayed on the front-end interface in real time, and under the condition of testing the logic of the target form, the verification result of the target form, the verification prompt information such as verification errors and the like are returned in real time, so that the design adjustment of the target form by a developer is facilitated.
In one embodiment, the method for pre-constructing the form verification library includes: correlating the verification category of the form with a plurality of verification logic code blocks corresponding to the verification category to obtain verification correlation information of the form; and constructing a form verification library based on the verification association information.
The form verification library is constructed based on a plurality of verification logic code blocks corresponding to the verification categories of the forms. In the process of constructing the form verification library, the method can be used for acquiring the verification category of each form. And respectively configuring a plurality of check logic code blocks corresponding to each check category.
And associating a plurality of check logic code blocks corresponding to each check category to obtain the check association information of the form, and constructing a form check library based on the determined form check association information.
And in the process of checking the target form, after determining the target check category of the target form, inquiring in a form check library based on the target check category. Based on the association information, the plurality of check logic code blocks corresponding to the check categories in the library of the lookup table Shan Jiaoyan.
According to the form data verification method provided by the embodiment of the invention, verification association information of the form is obtained by associating the verification category of the form with a plurality of verification logic code blocks corresponding to the verification category; based on the verification association information, a form verification library is constructed, the form verification library is constructed, and a foundation is provided for verification of a subsequent target form.
In one embodiment, the form verification library is pre-built, and further includes: receiving verification logic change information of the target form; and based on the verification logic change information, changing verification association information corresponding to the target form in the form verification library.
After the form verification library is built, in actual use, there may be a case where verification logic of the target form is changed.
And when the verification logic of the target form needs to be changed, receiving verification logic change information aiming at the target form in the form verification library. The verification logic change information is used for changing the verification logic of the target form.
And after receiving the verification logic change information of the target form, changing the verification association information corresponding to the target form in the form verification library. And changing the check category of the target form and a plurality of check logic code blocks corresponding to the check category.
It can be appreciated that, based on the way of verifying the logical code blocks, when the verification logic of the target form is changed, the quick change of the verification logic of the target form can be realized based on the way of replacing a certain verification logical code block.
According to the form data verification method provided by the embodiment of the invention, through the verification logic change information of the target form, the verification association information corresponding to the target form in the form verification library is changed, and when the verification logic of the target form is changed, the quick change of the verification logic of the target form can be realized based on a mode of replacing a certain verification logic code block, so that the change efficiency of the verification logic is improved.
Fig. 2 is a schematic structural diagram of a form data verification device provided by the present invention, as shown in fig. 2, the device includes:
the information processing module 210 is configured to determine, based on form information of a target form, a target verification type of the target form and a data field to be verified corresponding to the form information;
a retrieving module 220, configured to obtain, based on the target verification category, a verification logic code block of the target form from a form verification library, where the form verification library is pre-constructed;
and the verification module 230 is configured to verify the target form based on the verification logic code block of the target form and the data field to be verified, and determine a verification result of the target form.
According to the form data verification device provided by the embodiment of the invention, the target verification type of the target form and the data field to be verified corresponding to the form information are determined through the form information of the target form, the verification logic code block of the target form is obtained from the form verification library, and the verification process of the target form is realized based on the verification logic code block of the target form and the data field to be verified. Based on the form checking library mode, the corresponding checking logic code blocks are automatically acquired according to the form types, so that the complete checking logic of the form is automatically generated according to the form types, and the form checking efficiency is improved. When the form needs to be changed, the association relation of the form category or a plurality of check logic code blocks corresponding to the form category can be directly changed, so that the form logic can be changed quickly and efficiently.
In one embodiment, the verification module 230 is specifically configured to:
verifying the target form based on the verification logic code block of the target form and the data field to be verified, including:
based on the form information, combining the check logic code blocks of the target form to obtain a check logic sequence of the target form;
and verifying the target form based on the verification logic sequence and the data field to be verified.
In one embodiment, the verification module 230 is further specifically configured to:
based on the form information, combining the check logic code blocks of the target form to obtain a check logic sequence of the target form, wherein the check logic sequence comprises the following steps:
determining a logic verification sequence in the target form based on the form information;
and combining the check logic code blocks of the target form based on the logic check sequence to obtain a check logic sequence of the target form.
In one embodiment, the verification module 230 is further specifically configured to:
after determining the verification result of the target form, the method further comprises the following steps:
determining verification prompt information of the target form according to the verification result;
and sending the verification prompt information to a front-end interface so that the front-end interface can display the verification prompt information.
In one embodiment, the information processing module 210 is specifically configured to:
the method for pre-constructing the form verification library comprises the following steps:
correlating the verification category of the form with a plurality of verification logic code blocks corresponding to the verification category to obtain verification correlation information of the form;
and constructing a form verification library based on the verification association information.
In one embodiment, the information processing module 210 is further specifically configured to:
the form verification library is pre-built, and the method further comprises the following steps:
receiving verification logic change information of the target form;
and based on the verification logic change information, changing verification association information corresponding to the target form in the form verification library.
Fig. 3 illustrates a physical schematic diagram of an electronic device, as shown in fig. 3, where the electronic device may include: processor 310, communication interface (Communications Interface) 320, memory 330 and communication bus 340, wherein processor 310, communication interface 320, memory 330 accomplish communication with each other through communication bus 340. The processor 310 may invoke logic instructions in the memory 330 to form a data verification method comprising:
determining a target verification category of a target form and a data field to be verified corresponding to the form information based on the form information of the target form;
based on the target verification category, acquiring a verification logic code block of the target form from a form verification library, wherein the form verification library is constructed in advance;
and verifying the target form based on the verification logic code block of the target form and the data field to be verified, and determining a verification result of the target form.
Further, the logic instructions in the memory 330 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a form data verification method provided by the above methods, the method comprising:
determining a target verification category of a target form and a data field to be verified corresponding to the form information based on the form information of the target form;
based on the target verification category, acquiring a verification logic code block of the target form from a form verification library, wherein the form verification library is constructed in advance;
and verifying the target form based on the verification logic code block of the target form and the data field to be verified, and determining a verification result of the target form.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the form data verification methods provided above, the method comprising:
determining a target verification category of a target form and a data field to be verified corresponding to the form information based on the form information of the target form;
based on the target verification category, acquiring a verification logic code block of the target form from a form verification library, wherein the form verification library is constructed in advance;
and verifying the target form based on the verification logic code block of the target form and the data field to be verified, and determining a verification result of the target form.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The form data verification method is characterized by comprising the following steps of:
determining a target verification category of a target form and a data field to be verified corresponding to the form information based on the form information of the target form;
based on the target verification category, acquiring a verification logic code block of the target form from a form verification library, wherein the form verification library is constructed in advance;
and verifying the target form based on the verification logic code block of the target form and the data field to be verified, and determining a verification result of the target form.
2. The form data verification method according to claim 1, wherein the verifying the target form based on the verification logic code block of the target form and the data field to be verified includes:
based on the form information, combining the check logic code blocks of the target form to obtain a check logic sequence of the target form;
and verifying the target form based on the verification logic sequence and the data field to be verified.
3. The form data verification method according to claim 2, wherein the combining the verification logic code blocks of the target form based on the form information to obtain the verification logic sequence of the target form includes:
determining a logic verification sequence in the target form based on the form information;
and combining the check logic code blocks of the target form based on the logic check sequence to obtain a check logic sequence of the target form.
4. The form data verification method according to claim 1, wherein after determining the verification result of the target form, further comprising:
determining verification prompt information of the target form according to the verification result;
and sending the verification prompt information to a front-end interface so that the front-end interface can display the verification prompt information.
5. The form data verification method according to claim 1, wherein the method of pre-constructing the form verification library comprises:
correlating the verification category of the form with a plurality of verification logic code blocks corresponding to the verification category to obtain verification correlation information of the form;
and constructing a form verification library based on the verification association information.
6. The form data verification method according to claim 5, wherein the pre-constructing the form verification library further comprises:
receiving verification logic change information of the target form;
and based on the verification logic change information, changing verification association information corresponding to the target form in the form verification library.
7. Form data verification device, characterized by comprising:
the information processing module is used for determining a target verification category of the target form and a data field to be verified corresponding to the form information based on the form information of the target form;
the retrieval module is used for acquiring a check logic code block of the target form from a form check library based on the target check category, wherein the form check library is constructed in advance;
and the verification module is used for verifying the target form based on the verification logic code block of the target form and the data field to be verified and determining a verification result of the target form.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the form data verification method according to any one of claims 1 to 6 when executing the computer program.
9. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the form data verification method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the form data verification method according to any one of claims 1 to 6.
CN202310155407.0A 2023-02-22 2023-02-22 Form data verification method and device Pending CN116401148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310155407.0A CN116401148A (en) 2023-02-22 2023-02-22 Form data verification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310155407.0A CN116401148A (en) 2023-02-22 2023-02-22 Form data verification method and device

Publications (1)

Publication Number Publication Date
CN116401148A true CN116401148A (en) 2023-07-07

Family

ID=87018612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310155407.0A Pending CN116401148A (en) 2023-02-22 2023-02-22 Form data verification method and device

Country Status (1)

Country Link
CN (1) CN116401148A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118377557A (en) * 2024-06-24 2024-07-23 浙江网盛数新软件股份有限公司 Self-defined form verification system based on asynchronous verification library and control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118377557A (en) * 2024-06-24 2024-07-23 浙江网盛数新软件股份有限公司 Self-defined form verification system based on asynchronous verification library and control method

Similar Documents

Publication Publication Date Title
CN113268336B (en) Service acquisition method, device, equipment and readable medium
CN110363663B (en) Block chain-based data batch processing method, device, equipment and storage medium
CN109710237A (en) A kind of online modification method of calibration and equipment based on customized two-dimentional report
CN111310232A (en) Data desensitization method and device, electronic equipment and storage medium
CN107528912A (en) A kind of automatic method, system and relevant apparatus for realizing distributing real time system
CN116401148A (en) Form data verification method and device
CN112561690B (en) Method, system, equipment and storage medium for testing credit card staged service interface
CN106294115A (en) The method of testing of a kind of application system animal migration and device
CN113297078A (en) MOCK system and data testing method based on MOCK system
CN110413523B (en) Drainage testing method, drainage testing middle table and computer readable storage medium
CN113051178A (en) Test data construction method, device, equipment and medium
CN110347973B (en) Method and device for generating information
CN114817024A (en) Use case generation method and device, equipment and storage medium
CN110287191B (en) Data alignment method and device, storage medium and electronic device
CN113342795B (en) Data checking method and device in application program, electronic equipment and storage medium
CN115576959B (en) Real-time quality inspection method and device, electronic equipment and storage medium
CN110750452A (en) Automatic testing method and device
CN117422602B (en) Multi-dimensional fusion method and system for rail transit planning
CN116501613A (en) Data generation method, device, apparatus, storage medium and program product
CN114943519A (en) Approval process processing method and device, processing equipment and medium
CN117911102A (en) Transaction processing method and device based on transaction link integrity
CN114462271A (en) Finite element model element layering information modification method, system, equipment and medium
CN112950138A (en) Collaborative development state management method and device and server
CN116382765A (en) Application configuration release system and method
CN104391785A (en) Testing method for ERP (Enterprise Resource Planning) 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