CA3203549A1 - Unified verification method, device, equipment and storage medium - Google Patents

Unified verification method, device, equipment and storage medium Download PDF

Info

Publication number
CA3203549A1
CA3203549A1 CA3203549A CA3203549A CA3203549A1 CA 3203549 A1 CA3203549 A1 CA 3203549A1 CA 3203549 A CA3203549 A CA 3203549A CA 3203549 A CA3203549 A CA 3203549A CA 3203549 A1 CA3203549 A1 CA 3203549A1
Authority
CA
Canada
Prior art keywords
verification
information
configuration information
special
field
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
CA3203549A
Other languages
French (fr)
Inventor
Hao Chen
Huasen Yu
Wei Sun
Wei Li
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.)
10353744 Canada Ltd
Original Assignee
10353744 Canada 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 10353744 Canada Ltd filed Critical 10353744 Canada Ltd
Publication of CA3203549A1 publication Critical patent/CA3203549A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • 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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0234Rebates after completed purchase

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Artificial Intelligence (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention discloses a unified verification method, apparatus, device and storage medium, main technical solution comprises: obtaining system service information and field information of the currently accessed service system; obtaining corresponding verification configuration information according to the system service information and the field information; verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system. The present application has the effect of achieving unified integration of data verification in order flow stage, ensuring correctness of order fee generated by rebate system and data integrity of multi-channel.

Description

UNIFIED VERIFICATION METHOD, DEVICE, EQUIPMENT AND STORAGE MEDIUM
Technical Field [0001] The present application relates to verification platform technology field, particularly relates to a unified verification method, apparatus, device and storage medium.
Background
[0002] At present, in the process of generating rebate fee order according to the core service of an enterprise, involving rebate fee order creation, order modification, order confirmation, order reversal, order deletion, order batch import, single page processing, batch pages processing and third-party interface empowerment, the operations of each stage need to be verified first.
Since each enterprise can connect with a plurality of suppliers, each supplier can come from different channels, and the service data content of each channel can be different, therefore, in the traditional implementation method, the verification platform needs to verify the service data of each channel separately.
[0003] However, using the above-mentioned method of separately verifying the service data of each channel, if the verification logic changes, going online with the version iteration is required, and the verification logic between the channels can be inconsistent after a plurality of version iterations, in addition, the mode of multi-channel and multi-verification-standard can lead to inconsistent order processing results of different channels, although the import of batch orders is confirmed successfully, resulting in the exception situations with page confirmation fails and redundancy led by the same verification logics. Due to the inability to respond in a timely manner after the verification logic changes, resulting in the inability to quickly respond to the service requests.
Invention Content
[0004] Based on this, the present application provides a unified verification method, apparatus, device and storage medium to achieve unified integration of data verification in order flow stage, ensure correctness of order fee generated by rebate system and data integrity of multi-channel.

Date Recue/Date Received 2023-06-15
[0005] On the first aspect, providing a unified verification method, wherein the method comprises:
[0006] Obtaining system service information and field information of the currently accessed service system;
[0007] Obtaining corresponding verification configuration information according to the system service information and the field information;
[0008] Verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system.
[0009] According to an achievable method of the present application, obtaining system service information and field information of the currently accessed service system, comprising:
[0010] Correspondingly configuring system service information, field information and verification logic of each service system with a general data model of a unified verification platform to obtain the corresponding verification configuration information corresponding to each service system, then synchronizing the corresponding verification configuration information to a remote dictionary server.
[0011] According to an achievable method of the present application, the system service information includes system name and service name, the field information includes field name and field value; the corresponding verification configuration information includes corresponding special verification configuration information and corresponding default verification configuration information; wherein, obtaining corresponding verification configuration information according to the system service information and the field information, comprising:
[0012] Obtaining corresponding special verification information according to system name, service name and field name;

Date Recue/Date Received 2023-06-15
[0013] If obtaining the corresponding special verification configuration information, executing the step of verifying the field information according to the corresponding special verification configuration information;
[0014] If the corresponding special verification configuration information is not obtained, then obtaining the corresponding default verification configuration information according to the service name and the field name;
[0015] If obtaining the corresponding default verification configuration information, executing the step of verifying the field information according to the corresponding default verification configuration information;
[0016] If the corresponding default verification configuration information is not obtained, the field information contained in the currently accessed service system does not need to be verified.
[0017] According to an achievable method of the present application, the corresponding special verification configuration information includes corresponding special basic verification configuration information and corresponding special other verification configuration information; the verification includes special basic verification and special other verification; wherein, if obtaining the corresponding special verification configuration information, executing the step of verifying the field information according to the corresponding special verification configuration information, comprising:
[0018] If obtaining the corresponding special basic verification configuration information, adding marks and attributes to the field information according to the corresponding special basic verification configuration information to obtain special annotation information; then executing the step of performing special basic verification on the field information according to the special annotation information;
[0019] If obtaining the corresponding special other verification configuration information, then executing the step of performing special other verification on the field information according to the Date Recue/Date Received 2023-06-15 corresponding special other verification configuration information.
[0020] According to an achievable method of the present application, the corresponding default verification configuration information includes the corresponding default basic verification configuration information and the corresponding default other verification configuration information;
the verification includes the default basic verification and default other verification; wherein, if obtaining the corresponding default verification configuration information, executing the step of verifying the field information according to the corresponding default verification configuration information, comprising:
[0021] If obtaining the corresponding default basic verification configuration information, adding marks and attributes to the field information according to the corresponding default basic verification configuration information to obtain default annotation information; then executing the step of performing default basic verification on the field information according to the default annotation information;
[0022] If obtaining the corresponding default other verification configuration information, then executing the step of performing default other verification on the field information according to the corresponding default other verification configuration information.
[0023] According to an achievable method of the present application, verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system, comprising:
[0024] When the verification is a special basic verification or a default basic verification;
[0025] If the verification fails, returning special annotation information of corresponding field information or annotation attribute information of default annotation information to the currently accessed service system;

Date Recue/Date Received 2023-06-15
[0026] If the verification succeeds, then returning automatically generated basic verification information corresponding to the field information to the currently accessed service system.
[0027] According to an achievable method of the present application, verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system, comprising:
[0028] When the verification is a special other verification or a default other verification;
[0029] If the verification fails, then returning automatically generated other verification exception information corresponding to the field information to the currently accessed service system;
[0030] If the verification succeeds, then returning automatically generated other verification information corresponding to the field information to the currently accessed service system.
[0031] On the second aspect, a unified verification apparatus is provided, the apparatus comprises:
[0032] An obtaining module configured to obtain system service information and field information of the currently accessed service system;
[0033] A configuring module configured to obtain corresponding verification configuration information according to the system service information and the field information;
[0034] A verifying module configured to verify the field information according to the corresponding verification configuration information and return verification result information to the currently accessed service system.
[0035] On the third aspect, a computer device is provided, comprising:
[0036] At least one processor; and Date Recue/Date Received 2023-06-15
[0037] One memory communication connected with the processor; wherein,
[0038] The memory stores computer instructions executed by at least one processor, so that the processor can perform any method of the above-mentioned first aspect.
[0039] On the fourth aspect, providing a computer readable storage medium stored with computer instructions configured to achieve configured to achieve any method of the above-mentioned first aspect.
[0040] According to the technical content of the embodiment of the present application, firstly, obtaining system service information and field information of the currently accessed service system;
furthermore, obtaining corresponding verification configuration information according to the system service information and the field information; in the end, verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system. Through the above-mentioned settings, achieving unified integration of data verification in order flow stage, ensuring correctness of order fee generated by rebate system and data integrity of multi-channel with the effect of improving order generation efficiency and request responding quickly.
Drawing Description
[0041] Figure 1 is system architecture diagram of unified verification method in an embodiment;
[0042] Figure 2 is a process diagram of unified verification method in an embodiment;
[0043] Figure 3 is a process diagram of step 203 of unified verification method in an embodiment;
[0044] Figure 4 is a structural diagram of unified verification apparatus in an embodiment;

Date Recue/Date Received 2023-06-15
[0045] Figure 5 is a structural diagram of a computer device in an embodiment.
Specific embodiment methods
[0046] The present application is further explained in detail with a particular embodiment thereof, and with reference to the drawings. It shall be understood that these descriptions are only intended to be illustrative, but not to limit the scope of the disclosure thereto.
[0047] For easy understanding, describing the system applied by the present application first. A unified verification method provided by the present application can be applied to the system architecture as shown in Figure 1. The system includes: an access device 102, a unified verification platform 104.
[0048] The access device 102 can be a plurality of service systems, each service system corresponds to a different supplier and needs to be connected to the unified verification platform 104 to complete the unified verification of each service system; and each service system is sequentially connected to the unified verification platform 104, the unified verification platform 104 performs unified verification to the currently accessed service system, after verification is completed, then verifying the next accessed service system, so as to achieve the unified verification of each service system.
[0049] Figure 2 is a process diagram of unified verification method in an embodiment of the present application, the method can be executed by the unified verification platform 104 as shown in the system of Figure 1. As shown in Figure 2, the method can include following steps:
[0050] Step 201, obtaining system service information and field information of the currently accessed service system.
[0051] Specifically, the unified verification platform obtains the system service information and the field information of the currently accessed service system through Java reflection mechanism.
Wherein, the Java reflection mechanism means during the running of program, objects of any class can be constructed, the class that any object belongs can be known, member variables and methods of Date Recue/Date Received 2023-06-15 any class can be known, properties and methods of any object can be called.
This function of dynamically obtaining program information and dynamically calling objects is the reflection mechanism of Java language, this reflection is regarded as the key to dynamic language.
[0052] What should be noted here is that since there are many service systems, the systems need to be connected to the unified verification platform for verifying one by one, thus, when the unified verification platform performs verification operations, obtaining the information about the service systems currently connected to the unified verification platform is required.
[0053] Step 203, obtaining corresponding verification configuration information according to the system service information and the field information.
[0054] Wherein, the verification configuration information refers to the configuration information for verifying the field information contained in the current service system, in other words, the specific content information of the verification.
[0055] Specifically, the unified verification platform searches the verification configuration information corresponding to the service system according to the system service information and the field information to obtain the verification configuration information.
[0056] Step 205, verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system.
[0057] Here, after obtaining the corresponding verification configuration information, the unified verification platform verifies the field information in the currently accessed service system according to the corresponding verification configuration information, after the verification is completed, no matter whether the verification is passed or not, returning the verification result information to the currently accessed service system is required, so that the service system can perform next step of operation.

Date Recue/Date Received 2023-06-15
[0058] In the present embodiment, firstly, obtaining system service information and field information of the currently accessed service system; furthermore, obtaining corresponding verification configuration information according to the system service information and the field information; in the end, verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system.
Through the above-mentioned settings, achieving unified integration of data verification in order flow stage, ensuring correctness of order fee generated by rebate system and data integrity of multi-channel with the effect of improving order generation efficiency and request responding quickly.
[0059] In some embodiment, before obtaining system service information and field information of the currently accessed service system, comprising:
[0060] Correspondingly configuring system service information, field information and verification logic of each service system with a general data model of a unified verification platform to obtain the corresponding verification configuration information corresponding to each service system, then synchronizing the corresponding verification configuration information to a remote dictionary server.
[0061] Here, the unified verification platform needs some pre-operations before obtaining system service information and field information of the currently accessed service system. Since the unified verification platform provides a unified verification service for a plurality of systems and services, the service focuses on specific service and supports multi-system access, according to the configuration information of each service system, the common logic verification and the verification of the special logic of individual system can be performed, therefore, configuring the page of the unified verification platform is required first.
[0062] Specifically, since the verification logic of each service system is basically different, therefore, each service system needs to agree on the data model for verification with the unified verification platform, both service system and unified verification platform define the data structure and perform a one-to-one correspondence between the field information of each service system and Date Recue/Date Received 2023-06-15 the general data model of the unified verification platform. In other words, configuring system service information, field information and verification logic of each service system correspondingly with the general data model of the unified verification platform to obtain the verification configuration corresponding to the system service information, the field information and the verification logic of each service system information.
[0063] Wherein, the general data model defines and encapsulates sensors and the underlying data observed by the sensors in a self-describing, semantically activated manner.
More precisely, a general data model is configured to define representation, nature, structure and encoding of sensors and the related data observed by the sensors. The main purpose of the model is to achieve sensor network interoperability, first at the grammatical level, then at the semantic level, sensors and the data observed by the sensors can be better understood by machine, can be automatically processed in complex workflows and can be easily shared between smart sensor network nodes. The general data model defines the underlying data model, the model allows users and/or servers to organize, encode and transmit sensor datasets in a self-describing and semantically manner.
[0064]
Here, after the unified verification platform obtains the corresponding verification configuration information, in order to achieve the persistence of the corresponding verification configuration information, each verification configuration information is stored and synchronized to the remote dictionary server using a relational database management system. In this way, when the order page changes, the verification configuration information is added, modified or deleted, it is required to synchronize the remote dictionary server to ensure the consistency of the corresponding verification configuration information.
[0065] Wherein, the relational database management system can be MYSQL
(Structured Query Language), MYSQL stores data in different tables instead of putting all data in a large warehouse, then increasing the computer running speed and improving the flexibility, in addition, the SQL language used by MYSQL is the most commonly used standardized language for accessing database, therefore, the development of small, medium and large websites generally chooses MYSQL as the website database.
Date Recue/Date Received 2023-06-15
[0066] The remote dictionary server can be Redis (Remote Dictionary Server), Redis can be used as database, cache and message middleware. Redis is a non-relational database based on high performance Key-Value and provides API in a plurality of languages. However, unlike traditional database, Redis data is stored in memory, so storing and writing can be very fast.
[0067] Through the above-mentioned operations, the unified verification platform can achieve the unified verification of each service system in later stage according to the corresponding verification configuration information completed with the configuration of each service system, and using MYSQL
as the underlying data storage, using Redis as the application cache, then achieving the effect of improving reading speed.
[0068] In some embodiment, as shown in Figure 3, the above-mentioned step 203 is described in detail, wherein obtaining corresponding verification configuration information according to the system service information and the field information.
[0069] Wherein, the system service information includes system name and service name, the field information includes field name and field value; the corresponding verification configuration information includes corresponding special verification configuration information and corresponding default verification configuration information.
[0070] Step 301, obtaining corresponding special verification information according to system name, service name and field name; if obtaining the corresponding special verification configuration information, executing step 303, verifying the field information according to the corresponding special verification configuration information; if the corresponding special verification configuration information is not obtained, then executing step 305, obtaining the corresponding default verification configuration information according to the service name and the field name.
[0071] Here, since the system service information includes system name and service name, the field information includes field name and field value. The unified verification platform first obtains the Date Recue/Date Received 2023-06-15 corresponding special verification configuration information according to the system name, the service name and the field name of the currently accessed service system, in other words, to confirm whether the currently accessed service system has special verification requirement. If obtaining the corresponding special verification configuration information, indicating that the currently accessed service system has special verification requirement, then executing the step of verifying the field information according to the corresponding special verification configuration information. If the corresponding special verification configuration information is not obtained, indicating that the currently accessed service system has no special verification requirement, then obtaining the corresponding default verification configuration information according to the service name and the field name.
[0072] After step 305, if obtaining the corresponding default verification configuration information, executing step 307, verifying the field information according to the corresponding default verification configuration information; if the corresponding default verification configuration information is not obtained, executing step 309, the field information contained in the currently accessed service system does not need to be verified.
[0073] Specifically, if obtaining the corresponding default verification configuration information, executing the step of verifying the field information according to the corresponding default verification configuration information, in other words, the field information contained in the service system still needs to be verified, but the corresponding default verification configuration information is used for unified verification. If the corresponding default verification configuration information is not obtained, the field information contained in the currently accessed service system does not need to be verified.
[0074] It should be noted that the above-mentioned obtaining sequence is performed due to the special requirements of some suppliers, therefore, obtaining the corresponding special verification configuration information according to the service system is required; when confirming that the supplier represented by the service system has no special requirement, then obtaining the corresponding default verification configuration information; if the corresponding default verification configuration information is also not obtained, indicating that the field information contained in the Date Recue/Date Received 2023-06-15 currently accessed service system does not need to be verified. In other words, through the above-mentioned progressive obtaining method, the complete verification of each service system is achieved.
[0075] In some embodiment, the above-mentioned step 303 is described in detail, wherein, if obtaining the corresponding special verification configuration information, executing the step of verifying the field information according to the corresponding special verification configuration information.
[0076]
Wherein, the corresponding special verification configuration information includes corresponding special basic verification configuration information and corresponding special other verification configuration information; the verification includes special basic verification and special other verification, the special basic verification includes length, format and legal verification of the field information; the special other verification logic includes the correctness of service system interface and the verification of associated multi-field information, etc.
[0077] In an achievable method, if obtaining the corresponding special basic verification configuration information, adding marks and attributes to the field information according to the corresponding special basic verification configuration information to obtain special annotation information; then executing the step of performing special basic verification on the field information according to the special annotation information.
[0078] Wherein, the special annotation information includes special annotation mark information and special annotation attribute information.
[0079] Here, after obtaining the corresponding special basic verification configuration information, the unified verification platform adds mark to the field information according to the corresponding special basic verification configuration information to obtain special annotation mark information;
assigns annotation attribute to the field information according to the corresponding special basic verification configuration information to obtain special annotation attribute information.

Date Recue/Date Received 2023-06-15
[0080]
According to the corresponding special basic verification configuration information, dynamically adding annotation to the field information to obtain special annotation mark information.
For example, both @NotBlank and g NotNull indicate non-empty, but the specific scope is different, @Pattern indicates the content of the specific special verification logic required for the field information, such as the ten-digit number must start with two 0, the following eight digits cannot contain Chinese and the length of the field value must be 9 digits. The special annotation mark information for the field information can be customized here. Assigning annotation attributes to the field information according to the corresponding special basic verification configuration information to obtain special annotation attribute information. For example, message and regexp are error reporting information, if the verification fails, returning the error reporting information to the accessed service system.
[0081] Specifically, annotations are dynamically added to the field information through Javaassist (Java Programing Assistant ) technology. Wherein, Javaassist is an open-source library for analyzing, editing and creating Java bytecode. The main advantage is simple and fast, the form of Java coding can be directly used for dynamically changing the class structure or dynamically generating class. The main purpose of using Javaassist technology is to explain what kind of basic verification needs to be done on the current field information and what kind of logic is used for basic verification.
[0082] The unified verification platform uses Hibernate Validator method to perform basic verification of the field information contained in the current service system according to the special annotation information. Wherein, Hibernate Validator is an open-source framework provided by Hibernate, achieving data verification on server side can be very convenient by using annotation method. In daily development, Hibernate Validator is often used to verify the field based on annotation, which is convenient, fast and efficient. This is also the function of adding special annotation information, only after adding special annotation information, Hibernate Validator will recognize the field information to verify.
[0083] In another achievable method, if obtaining the corresponding special other verification configuration information, then executing the step of performing special other verification on the field Date Recue/Date Received 2023-06-15 information according to the corresponding special other verification configuration information.
[0084] Here, when the unified verification platform obtains the corresponding special other verification configuration information, there is no need to add special annotation information to the field information, directly executing the step of performing special other verification on the field information according to the corresponding special other verification configuration information.
[0085] It should be noted that although the corresponding special verification configuration information includes the corresponding special basic verification configuration information and the corresponding special other verification configuration information, the verification includes special basic verification and special other verification, the general basic verification is required, and other verifications can be determined according to specific requirements.
[0086] In some embodiment, the above-mentioned step 307 is described in detail, wherein, if obtaining the corresponding default verification configuration information, executing the step of verifying the field information according to the corresponding default verification configuration information.
[0087] Wherein, the corresponding default verification configuration information includes the corresponding default basic verification configuration information and the corresponding default other verification configuration information; the verification includes the default basic verification and default other verification.
[0088] In an achievable method, if obtaining the corresponding default basic verification configuration information, adding marks and attributes to the field information according to the corresponding default basic verification configuration information to obtain default annotation information; then executing the step of performing default basic verification on the field information according to the default annotation information.
[0089] The operation after obtaining the corresponding default basic verification configuration Date Recue/Date Received 2023-06-15 information is the same as the above-mentioned operation after obtaining the corresponding special basic verification configuration information, only the specific verification configuration information is different and the operation will not be repeated here.
[0090] In another achievable method, if obtaining the corresponding default other verification configuration information, then executing the step of performing default other verification on the field information according to the corresponding default other verification configuration information.
[0091] The operation after obtaining the corresponding default other verification configuration information is the same as the above-mentioned operation after obtaining the corresponding special other verification configuration information, only the specific verification configuration information is different and the operation will not be repeated here.
[0092] In some embodiment, the above-mentioned step 205 is described in detail, wherein, verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system.
[0093] When the verification is a special basic verification or a default basic verification; if the verification fails, returning special annotation information of corresponding field information or annotation attribute information of default annotation information to the currently accessed service system; if the verification succeeds, then returning automatically generated basic verification information corresponding to the field information to the currently accessed service system. When the verification is a special other verification or a default other verification;
if the verification fails, then returning automatically generated other verification exception information corresponding to the field information to the currently accessed service system; if the verification succeeds, then returning automatically generated other verification information corresponding to the field information to the currently accessed service system.
[0094] In an achievable method, when Hibernate Validator technology is used to perform special basic verification or default basic verification of the field information, comprising: required field, field Date Recue/Date Received 2023-06-15 length, field format and field legality; for example, the format of the date field must use /, the legality of the date field cannot exceed the range. When the verification fails, returning the special annotation information of the corresponding field information or the annotation attribute information in the default annotation information to the currently accessed service system; wherein, the annotation attribute information is the above-mentioned message information; when the verification succeeds, returning the automatically generated basic verification information of the corresponding field information to the currently accessed service system, so that the service system can proceed to the next step based on the returned information operation.
[0095] In another achievable method, when the verification is a special other verification or a default other verification; if the verification fails, then returning automatically generated other verification exception information corresponding to the field information to the currently accessed service system;
if the verification succeeds, then returning automatically generated other verification information corresponding to the field information to the currently accessed service system. Since the other verification does not require annotation information, the returned information is the verification result information automatically generated by the unified verification platform.
[0096] What should be noted is although the above-mentioned steps of the process diagrams from Figure 2 to Figure 3 are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly provided instruction in this article, there is no strict order in which these steps can be performed, and they can be performed in any other orders. In addition, at least partial steps from Figure 2 to Figure 3 can include more sub steps or a plurality of stages, these sub steps or stages are not necessarily completed at the same time but can be executed in different time, the execution order of these sub steps or stages is also not necessarily in sequence order but can be performed alternately with the other steps or sub steps of other steps or at least one part of the other stages.
[0097] Figure 4 is a structural diagram of unified verification apparatus in an embodiment provided by the present application, the apparatus can be set as the unified verification platform in the system of Figure 1 for executing the method diagrams from Figure 2 to Figure 3. As shown in Figure 4, the Date Recue/Date Received 2023-06-15 apparatus comprises: obtaining module 401, configuring module 403, and verifying module 403. The main functions of each module are as follows:
[0098] An obtaining module 401 configured to obtain system service information and field information of the currently accessed service system;
[0099] A configuring module 403 configured to obtain corresponding verification configuration information according to the system service information and the field information;
[0100] A verifying module 405 configured to verify the field information according to the corresponding verification configuration information and return verification result information to the currently accessed service system.
[0101] In some embodiment, the apparatus is also used for:
[0102] Correspondingly configuring system service information, field information and verification logic of each service system with a general data model of a unified verification platform to obtain the corresponding verification configuration information corresponding to each service system, then synchronizing the corresponding verification configuration information to a remote dictionary server.
[0103] In some embodiment, the system service information includes system name and service name, the field information includes field name and field value; the corresponding verification configuration information includes corresponding special verification configuration information and corresponding default verification configuration information; the configuring module 403 is also used for:
[0104] Obtaining corresponding special verification information according to system name, service name and field name;
[0105] If obtaining the corresponding special verification configuration information, executing the Date Recue/Date Received 2023-06-15 step of verifying the field information according to the corresponding special verification configuration information;
[0106] If the corresponding special verification configuration information is not obtained, then obtaining the corresponding default verification configuration information according to the service name and the field name;
[0107] If obtaining the corresponding default verification configuration information, executing the step of verifying the field information according to the corresponding default verification configuration information;
[0108] If the corresponding default verification configuration information is not obtained, the field information contained in the currently accessed service system does not need to be verified.
[0109] In some embodiment, the corresponding special verification configuration information includes corresponding special basic verification configuration information and corresponding special other verification configuration information; the verification includes special basic verification and special other verification; the configuring module 403 is also used for:
[0110] If obtaining the corresponding special basic verification configuration information, adding marks and attributes to the field information according to the corresponding special basic verification configuration information to obtain special annotation information; then executing the step of performing special basic verification on the field information according to the special annotation information;
[0111] If obtaining the corresponding special other verification configuration information, then executing the step of performing special other verification on the field information according to the corresponding special other verification configuration information.
[0112] In some embodiment, the corresponding default verification configuration information Date Recue/Date Received 2023-06-15 includes the corresponding default basic verification configuration information and the corresponding default other verification configuration information; the verification includes the default basic verification and default other verification, the configuring module 403 is also used for:
[0113] If obtaining the corresponding default basic verification configuration information, adding marks and attributes to the field information according to the corresponding default basic verification configuration information to obtain default annotation information; then executing the step of performing default basic verification on the field information according to the default annotation information;
[0114] If obtaining the corresponding default other verification configuration information, then executing the step of performing default other verification on the field information according to the corresponding default other verification configuration information.
[0115] In some embodiment, the verifying module 405 is also used for:
[0116] When the verification is a special basic verification or a default basic verification;
[0117] If the verification fails, returning special annotation information of corresponding field information or annotation attribute information of default annotation information to the currently accessed service system;
[0118] If the verification succeeds, then returning automatically generated basic verification information corresponding to the field information to the currently accessed service system.
[0119] In some embodiment, the verifying module 405 is also used for:
[0120] When the verification is a special other verification or a default other verification;
[0121] If the verification fails, then returning automatically generated other verification exception Date Recue/Date Received 2023-06-15 information corresponding to the field information to the currently accessed service system;
[0122] If the verification succeeds, then returning automatically generated other verification information corresponding to the field information to the currently accessed service system.
[0123] According to the specific embodiments provided by the present application, the technical solution provided by the present application has following advantages:
[0124] 1) Improving the demand response speed, reducing development time and investment cost, through the configurable unified verification platform, the addition and the modification of most verification logic can be satisfied without changing the code, which greatly reducing the development time and the test time, greatly improving the efficiency of research and development.
[0125] 2) Achieving the multi-channel unified verification logic, standardizing the order verification of each service system. No matter which channel is used to process the order, the final processing result can be guaranteed to be consistent to ensure the correctness of the order result.
[0126] 3) The configurable verification logic supports special verification logic of special channel at the same time, uses the two modes of general configuration + special configuration to verify basic logic of required field, length, format, legality, etc., also verifies other verification logics with other configuration tables.
[0127] It can be understood that implementing any method or product of the present application does not necessarily need to achieve all the above-mentioned advantages at the same time.
[0128] The same and similar parts of the above-mentioned embodiments can be referred to each other, each embodiment focuses on the differences from other embodiments. In particular, for apparatus embodiment, since the embodiment is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the description part of the method embodiment.

