A method, device, server and storage medium for verifying product parameters

By obtaining product parameter list and verification logic expressions, using parameter verification components to verify financial product parameters, the problem of lack of scalability and flexibility of parameter verification in the existing technology is solved, and efficient product matching calibration is achieved The cost of checksum is reduced.

CN114445189BActive Publication Date: 2024-12-31AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210112893.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-29
Publication Date
2024-12-31
Estimated Expiration
2042-01-29

AI Technical Summary

Technical Problem

The existing technology product parameter verification methods in the fields of financial products and other fields lack scalability and flexibility, which leads to the need to rewrite the verification program when the parameters are changed, which consumes a lot of manpower and time, and cannot be reused, resulting in high costs.

Method used

By obtaining product parameter list and verification logical expression, use the parameter verification component to verify the current parameter value, obtain logical verification results based on verification results and logical expressions, realize product matching verification and improve verification efficiency , and has good scalability and flexibility, supporting the multiplexing of parameter verification components.

Benefits of technology

It realizes efficient matching degree verification of product parameters, reduces labor and time costs, improves verification efficiency, and supports the reuse and expansion of similar products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114445189B_ABST
    Figure CN114445189B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method and device for verifying product parameters, the method comprising: obtaining a product parameter list and a verification logic expression of the current product; wherein the product parameter list includes multiple product parameters, and the verification logic expression represents the dependency relationship between the product parameters; obtaining a parameter verification component that matches each product parameter, and verifying the current parameter value of the product parameter through the parameter verification component to obtain a parameter verification result; according to the parameter verification result of each product parameter and the verification logic expression, obtaining the logic verification result of the current product under the current parameter value. The technical solution disclosed in the embodiment of the present invention realizes the matching degree verification of the product and improves the verification efficiency of the product parameters. The parameter verification component in the embodiment of the present invention has good scalability and flexibility of the verification method. At the same time, the componentized verification method enables the parameter verification component to have a basis for reuse.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of e-commerce, and in particular to a method, device, server and storage medium for verifying product parameters. Background Art

[0002] With the promotion of electronicization and informatization, a large number of new products (including virtual products and physical products) have appeared in people's sight, and product parameters describe the attribute information of products from different dimensions. Therefore, verifying the compatibility between products and users through product parameters has become the focus of attention of various companies.

[0003] Taking financial products in the financial field as an example, each financial product is configured with multiple product parameters, such as the purchaser's occupation restrictions, the purchaser's account type restrictions, etc. After obtaining the user's relevant information, the user information is compared with the product's parameter requirements to determine the degree of fit between the user and the product.

[0004] However, such verification method is usually implemented through a certain degree of hard coding. When the parameter information of the product changes, the corresponding verification program needs to be rewritten to adapt to the changed parameters. This verification method lacks the necessary scalability and flexibility. At the same time, due to the differences in product parameters between products, even for other products in similar fields, the above verification program cannot be reused, and a lot of manpower and time costs need to be spent on re-development. Summary of the invention

[0005] The embodiment of the present invention provides a method, device, server and storage medium for verifying product parameters, so as to realize logical verification of product parameters.

[0006] In a first aspect, an embodiment of the present invention provides a method for verifying product parameters, comprising:

[0007] Obtain a product parameter list and a verification logic expression of the current product; wherein the product parameter list includes multiple product parameters, and the verification logic expression represents the verification dependency relationship between the product parameters;

[0008] Obtaining parameter verification components that match each of the product parameters, and verifying the current parameter value of the product parameter through the parameter verification components to obtain parameter verification results;

[0009] According to the parameter verification results of each of the product parameters and the verification logic expression, the logic verification result of the current product under the current parameter value is obtained.

[0010] In a second aspect, an embodiment of the present invention provides a device for verifying product parameters, including:

[0011] A product parameter list acquisition module, used to acquire a product parameter list and a verification logic expression of the current product; wherein the product parameter list includes a plurality of product parameters, and the verification logic expression represents a verification dependency relationship between the product parameters;

[0012] A parameter verification result acquisition module, used to obtain parameter verification components that match each of the product parameters, and verify the current parameter value of the product parameter through the parameter verification component to obtain a parameter verification result;

[0013] The logic verification result acquisition module is used to obtain the logic verification result of the current product under the current parameter value according to the parameter verification result of each product parameter and the verification logic expression.

[0014] In a third aspect, an embodiment of the present invention further provides a server, the server comprising:

