Data verification method and device
By determining the content, structure and characteristic information of the input field, determining the verification type based on the characteristic information, and performing data verification, the development difficulties caused by complex interfaces in the existing technology are solved, and the system flexibility and efficiency improvement is achieved.
Patent Information
- Application Number
- CN202111134901.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-27
- Publication Date
- 2024-11-19
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing data verification methods require different interface data, which leads to difficulties in developing external systems, excessive interface content, and lack of flexibility.
By obtaining the input keyword information, determining the input field content information, structure information and characteristic information, determining the verification type based on the characteristic information, performing data verification, and providing a unified interface data item, the external system does not need to change the interface input and output.
It improves system flexibility, simplifies the data verification process of external systems, reduces the need for interface changes, and enhances the flexibility and efficiency of data verification.
Smart Images

Figure CN113779644B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the financial field, and in particular to a data verification method and device. It should be noted that the data verification method and device of the present invention can be used in the financial field, and can also be used in any field other than the financial field, and the application field of the data verification method and device of the present invention is not limited. Background Art
[0002] Data verification includes checking the correctness of the enterprise organization code and whether the account status is normal.
[0003] Various existing data verifications require different interface data to complete, but the interface content is too complicated for external systems, and there are various types, which makes it difficult to develop external systems.
[0004] Therefore, there is an urgent need for a data verification solution that can overcome the above problems. Summary of the invention
[0005] An embodiment of the present invention provides a data verification method for performing data verification to improve system flexibility. The method includes:
[0006] Get the input keyword information;
[0007] Determine input field content information, input field structure information and input field characteristic information according to the keyword information;
[0008] Determine a corresponding verification type according to the input field characteristic information;
[0009] Data verification is performed according to the input field content information, input field structure information and verification type.
[0010] An embodiment of the present invention provides a data verification device for performing data verification to improve system flexibility. The device includes:
[0011] An information acquisition module, used to obtain input keyword information;
[0012] An information determination module, used to determine input field content information, input field structure information and input field characteristic information according to the keyword information;
[0013] A type determination module, used to determine a corresponding verification type according to the input field characteristic information;
[0014] The data verification module is used to perform data verification according to the input field content information, input field structure information and verification type.
[0015] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned data verification method when executing the computer program.
[0016] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above data verification method.
[0017] The embodiment of the present invention obtains input keyword information; determines input field content information, input field structure information and input field characteristic information according to the keyword information; determines a corresponding check type according to the input field characteristic information; and performs data check according to the input field content information, input field structure information and check type. The embodiment of the present invention determines the corresponding check type according to the input field characteristic information, so that data check can be performed according to the input field content information, input field structure information and check type, and there is no need to change the interface input and output for the external system, thereby effectively improving the flexibility of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0019] Figure 1 Schematic diagram of a data verification method in an embodiment of the present invention;
[0020] Figure 2 A schematic diagram of another data verification method in an embodiment of the present invention;
[0021] Figure 3 A schematic diagram of another data verification method in an embodiment of the present invention;
[0022] Figure 4 It is a structural diagram of a data verification device in an embodiment of the present invention;
[0023] Figure 5 It is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0025] First, the technical terms in the embodiments of the present invention are introduced:
[0026] Data verification: Data verification refers to a separate data check on a certain aspect, such as the correctness of the enterprise organization code, the normality of the account status, etc. However, it is not limited to the "correctness" check, but also includes business, institutional, temporary, and important types of verification.
[0027] In order to perform data verification and improve system flexibility, an embodiment of the present invention provides a data verification method, such as Figure 1 As shown, the method may include:
[0028] Step 101: Obtain input keyword information;
[0029] Step 102: Determine input field content information, input field structure information and input field characteristic information according to the keyword information;
[0030] Step 103: Determine the corresponding verification type according to the input field characteristic information;
[0031] Step 104: Perform data verification based on the input field content information, input field structure information and verification type.
[0032] Depend on Figure 1 As shown, the embodiment of the present invention obtains input keyword information; determines input field content information, input field structure information and input field characteristic information according to the keyword information; determines the corresponding verification type according to the input field characteristic information; and performs data verification according to the input field content information, input field structure information and verification type. The embodiment of the present invention determines the corresponding verification type according to the input field characteristic information, so that data verification can be performed according to the input field content information, input field structure information and verification type, and there is no need to change the interface input and output for the external system, thereby effectively improving the flexibility of the system.
[0033] In the embodiment, input keyword information is obtained, and input field content information, input field structure information and input field characteristic information are determined based on the keyword information.
[0034] In this embodiment, Figure 2 As shown, according to the keyword information, the input field content information, the input field structure information and the input field characteristic information are determined, including:
[0035] Step 102': according to the keyword information, obtain input field content information, input field structure information and input field characteristic information from a preset input field configuration table.
[0036] In the embodiment, the corresponding verification type is determined according to the input field characteristic information.
[0037] In this embodiment, Figure 3 As shown, according to the input field characteristic information, the corresponding verification type is determined, including:
[0038] Step 103': according to the input field characteristic information, obtain the corresponding check type from the preset check configuration table.
[0039] In the embodiment, data verification is performed according to the input field content information, the input field structure information and the verification type.
[0040] In this embodiment, data verification is performed according to the input field content information, the input field structure information and the verification type, including:
[0041] According to the verification type, determining a corresponding verification logic unit;
[0042] Data verification is performed according to the input field content information, the input field structure information and the verification logic unit.
[0043] The embodiment of the present invention integrates various independent single verification logic units, provides a common fixed-length data segment as the input of the data verification module, and outputs the verification result as a common output. For the external system, "data verification" becomes a simple and efficient device. According to the characteristics of the external input data, the data verification required is obtained according to the configuration table, and the verification check is performed one by one in a separate call type. After the results are collected, they are output to the external system.
[0044] The embodiment of the present invention provides a unified interface data item to the outside. If some interface fields are meaningless or unavailable to a certain external system, they may not be assigned values. Only those fields with values can be assigned values. The degree of freedom is relatively high. For the external system, it is only necessary to assign values to all assignable fields at once. The output fields are also unified interfaces in the same way. Since data verification includes a wide variety of types, it is often necessary to add, delete, and modify the corresponding inspection content, so it is necessary to change it frequently. For the corresponding data verification module, the fields (features) input through the interface are configured using a database table to complete the inspection of whether it is needed. In this way, the flexibility for the external system is greatly improved, and the external system can be realized without modification.
[0045] The embodiment of the present invention needs to preset the input field configuration table and the check configuration table. The input interface has a fixed length, such as 5000 bits. Then, for the external A system, 50 fields need to be input, so the type and length of the field need to be defined. For the external B system, 80 fields need to be input, so the type and length also need to be defined in the table. The pairing relationship between the external input field feature field and the verification to be done needs to be defined in the table. Through the input keyword information, the input field content and structure are obtained from the input field configuration table, so as to clarify the input content, which fields have values, etc. Then, through the characteristic information in the input field, the check and verification to be done are obtained from the check configuration table, and then each check and verification can be performed in a loop. The two configuration tables do not need to be changed after setting. If a check is added, data needs to be configured, and a check unit is independently developed. For the corresponding external system, there is no need to change the interface input and output, and there is no need to be aware of the specific single verification logic. If the type of verification determined by the input characteristics changes, there is no need to modify the source program, only configuration is required.
[0046] Based on the same inventive concept, the present invention also provides a data verification device, as described in the following embodiments. Since the principles of solving these problems are similar to the data verification method, the implementation of the data verification device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0047] Figure 4 FIG. 1 is a structural diagram of a data verification device in an embodiment of the present invention. Figure 4 As shown, the data verification device comprises:
[0048] Information acquisition module 401, used to obtain input keyword information;
[0049] An information determination module 402, for determining input field content information, input field structure information and input field characteristic information according to the keyword information;
[0050] A type determination module 403, used to determine a corresponding verification type according to the input field characteristic information;
[0051] The data verification module 404 is used to perform data verification according to the input field content information, input field structure information and verification type.
[0052] In one embodiment, the information determination module 402 is further configured to:
[0053] According to the keyword information, input field content information, input field structure information and input field characteristic information are obtained from a preset input field configuration table.
[0054] In one embodiment, the type determination module 403 is further configured to:
[0055] According to the input field characteristic information, a corresponding check type is obtained from a preset check configuration table.
[0056] In one embodiment, the data verification module 404 is further used to:
[0057] According to the verification type, determining a corresponding verification logic unit;
[0058] Data verification is performed according to the input field content information, the input field structure information and the verification logic unit.
[0059] In summary, the embodiment of the present invention obtains input keyword information; determines input field content information, input field structure information and input field characteristic information according to the keyword information; determines the corresponding verification type according to the input field characteristic information; and performs data verification according to the input field content information, input field structure information and verification type. The embodiment of the present invention determines the corresponding verification type according to the input field characteristic information, so that data verification can be performed according to the input field content information, input field structure information and verification type, and there is no need to change the interface input and output for the external system, thereby effectively improving the flexibility of the system.
[0060] Based on the above invention concept, Figure 5 As shown, the present invention also proposes a computer device 500, including a memory 510, a processor 520, and a computer program 530 stored in the memory 510 and executable on the processor 520, wherein the processor 520 implements the aforementioned data verification method when executing the computer program 530.
[0061] Based on the aforementioned inventive concept, the present invention proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the aforementioned data verification method when executed by a processor.
[0062] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0063] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0064] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0066] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A data verification method, It is characterized in that include: Get the input keyword information; Determine input field content information, input field structure information and input field characteristic information according to the keyword information; Determine a corresponding verification type according to the input field characteristic information; Performing data verification according to the input field content information, input field structure information and verification type; According to the keyword information, input field content information, input field structure information and input field characteristic information are determined, including: According to the keyword information, the input field content information, the input field structure information and the input field characteristic information are obtained from a preset input field configuration table; According to the input field content information, the input field structure information and the verification type, data verification is performed, including: According to the verification type, determining a corresponding verification logic unit; Performing data verification according to the input field content information, input field structure information and verification logic unit; The verification logic unit is used to provide a common fixed-length data segment to the external system as an input for data verification, and the verification result is used as a common output.
2. The data verification method according to claim 1, It is characterized in that Determining a corresponding verification type according to the input field characteristic information includes: According to the input field characteristic information, a corresponding check type is obtained from a preset check configuration table.
3. A data verification device, It is characterized in that include: An information acquisition module, used to obtain input keyword information; An information determination module, used to determine input field content information, input field structure information and input field characteristic information according to the keyword information; A type determination module, used to determine a corresponding verification type according to the input field characteristic information; A data verification module, used for performing data verification according to the input field content information, input field structure information and verification type; The information determination module is further used for: According to the keyword information, the input field content information, the input field structure information and the input field characteristic information are obtained from a preset input field configuration table; The data verification module is further used to: According to the verification type, determining a corresponding verification logic unit; Performing data verification according to the input field content information, input field structure information and verification logic unit; The verification logic unit is used to provide a common fixed-length data segment to the external system as an input for data verification, and the verification result is used as a common output.
4. The data verification device according to claim 3, It is characterized in that The module is further used to determine the type: According to the input field characteristic information, a corresponding check type is obtained from a preset check configuration table.
5. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 2 is implemented.
6. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