Date Recue/Date Received 2023-06-15
[0129] It should be noted that the embodiments of the present application can involve the use of user data, in actual applications, in the case of compliance with applicable laws and regulations of the located country (for example, user expressly agrees, user is effectively notified, and explicitly authorized by user, etc.), using the user-specific personal data in the scenarios described herein to the extent permitted by applicable laws and regulations.
[0130] According to an embodiment of the present application, the present application also provides a computer device, a computer readable storage medium.
[0131] As shown in Figure 5, a diagram of a computer device according to an embodiment of the present application. Computer device is intended to mean any form of digital computer or mobile apparatus. Wherein digital computer can include desktop computer, laptop computer, workstation, personal digital assistant, server, large computer, and other suitable computers. Mobile apparatus can include tablet, smai (phone, wearable device and so on.
[0132] As shown in Figure 5, device 500 includes computing unit 501, ROM 502, RAM 503, bus 504, and input/output (I/O) interface 505, computing unit 501, ROM 502 and RAM
503 are connected to each other through bus 504. The input/output (I/O) interface 505 is also connected to bus 504.
[0133] The computing unit 501 can execute various processes in the method of the present application according to computer instructions stored in the load-only memory (ROM) 502 or loaded from the storage unit 508 into the random-access memory (RAM) 503. Computing unit 501 can be various general and/or special processing components having processing and computing capabilities.
The computing unit 501 can include, but is not limited to, a central processing unit (CPU), a graphic processing unit (GPU), various special artificial intelligence (Al) computing chips, various computing units that run machine learning model algorithms, digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. In some embodiments, the method provided in the embodiments of the present application can be implemented as a computer program, the computer program is embodied in a computer readable storage medium, such as storage unit 508.

Date Recue/Date Received 2023-06-15
[0134] The RAM 503 can also store various programs and data requested for the operation of device 500. Part or all of the computer programs can be loaded and/or installed on the device 500 through the ROM 802 and/or the communication unit 509.
[0135] Input unit 506, output unit 507, storage unit 508 and communication unit 509 in the device 500 can be connected to I/O interface 505. Wherein, the input unit 506 can be such as keyboard, mouse, touch screen, microphone, etc.; the output unit 507 can be such as monitor, speaker, light, etc. The device 500 is capable of exchanging information and data with other devices through communication unit 509.
[0136] It should be noted that the device can also include other components required for normal operation. It is also possible to include only the components required to achieve the method of the present application, instead of all components shown in the figure.
[0137] Various embodiments of systems and techniques described herein can be implemented in digital electronic circuit system, integrated circuit system, field programable gate array (FPGA), application specific integrated circuit (ASIC), application specific standard product (ASSP), system on chip (SOC), load programable logic device (CPLD), computer hardware, firmware, software, and/or a combination thereof.
[0138] Computer instructions for implementing the methods of the present application can be written in any combination of one or more programing languages. These computer instructions can be provided to computing unit 501, so that when computer instructions are executed by computing unit 501 such as a processor, various steps involved in the method embodiments of the present application are executed.
[0139] The computer readable storage medium provided in the present application can be a tangible medium, the medium can include or store computer instructions for executing the steps involved in the method embodiments of the present application. The computer readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, and other forms of storage Date Recue/Date Received 2023-06-15 mediums.
[0140] The above-mentioned embodiments cannot be understood as the limitation of the scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations and replacements to the disclosure can be made according to design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application shall be included within the protection scope of the present application.

Date Recue/Date Received 2023-06-15

Claims (20)

Claims:
1. An apparatus for unified verifications, the apparatus comprising:
an obtaining module configured to obtain system service information and field information of a currently accessed service system;
a configuring module configured to obtain corresponding verification configuration information according to the system service information and the field information; and a verifying module configured to verify the field information according to the corresponding verification configuration information and return verification result information to the currently accessed service system.
2. The apparatus of claim 1, wherein the apparatus is further configured to:
correspondingly configure system service information, field information and verification logic of each service system with a general data model of a unified verification platform to obtain the corresponding verification configuration information corresponding to each service system, then synchronizing the corresponding verification configuration information to a remote dictionary server.
3. The apparatus of any one of claims 1 to 2, wherein the system service information includes system name and service name.
4. The apparatus of any one of claims 1 to 3, wherein the field information includes field name and field value.
5. The apparatus of any one of claims 1 to 4, wherein the corresponding verification configuration information includes corresponding special verification configuration information and corresponding default verification configuration information.
Date Recue/Date Received 2023-06-15
6. The apparatus of any one of claims 1 to 5, wherein the configuring model is further configured to:
obtain corresponding special verification information according to a system name, a service name and a field name;
where if the corresponding special verification configuration information is obtained, execute a step of verifying the field information according to the corresponding special verification configuration information.
7. The apparatus of any one of claims 1 to 5, wherein the configuring model is further configured to:
where if corresponding special verification configuration information is not obtained, then obtain the corresponding default verification configuration information according to a service name and a field name.
8. The apparatus of any one of claims 1 to 7, wherein the configuring model is further configured to:
where if corresponding default verification configuration information is obtained, execute a step of verifying the field information according to the corresponding default verification configuration information.
9. The apparatus of any one of claims 1 to 8, wherein a corresponding special verification configuration information includes corresponding special basic verification configuration information and corresponding special other verification configuration information.
10. The apparatus of any one of claims 1 to 9, wherein the configuring model is further configured to:

Date Recue/Date Received 2023-06-15 where if corresponding special basic verification configuration information is obtained for a special basic verification, add marks and attributes to the field information according to the corresponding special basic verification configuration information to obtain special annotation information, then execute a step of performing special basic verification on the field information according to the special annotation information.
11. The apparatus of any one of claims 1 to 10, wherein the configuring model is further configured to:
where if corresponding special other verification configuration information is obtained for a special other verification, then execute a step of performing special other verification on the field information according to the corresponding special other verification configuration information.
12. The apparatus of any one of claims 1 to 11, wherein the apparatus further includes: where if corresponding special other verification configuration information is obtained, then executing a step of performing special other verification on the field information according to the corresponding special other verification configuration information.
13. The apparatus of any one of claims 1 to 12, wherein the configuring model is further configured to:
where if corresponding default basic verification configuration information is obtained, add marks and attributes to the field information according to the corresponding default basic verification configuration information to obtain default annotation information; then execute a step of performing default basic verification on the field information according to the default annotation information; and where if obtaining the corresponding default other verification configuration information, then execute a step of performing default other verification on the field information according to the corresponding default other verification configuration information.

Date Recue/Date Received 2023-06-15
14. The apparatus of any one of claims 1 to 13, wherein the verifying model is further configured to:
when the verification is a special basic verification or a default basic verification; and where if the verification fails, return special annotation information of corresponding field information or annotation attribute information of default annotation information to the currently accessed service sy stem.
15. The apparatus of any one of claims 1 to 13, wherein the verifying model is further configured to:
where if the verification succeeds, then return automatically generated basic verification information corresponding to the field information to the currently accessed service system.
16. The apparatus of any one of claims 1 to 15, wherein the verifying model is further configured to:
when the verification is a special other verification or a default other verification; and where if the verification fails, then return automatically generated other verification exception information corresponding to the field information to the currently accessed service system.
17. The apparatus of any one of claims 1 to 15, wherein the verifying model is further configured to:
where if the verification succeeds, then return automatically generated other verification information corresponding to the field information to the currently accessed service system.

Date Recue/Date Received 2023-06-15
18. An electronic device for unified verifications, the electronic device includes:
a memory storing data; and a processor configured to:
obtain system service information and field information of a currently accessed service system;
obtain corresponding verification configuration information according to the system service information and the field information; and verify the field information according to the corresponding verification configuration information and return verification result information to the currently accessed service system.
19. A computer-readable storage medium having recorded thereon instructions for execution by an apparatus for unified verifications, wherein the computer-readable storage medium includes the instructions for:
obtaining system service information and field information of a currently accessed service system;
obtaining corresponding verification configuration information according to the system service information and the field information; and verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system.
20. A method for unified verifications, wherein the method includes:
obtaining system service information and field information of a currently accessed service system;

Date Recue/Date Received 2023-06-15 obtaining corresponding verification configuration informati on according to the system service information and the field information; and verifying the field information according to the corresponding verification configuration information and returning verification result information to the currently accessed service system.
Date Recue/Date Received 2023-06-15
CA3203549A 2022-07-14 2023-06-15 Unified verification method, device, equipment and storage medium Pending CA3203549A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210831529.2A CN115390936A (en) 2022-07-14 2022-07-14 Unified verification method, device, equipment and storage medium
CN202210831529.2 2022-07-14

Publications (1)

Publication Number Publication Date
CA3203549A1 true CA3203549A1 (en) 2023-10-16

Family

ID=84117678

Family Applications (1)

Application Number Title Priority Date Filing Date
CA3203549A Pending CA3203549A1 (en) 2022-07-14 2023-06-15 Unified verification method, device, equipment and storage medium

Country Status (3)

Country Link
CN (1) CN115390936A (en)
CA (1) CA3203549A1 (en)
WO (1) WO2024012195A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115390936A (en) * 2022-07-14 2022-11-25 苏宁易购集团股份有限公司 Unified verification method, device, equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7519614B2 (en) * 2006-08-31 2009-04-14 Sap Ag Data verification systems and methods using business objects
CN109474578B (en) * 2018-10-17 2023-03-24 平安健康保险股份有限公司 Message checking method, device, computer equipment and storage medium
CN110764942B (en) * 2019-09-17 2023-08-18 平安银行股份有限公司 Multi-kind data verification method, device, computer system and readable storage medium
CN111897842A (en) * 2020-01-02 2020-11-06 北京京东尚科信息技术有限公司 Data checking method, device, computer system and medium
CN114139220A (en) * 2021-12-14 2022-03-04 北京中电普华信息技术有限公司 Data verification method and device
CN115390936A (en) * 2022-07-14 2022-11-25 苏宁易购集团股份有限公司 Unified verification method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115390936A (en) 2022-11-25
WO2024012195A1 (en) 2024-01-18

Similar Documents

Publication Publication Date Title
CN107491485B (en) Method for generating execution plan, plan unit device and distributed NewSQ L database system
CN109491989B (en) Data processing method and device, electronic equipment and storage medium
US10169437B2 (en) Triplestore replicator
WO2021017735A1 (en) Smart contract formal verification method, electronic apparatus and storage medium
US20080005197A1 (en) Dynamic report mapping apparatus to physical data source when creating report definitions for information technology service management reporting for peruse of report definition transparency and reuse
US9251222B2 (en) Abstracted dynamic report definition generation for use within information technology infrastructure
Li et al. An integration approach of hybrid databases based on SQL in cloud computing environment
CN117033249B (en) Test case generation method and device, computer equipment and storage medium
CN113051268A (en) Data query method, data query device, electronic equipment and storage medium
CN111125064B (en) Method and device for generating database schema definition statement
CN109522341A (en) Realize method, apparatus, the equipment of the stream data processing engine based on SQL
CN113010542B (en) Service data processing method, device, computer equipment and storage medium
CN113962597A (en) Data analysis method and device, electronic equipment and storage medium
CA3203549A1 (en) Unified verification method, device, equipment and storage medium
CN113626223A (en) Interface calling method and device
CN116483859A (en) Data query method and device
US20200257989A1 (en) Method and apparatus for managing knowledge base, device and medium
CN110888972A (en) Sensitive content identification method and device based on Spark Streaming
US10540155B1 (en) Platform-agnostic predictive models based on database management system instructions
CN113220710A (en) Data query method and device, electronic equipment and storage medium
CN115952203B (en) Data query method, device, system and storage medium
US20140244681A1 (en) Optimization of join queries for related data
CN114510605A (en) Data storage method and device, electronic equipment and storage medium
CN111552779A (en) Man-machine conversation method, device, medium and electronic equipment
US20130238669A1 (en) Using Target Columns in Data Transformation