[0015] one or more processors;

[0016] A storage device for storing one or more programs;

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the product parameter verification method described in any embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, implements the product parameter verification method described in any embodiment of the present invention.

[0019] The technical solution disclosed in the embodiment of the present invention verifies the current parameter value of each product parameter through a parameter verification component according to the product parameter list of the current product to obtain a parameter verification result, and obtains the logic verification result of the current product under the current parameter value according to the parameter verification result of each product parameter and the verification logic expression, thereby realizing the matching degree verification of the product and improving the verification efficiency of the product parameters. The parameter verification component in the embodiment of the present invention has good scalability and flexibility of the verification method. At the same time, the componentized verification method enables the parameter verification component to have a reuse basis and can be transplanted into the development of the same type of products. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a flow chart of a method for verifying product parameters provided in Embodiment 1 of the present invention;

[0021] Figure 2 This is a flow chart of a method for verifying product parameters provided in Embodiment 2 of the present invention;

[0022] Figure 3 This is a flow chart of a method for verifying product parameters provided in Embodiment 3 of the present invention;

[0023] Figure 4 It is a structural block diagram of a product parameter verification device provided by Embodiment 4 of the present invention;

[0024] Figure 5 This is a structural block diagram of a server provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0026] Embodiment 1

[0027] Figure 1 This is a flow chart of a method for verifying product parameters provided in the first embodiment of the present invention. This embodiment can be applied to obtain the logic verification result of the current product according to the parameter verification results of each product parameter and the verification logic expression. The method can be executed by the product parameter verification device in the embodiment of the present invention. The device can be implemented by software and / or hardware and integrated in a server. Typically, it can be integrated in a bank's business server to verify the user's purchase authority for each financial product, or recommend matching financial products to the user. The method specifically includes the following steps:

[0028] S110, obtaining a product parameter list and a verification logic expression of the current product; wherein the product parameter list includes a plurality of product parameters, and the verification logic expression represents a verification dependency relationship between the product parameters.

[0029] The current product can be a virtual financial product, such as a financial product, or a physical commodity; the product parameter list describes all product parameters of the product; wherein, product parameters are the basic elements for configuring the product, describing the attribute information of the product, each product corresponds to multiple product parameters, and different product parameters describe the scope of application of a product from different dimensions. After being instantiated, the product parameters can be used to describe the saleable products; for example, a financial product based on periodic interest rate increases, which sets an interest rate increase, and filters the audience according to customer type, sales channel, and account type, and achieves quantity-price balance by setting a quota. The above-mentioned interest rate, customer type, sales channel, account type and other elements are all product parameters of the product; in the embodiment of the present invention, optionally, the product type and the type of product parameter are not specifically limited.

[0030] The verification logic expression reflects the dependency relationship between product parameters during verification. For example, each product parameter of a product needs to be verified before the product is considered to have passed the verification. The dependency relationship between the parameters is "and", which is represented by "&" in the verification logic expression; if any product parameter passes the verification, the product passes the verification, and the dependency relationship between the parameters is "or", which is represented by "||" in the verification logic expression; taking the above technical solution as an example, the product parameters of a financial product include sales channel parameter A, customer group restriction parameter B and account type parameter C. The above product parameters must be verified at the same time before it can be determined that the product has passed the verification. The dependency relationship between the product parameters is A, B and C, which are stored in the database in the form of A&B&C.

[0031] S120: Obtain parameter verification components that match the product parameters respectively, and verify the current parameter value of the product parameter through the parameter verification components to obtain parameter verification results.

[0032] The parameter verification component is a pre-written code file, and its function is to verify the current parameter value of a product parameter to determine whether the current parameter value of the product parameter meets the preset standard product parameters; for example, the above-mentioned sales channel parameter A specifically includes online banking sales and APP (Application) sales. When verifying the current sales channel, if the current sales channel is online banking sales or APP sales, it indicates that the sales channel parameter A is successfully verified, and the parameter verification result is set to 1; if the current sales channel is not online banking sales or APP sales (for example, it is a physical counter sales), it indicates that the sales channel parameter A verification has failed, and the parameter verification result is set to 0.

[0033] Optionally, in an embodiment of the present invention, the product parameter list also includes class names that match each of the product parameters; the acquisition of parameter verification components that match each of the product parameters includes: acquiring a verification class based on a reflection mechanism according to the class names that match each of the product parameters, and calling the matching parameter verification component according to the verification class. The reflection mechanism under the Java language is a mechanism for indirectly operating a target object. Since the Java Virtual Machine (JVM) has the characteristic of dynamically loading classes, all properties and methods of the class can be obtained for any class, and there is no need to obtain the target object in advance before compilation, that is, dynamically create a class and call its properties during runtime; the product parameter list not only records each product parameter under the product, but also records the class name corresponding to each product parameter. Therefore, based on the reflection mechanism under the Java language, the class method used in the verification can be directly obtained, and the corresponding parameter verification component can be called according to the class method, thereby avoiding the pre-definition of the class method and improving the acquisition efficiency of the parameter verification component.

[0034] Optionally, in an embodiment of the present invention, after verifying the current parameter value of the product parameter through the parameter verification component to obtain the parameter verification result, it also includes: saving the parameter verification result of each product parameter through a hash map. Hash map (HashMap) is an implementation of the Map interface based on the hash table (Hash table), which stores the parameter verification result of each product parameter through a key-value pair (i.e. Key-Value), the key name (i.e. Key) is the product parameter, and the key value (i.e. Value) is the corresponding parameter verification result. Compared with traditional data storage methods (for example, tree mapping), hash mapping can obtain stored data information through fast search access, further improving the efficiency of obtaining parameter verification results under the current parameter value.

[0035] S130. Obtain a logic verification result of the current product under the current parameter value according to the parameter verification result of each of the product parameters and the verification logic expression.

[0036] After obtaining the parameter verification result of each product parameter, the above parameter verification result is substituted into the verification logic expression to obtain the logic verification result of the verification logic expression after the assignment.

[0037] Optionally, in an embodiment of the present invention, the obtaining of the logic verification result of the current product at the current parameter value according to the parameter verification result of each of the product parameters and the verification logic expression includes: obtaining the logic verification result of the current product at the current parameter value through the MVEL rule engine according to the parameter verification result of each of the product parameters and the verification logic expression. MVEL is an expression language based on Java applications, which has the characteristics of fast parsing speed. It first converts the verification logic expression into a readable expression, and then compiles and executes the expression according to the obtained parameter verification result, and then obtains the expression result; wherein, if the expression returns a result of true, the product parameter verification with the dependency relationship passes, and if the return result is false, the product parameter verification with the dependency relationship fails; through the MVEL rule engine, the efficiency of obtaining the logic verification result of the current product at the current parameter value is improved.

[0038] Optionally, in an embodiment of the present invention, the product parameter verification method further includes: in response to obtaining a new product parameter addition instruction for the current product, adding the new product parameter to the product parameter list, and obtaining a matching new parameter verification component, and an updated verification logic expression. When the product parameters of a product change, the applicable scope of the product can be adjusted by adding the new product parameters to the product parameter list, and the parameter value verification of the product parameters completed by the parameter verification component has better scalability than the hard-coded verification method. The verification of the new product parameters can be achieved by obtaining the new parameter verification component, and then the update of the product logic verification can be completed according to the obtained updated verification logic expression.

[0039] The technical solution disclosed in the embodiment of the present invention verifies the current parameter value of each product parameter through a parameter verification component according to the product parameter list of the current product to obtain a parameter verification result, and obtains the logic verification result of the current product under the current parameter value according to the parameter verification result of each product parameter and the verification logic expression, thereby realizing the matching degree verification of the product and improving the verification efficiency of the product parameters. The parameter verification component in the embodiment of the present invention has good scalability and flexibility of the verification method. At the same time, the componentized verification method enables the parameter verification component to have a reuse basis and can be transplanted into the development of the same type of products.

[0040] Embodiment 2

[0041] Figure 2The flowchart of a method for verifying product parameters provided in the second embodiment of the present invention is specific on the basis of the above technical solution. In the embodiment of the present invention, the items to be verified are sorted in ascending order according to the number of product parameters contained in each item to be verified. Specifically, the method comprises the following steps:

[0042] S210. Obtain a product parameter list and a verification logic expression for the current product; wherein the product parameter list includes a plurality of product parameters, and the verification logic expression represents a verification dependency relationship between the product parameters.

[0043] S220: Obtain parameter verification components that match the product parameters respectively, and verify the current parameter value of the product parameter through the parameter verification components to obtain parameter verification results.

[0044] S230: Obtain an outer logical relationship of the verification logic expression, and split the verification logic expression according to the outer logical relationship to obtain multiple items to be verified.

[0045] The verification logic expression may include a single-level logical relationship, for example, A&B&C, where the dependency relationship between A, B, and C is and; A||B||C, where the dependency relationship between A, B, and C is or; it may also include multi-level nested logical relationships, for example, (A&B)||C, where the relationship between A and B is and, and the relationship between (A&B) and C is or; A&(B||C), where the relationship between B and C is or, and the relationship between A and (B||C) is and; the outer logical relationship, that is, the nested inner logical relationships (that is, the product parameters in each bracket) are regarded as a whole to obtain the outermost logical relationship. Taking the above technical solution as an example, the outer logical relationship of A&B&C is and, the outer logical relationship of A||B||C is or, the outer logical relationship of (A&B)||C is or, and the outer logical relationship of A&(B||C) is and. At the same time, according to the above outer logical relationship, the verification logic expression is split to obtain multiple items to be checked. Taking the above technical solution as an example, after A&B&C is split, the items to be checked A, B, and C are obtained; after A||B||C is split, the items to be checked A, B, and C are obtained; after (A&B)||C is split, the items to be checked (A&B) and C are obtained; after A&(B||C) is split, the items to be checked A and (B||C) are obtained.

[0046] S240: Sort the items to be checked in ascending order according to the number of product parameters included in each of the items to be checked.

[0047] Each item to be checked includes one or more product parameters, which are arranged in ascending order from the least to the most according to the number of product parameters included. If the number is the same, they are arranged in order of appearance in the verification logic expression; for example, the order of each item to be checked in A&B&C and A||B||C is A, B, C; the order of each item to be checked in (A&B)||C is (A&B), C; the order of each item to be checked in A&(B||C) is A, (B||C).

[0048] S250. According to the parameter verification results of each of the product parameters, each of the items to be verified is verified in turn; wherein, if the outer logical relationship of the verification logic expression is or, then determine whether there is an item to be verified whose verification result is 1; if the outer logical relationship of the verification logic expression is and, then determine whether there is an item to be verified whose verification result is 0.

[0049] When the outer logical relationship of the verification logic expression is or, the verification result of any item to be verified is 1, and the logical verification result of the verification logic expression is 1. Therefore, the items to be verified with the least product parameters are verified in turn. As long as the item to be verified with a verification result of 1 is obtained, it can be determined that the logical verification result of the verification logic expression is 1, and the subsequent items to be verified do not need to be judged again. If the item to be verified with a verification result of 1 is not obtained, it is obvious that the logical verification result is 0; when the outer logical relationship of the verification logic expression is and, the verification result of any item to be verified is 0, and the logical verification result of the verification logic expression is 0. Therefore, the items to be verified with the least product parameters are verified in turn. As long as the item to be checked with a verification result of 0 is obtained, it can be determined that the logic verification result of the verification logic expression is 0, and there is no need to judge the subsequent items to be checked. If the item to be checked with a verification result of 0 is not obtained, it is obvious that the logic verification result is 1; based on this, the verification efficiency of the verification logic expression is further improved; in particular, for the items to be checked containing multiple product parameters, the above-mentioned method is also used to continue to split according to the outer logical relationship of the items to be checked. If the outer logical relationship of the items to be checked is or, it is also determined whether there is a sub-item to be checked with a verification result of 1; if the outer logical relationship of the items to be checked is or, it is determined whether there is a sub-item to be checked with a verification result of 0, until the verification of the item to be checked is completed.

[0050] The technical solution disclosed in the embodiment of the present invention obtains the outer logical relationship of the verification logic expression, splits the verification logic expression according to the outer logical relationship, obtains multiple items to be verified, and then sorts the items to be verified in ascending order according to the number of product parameters contained in each item to be verified. Finally, according to the parameter verification results of each product parameter, each item to be verified is verified in turn, thereby further improving the verification efficiency of the verification logic expression.

[0051] Embodiment 3

[0052] Figure 3 A flowchart of a method for verifying product parameters provided in Embodiment 3 of the present invention is provided. The embodiment of the present invention is specific on the basis of the above technical solution. In the embodiment of the present invention, according to the number of first target product parameters or second target product parameters included in each item to be verified, each item to be verified is verified in turn. Specifically, the method includes the following steps:

[0053] S310. Obtain a product parameter list and a verification logic expression for the current product; wherein the product parameter list includes a plurality of product parameters, and the verification logic expression represents a verification dependency relationship between the product parameters.

[0054] S320: Obtain parameter verification components that match each of the product parameters, and verify the current parameter value of the product parameter through the parameter verification component to obtain a parameter verification result.

[0055] S330: Obtain an outer logical relationship of the verification logic expression, and split the verification logic expression according to the outer logical relationship to obtain multiple items to be verified.

[0056] S340. If the outer logical relationship of the verification logic expression is or, then obtain the first target product parameter whose parameter verification result is 1 among the product parameters, and verify each of the items to be verified in turn according to the proportion of the first target product parameter in each of the items to be verified.

[0057] If the outer logical relationship of the verification logic expression is or, the verification result of any item to be verified is 1, and the logic verification result of the verification logic expression is 1; the greater the proportion of the first target product parameters in the items to be verified, the greater the probability that the verification result of the item to be verified is 1. Therefore, each item to be verified is verified in turn according to the order of the proportion of the first target product parameters in each item to be verified from most to least. As long as the item to be verified with a verification result of 1 is obtained, it can be determined that the logic verification result of the verification logic expression is 1, and the subsequent items to be verified do not need to be judged again, so as to improve the verification efficiency of the verification logic expression.

[0058] S350. If the outer logical relationship of the verification logic expression is AND, then obtain the second target product parameter whose parameter verification result is 0 in each of the product parameters, and verify each of the items to be verified in turn according to the proportion of the number of the second target product parameters in each of the items to be verified.

[0059] If the outer logical relationship of the verification logic expression is AND, the verification result of any item to be verified is 0, and the logic verification result of the verification logic expression is 0; the greater the proportion of the number of second target product parameters in the items to be verified, the greater the probability that the verification result of the item to be verified is 0. Therefore, each item to be verified is verified in turn according to the order of the proportion of the number of second target product parameters in each item to be verified from most to least. As long as the item to be verified with a verification result of 0 is obtained, it can be determined that the logic verification result of the verification logic expression is 0, and the subsequent items to be verified do not need to be judged, so as to improve the verification efficiency of the verification logic expression.

[0060] The technical solution disclosed in the embodiment of the present invention, if the outer logical relationship of the verification logic expression is or, then the first target product parameter whose parameter verification result is 1 among each product parameter is obtained; if the outer logical relationship of the verification logic expression is and, then the second target product parameter whose parameter verification result is 0 among each product parameter is obtained, and then according to the proportion of the number of the first target product parameters in each item to be verified, or the proportion of the number of the second target product parameters, each item to be verified is verified in turn, thereby further improving the verification efficiency of the verification logic expression.

[0061] Embodiment 4

[0062] Figure 4 It is a structural block diagram of a product parameter verification device provided by the fourth embodiment of the present invention, and the device specifically comprises: a product parameter list acquisition module 410, a parameter verification result acquisition module 420 and a logic verification result acquisition module 430;

[0063] A product parameter list acquisition module 410 is used to acquire a product parameter list and a verification logic expression of the current product; wherein the product parameter list includes a plurality of product parameters, and the verification logic expression represents a verification dependency relationship between the product parameters;

[0064] The parameter verification result acquisition module 420 is used to obtain parameter verification components that match each of the product parameters, and verify the current parameter value of the product parameter through the parameter verification component to obtain the parameter verification result;

[0065] The logic verification result acquisition module 430 is used to obtain the logic verification result of the current product under the current parameter value according to the parameter verification result of each product parameter and the verification logic expression.

[0066] The technical solution disclosed in the embodiment of the present invention verifies the current parameter value of each product parameter through a parameter verification component according to the product parameter list of the current product to obtain a parameter verification result, and obtains the logic verification result of the current product under the current parameter value according to the parameter verification result of each product parameter and the verification logic expression, thereby realizing the matching degree verification of the product and improving the verification efficiency of the product parameters. The parameter verification component in the embodiment of the present invention has good scalability and flexibility of the verification method. At the same time, the componentized verification method enables the parameter verification component to have a reuse basis and can be transplanted into the development of the same type of products.

[0067] Optionally, based on the above technical solution, the product parameter list further includes a class name that matches each of the product parameters;

[0068] The parameter verification result acquisition module 420 is specifically used to obtain the verification class based on the reflection mechanism according to the class name that matches each of the product parameters, and call the matching parameter verification component according to the verification class.

[0069] Optionally, based on the above technical solution, the device for verifying product parameters further includes:

[0070] The parameter verification result execution module is used to save the parameter verification results of each product parameter through hash mapping.

[0071] Optionally, based on the above technical solution, the logic verification result acquisition module 430 is specifically used to obtain the logic verification result of the current product under the current parameter value through the MVEL rule engine according to the parameter verification results of each product parameter and the verification logic expression.

[0072] Optionally, based on the above technical solution, the device for verifying product parameters further includes:

[0073] The product parameter new addition instruction acquisition module is used to add the new product parameters to the product parameter list in response to obtaining the product parameter new addition instruction of the current product, and obtain the matching new parameter verification component and the updated verification logic expression.

[0074] Optionally, based on the above technical solution, the logic verification result acquisition module 430 specifically includes:

[0075] A to-be-checked item acquisition unit, used to acquire the outer logical relationship of the verification logic expression, and split the verification logic expression according to the outer logical relationship to acquire multiple to-be-checked items;

[0076] A sorting execution unit, used for sorting the items to be checked in ascending order according to the number of product parameters contained in each of the items to be checked;

[0077] The verification execution unit is used to verify each of the items to be verified in turn according to the parameter verification results of each of the product parameters; wherein, if the outer logical relationship of the verification logic expression is or, it is determined whether there is an item to be verified with a verification result of 1; if the outer logical relationship of the verification logic expression is and, it is determined whether there is an item to be verified with a verification result of 0.

[0078] Optionally, based on the above technical solution, the logic verification result acquisition module 430 specifically further includes:

[0079] A first target product parameter acquisition module, for acquiring the first target product parameter whose parameter verification result is 1 among the product parameters if the outer logical relationship of the verification logic expression is or, and verifying each of the items to be verified in turn according to the proportion of the first target product parameter in each of the items to be verified;

[0080] The second target product parameter acquisition module is used to obtain the second target product parameter whose parameter verification result is 0 among the product parameters if the outer logical relationship of the verification logic expression is AND, and to verify each of the items to be verified in turn according to the proportion of the number of the second target product parameters in each item to be verified.

[0081] The above device can execute the product parameter verification method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the product parameter verification method provided by any embodiment of the present invention.

[0082] Embodiment 5

[0083] Figure 5 A schematic diagram of the structure of a server provided in Embodiment 5 of the present invention. Figure 5 A block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The server 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0084] like Figure 5 As shown, the server 12 is in the form of a general purpose computer device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 connecting various system components (including the memory 28 and the processing unit 16).

[0085] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0086] The server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the server 12, including volatile and non-volatile media, removable and non-removable media.

[0087] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0088] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0089] The server 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the server 12, and / or may communicate with any device that enables the server 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the server 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the server 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the server 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0090] The processing unit 16 executes various functional applications and data processing by running the program stored in the memory 28, such as implementing the product parameter verification method provided by the embodiment of the present invention. That is: obtaining the product parameter list and verification logic expression of the current product; wherein the product parameter list includes multiple product parameters, and the verification logic expression represents the verification dependency relationship between each of the product parameters; obtaining the parameter verification components that match each of the product parameters, and verifying the current parameter value of the product parameter through the parameter verification component to obtain the parameter verification result; according to the parameter verification results of each of the product parameters and the verification logic expression, obtaining the logic verification result of the current product under the current parameter value.

[0091] Embodiment 6

[0092] Embodiment 6 of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method for verifying product parameters as described in any embodiment of the present invention is implemented; the method includes:

[0093] Obtain a product parameter list and a verification logic expression of the current product; wherein the product parameter list includes multiple product parameters, and the verification logic expression represents the verification dependency relationship between the product parameters;

[0094] Obtaining parameter verification components that match each of the product parameters, and verifying the current parameter value of the product parameter through the parameter verification components to obtain parameter verification results;

[0095] According to the parameter verification results of each of the product parameters and the verification logic expression, the logic verification result of the current product under the current parameter value is obtained.

[0096] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0097] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0098] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0099] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0100] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for verifying product parameters, characterized in that: include: Obtain a product parameter list and a verification logic expression of the current product; wherein the product parameter list includes multiple product parameters, and the verification logic expression represents the verification dependency relationship between the product parameters; Obtaining parameter verification components that match each of the product parameters, and verifying the current parameter value of the product parameter through the parameter verification components to obtain parameter verification results; According to the parameter verification results of each of the product parameters and the verification logic expression, obtaining the logic verification result of the current product under the current parameter value; The obtaining, according to the parameter verification results of the product parameters and the verification logic expression, the logic verification result of the current product under the current parameter value comprises: Obtaining an outer logical relationship of the verification logic expression, and splitting the verification logic expression according to the outer logical relationship to obtain a plurality of items to be verified; According to the number of product parameters included in each of the items to be checked, the items to be checked are sorted in ascending order; According to the parameter verification results of each of the product parameters, each of the items to be verified is verified in turn; wherein, if the outer logical relationship of the verification logic expression is or, it is determined whether there is an item to be verified with a verification result of 1; if the outer logical relationship of the verification logic expression is and, it is determined whether there is an item to be verified with a verification result of 0; After obtaining the outer logical relationship of the verification logic expression and splitting the verification logic expression according to the outer logical relationship to obtain multiple items to be verified, the method further includes: If the outer logical relationship of the verification logic expression is or, then obtain the first target product parameter whose parameter verification result is 1 among the product parameters, and verify each of the items to be verified in turn according to the proportion of the first target product parameter in each of the items to be verified; If the outer logical relationship of the verification logic expression is AND, then the second target product parameter whose parameter verification result is 0 in each of the product parameters is obtained, and each of the items to be verified is verified in turn according to the proportion of the number of the second target product parameters in each of the items to be verified.

2. The method according to claim 1, characterized in that The product parameter list also includes class names that match each of the product parameters; The obtaining of parameter verification components respectively matching the product parameters comprises: According to the class names respectively matched with the product parameters, a verification class is obtained based on a reflection mechanism, and according to the verification class, a matching parameter verification component is called.

3. The method according to claim 1, characterized in that After the parameter verification component verifies the current parameter value of the product parameter to obtain the parameter verification result, the method further includes: The parameter verification results of each of the product parameters are saved through hash mapping.

4. The method according to claim 1 or 3, characterized in that: The obtaining, according to the parameter verification results of the product parameters and the verification logic expression, the logic verification result of the current product under the current parameter value comprises: According to the parameter verification results of each of the product parameters and the verification logic expression, the logic verification results of the current product under the current parameter values ​​are obtained through the MVEL rule engine.

5. The method according to claim 1, characterized in that The method for verifying the product parameters also includes: In response to obtaining the product parameter addition instruction of the current product, the new product parameter is added to the product parameter list, and a matching new parameter verification component and an updated verification logic expression are obtained.

6. A device for verifying product parameters, characterized in that: include: A product parameter list acquisition module, used to acquire a product parameter list and a verification logic expression of the current product; wherein the product parameter list includes a plurality of product parameters, and the verification logic expression represents a verification dependency relationship between the product parameters; A parameter verification result acquisition module, used to obtain parameter verification components that match each of the product parameters, and verify the current parameter value of the product parameter through the parameter verification component to obtain a parameter verification result; A logic verification result acquisition module, used to obtain the logic verification result of the current product under the current parameter value according to the parameter verification result of each of the product parameters and the verification logic expression; The logic verification result acquisition module is specifically used to obtain the outer logical relationship of the verification logic expression, and split the verification logic expression according to the outer logical relationship to obtain multiple items to be verified; according to the number of product parameters contained in each of the items to be verified, the items to be verified are sorted in ascending order; according to the parameter verification results of each of the product parameters, each of the items to be verified is verified in turn; wherein, if the outer logical relationship of the verification logic expression is or, it is determined whether there is an item to be verified with a verification result of 1; if the outer logical relationship of the verification logic expression is and, it is determined whether there is an item to be verified with a verification result of 0; The logic verification result acquisition module is specifically used to obtain the outer logical relationship of the verification logic expression, and split the verification logic expression according to the outer logical relationship to obtain multiple items to be checked. If the outer logical relationship of the verification logic expression is or, then the first target product parameter whose parameter verification result is 1 in each of the product parameters is obtained, and each of the items to be checked is verified in turn according to the proportion of the first target product parameter in the number of each item to be checked; if the outer logical relationship of the verification logic expression is and, then the second target product parameter whose parameter verification result is 0 in each of the product parameters is obtained, and each of the items to be checked is verified in turn according to the proportion of the second target product parameter in the number of each item to be checked.

7. A server, characterized in that: The server comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the product parameter verification method as described in any one of claims 1-5.

8. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the product parameter verification method according to any one of claims 1 to 5 when executed by a computer processor.