A query condition configuration method, device, computer equipment and storage medium
By providing a query condition configuration interface in the query system, users are allowed to select and combine query options and logical operators, which solves the problem of inflexible query option combinations in the existing technology and realizes the satisfaction of complex data filtering requirements and query conditions. flexibility.
Patent Information
- Application Number
- CN202111559189.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-12-20
AI Technical Summary
When the existing query system handles complex data filtering requirements, the combination of query options is not flexible enough, making it difficult to meet complex data filtering requirements.
Provides a query condition configuration method. By displaying the query condition configuration interface, the user is allowed to select query options and logical operators, and generate query conditions according to the selection order. It supports a variety of logical operation rules and input methods to implement query options and logical operations. Flexible combination of characters.
It achieves the satisfaction of complex data filtering needs, improves the flexibility and adaptability of query conditions, and can combine query options under multiple logics to meet diverse data filtering needs.
Smart Images

Figure CN114237434B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a query condition configuration method, device, computer equipment and storage medium. Background Art
[0002] In order to find data, staff of various query platforms will select corresponding tags or query options as query conditions to achieve accurate search through query conditions. The existing query system generally allows users to select query options, and then combine the query options according to the logic of "and" to form query conditions, so as to query data based on the query conditions. Although the existing query system can meet the needs of data query to a certain extent, when the data screening needs become complex and diverse, the query options in the existing query system cannot be flexibly combined. Therefore, the combination of various query options in the existing query conditions is not flexible enough to meet complex data screening needs. Summary of the invention
[0003] The embodiments of the present application provide a query condition configuration method, apparatus, computer equipment and storage medium, which can realize flexible configuration of query options and query logic, thereby generating query conditions to meet complex data screening requirements.
[0004] On the one hand, an embodiment of the present application provides a method for configuring a query condition, the method comprising:
[0005] Displaying a query condition configuration interface, wherein the query condition configuration interface includes at least one query option and at least one logical operator;
[0006] In response to the selection operation of the at least one query option and the at least one logical operator, determining the selected at least one target query option and the at least one target logical operator, and the selection order of the respective target query options and the respective target logical operators;
[0007] Generate a query condition for a target object based on the at least one target query option, the at least one target logical operator, and a selection order of the target query options and the target logical operators;
[0008] The query conditions of the query platform are configured as the query conditions of the target object.
[0009] In one embodiment, it also includes: the query condition configuration interface also includes at least one logical operation rule; the response to the selection operation of the at least one query option and the at least one logical operator, determines the selected at least one target query option and the at least one target logical operator, and the selection order of each target query option and each target logical operator, including: responding to the selection operation of the at least one logical operation rule, determining the selected target logical operation rule; responding to the selection operation of the at least one query option, determining the selected at least one target query option, and the filling position of each target query option in the target logical operation rule; responding to the selection operation of the at least one target logical operator, determining the selected at least one target logical operator, and the filling position of each target logical operator in the target logical operation rule.
[0010] In one embodiment, the query condition for the target object is generated based on the at least one target query option, the at least one target logical operator, and the selection order of the target query options and the target logical operators, including: generating the query condition for the target object based on the target logical operation rule, the at least one target query option, the at least one target logical operator, the filling position of the target query options in the target logical operation rule, and the filling position of the target logical operators in the target logical operation rule.
[0011] In one embodiment, the query condition configuration interface also includes at least one logical operation case, each logical operation case includes a logical operation rule and a logical operator; the response to the selection operation of the at least one query option and the at least one logical operator determines the selected at least one target query option and the at least one target logical operator, as well as the selection order of the target query options and the target logical operators, including: responding to the selection operation of the at least one logical operation case, determining the selected target logical operation case; responding to the selection operation of the at least one query option, determining the selected at least one target query option, and the filling position of each target query option in the target logical operation case.
[0012] In one embodiment, the query condition for the target object is generated based on the at least one target query option, the at least one target logical operator, and the selection order of the target query options and the target logical operators, including: generating the query condition for the target object based on the target logical operation use case, the at least one target query option, and the filling position of the target query options in the target logical operation use case.
[0013] In one embodiment, the response to the selection operation of the at least one query option, determining the selected at least one target query option, and the filling position of each target query option in the target logical operation use case, includes: responding to the selection operation of the at least one query option, determining the selected at least one target query option; responding to the drag operation of each target query option, determining the end point position of the drag operation; and determining the end point position as the filling position of each target query option in the target logical operation use case.
[0014] In one embodiment, the target logic operation use case includes at least one filling component; the response to the selection operation of the at least one query option, determining the selected at least one target query option, and the filling position of each target query option in the target logic operation use case, includes: responding to the editing operation of each filling component, obtaining the target query options to be filled into the each filling component, and determining the filling position of the obtained target query options in the target logic operation use case as the position of each filling component in the target logic operation use case.
[0015] In one embodiment, the query condition configuration interface also includes at least one query input method; the method also includes: for each target query option, responding to a selection operation of the at least one query input method, determining the selected target query input method, and using the target query input method as the query input method for each target query option.
[0016] In one embodiment, it also includes: when the query input method of any target query option does not exist in the at least one query input method, sending a query input method adding request to the server, so that the server adds the query input method of any target query option in the first query input method component, obtains the second query input method component, and returns the second query input method component; performs data rendering processing on the second query input component to obtain a processed second query input method component; displays the processed second query input method component, and the processed second query input method component includes the query input method of any target query option.
[0017] On the other hand, an embodiment of the present application provides a device for configuring a query condition, the device for configuring a query condition comprising:
[0018] A display unit, used to display a query condition configuration interface, wherein the query condition configuration interface includes at least one query option and at least one logical operator;
[0019] a processing unit, configured to determine, in response to a selection operation on the at least one query option and the at least one logical operator, the selected at least one target query option and the at least one target logical operator, and a selection order of the target query options and the target logical operators;
[0020] The processing unit is further configured to generate a query condition for a target object based on the at least one target query option, the at least one target logical operator, and a selection order of the target query options and the target logical operators;
[0021] The processing unit is further used to configure the query conditions of the query platform as the query conditions of the target object.
[0022] On the other hand, an embodiment of the present application provides a computer device, including a processor, a storage device and a communication interface, wherein the processor, the storage device and the communication interface are interconnected, wherein the storage device is used to store a computer program that supports a terminal to execute the above method, the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps: displaying a query condition configuration interface, wherein the query condition configuration interface includes at least one query option and at least one logical operator; in response to a selection operation on the at least one query option and at least one logical operator, determining at least one selected target query option and at least one target logical operator, and a selection order of each target query option and each target logical operator; based on the at least one target query option, the at least one target logical operator, and a selection order of each target query option and each target logical operator, generating a query condition for a target object; and configuring the query condition of the query platform as the query condition of the target object.
[0023] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the above-mentioned query condition configuration method.
[0024] In an embodiment of the present application, a query condition configuration interface is first displayed, wherein the query condition configuration interface includes at least one query option and at least one logical operator; then, in response to the selection operation of at least one query option and at least one logical operator, at least one selected target query option and at least one target logical operator, as well as the selection order of each target query option and each target logical operator are determined; then, based on at least one target query option, at least one target logical operator, and the selection order of each target query option and each target logical operator, query conditions for the target object are generated; finally, the query conditions of the query platform are configured as the query conditions for the target object. By displaying a query condition configuration interface, an embodiment of the present application can display query options and logical operators to achieve interaction with users; at the same time, by responding to the selection operation of query options and logical operators, the selected target query options and target logical operators, as well as the selection order of each target query options and each target logical operator are determined, and flexible configuration of query options and logical operators can be achieved, so that multiple query options can be combined under multiple logics, and finally query conditions are generated to meet complex data screening requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 It is a structural diagram of a query condition configuration system provided in an embodiment of the present application;
[0027] Figure 2 It is a structural diagram of another query condition configuration system provided in an embodiment of the present application;
[0028] Figure 3 It is a flowchart of a method for configuring query conditions provided in an embodiment of the present application;
[0029] Figure 4 This is a schematic diagram of a process for generating query conditions provided by an embodiment of the present application;
[0030] Figure 5a is another schematic diagram of a process for generating query conditions provided by an embodiment of the present application;
[0031] Figure 5b This is another schematic diagram of a process for generating query conditions provided by an embodiment of the present application;
[0032] Figure 6 This is another schematic diagram of a process for generating query conditions provided by an embodiment of the present application;
[0033] Figure 7 It is a flowchart of another method for configuring query conditions provided in an embodiment of the present application;
[0034] Figure 8 This is another schematic diagram of a process for generating query conditions provided by an embodiment of the present application;
[0035] Fig. 9 It is a flowchart of another method for configuring query conditions provided in an embodiment of the present application;
[0036] Fig.10 It is a flowchart of another method for configuring query conditions provided in an embodiment of the present application;
[0037] Fig.11 It is a structural diagram of a query condition configuration device provided in an embodiment of the present application;
[0038] Fig.12 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] The present application embodiment provides a query condition configuration system. Figure 1 , which is a structural diagram of a query condition configuration system provided in an embodiment of the present application. Figure 1The configuration of the query conditions shown may include a terminal device 101 and a server 102. Among them, a client for configuring the query conditions is running on the terminal device 101; the terminal device 101 may include any one or more of a smart phone, a tablet computer, a laptop computer, a desktop computer, or any one or more of smart devices with display functions such as a smart TV and a smart mirror, which are not limited here. The server 102 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The terminal device 101 and the server 102 can be directly or indirectly connected in communication via wired or wireless communication, which is not limited in this application.
[0041] In one embodiment, the user can select query options and logical operators through the client for query condition configuration running on the terminal device 101, thereby generating query conditions; then after the user inputs query information of each query option in the query condition through the client, a complete query condition can be generated, and a data query request can be generated, the data query request including the complete query condition; then the data query request is sent to the server 102, and the server 102 performs data query based on the complete query condition in the data query request to obtain target data; finally, the server 102 sends the target data to the client running on the terminal device 101, and the client of the terminal device 101 outputs the target data. Preferably, the complete query condition can also be directly sent to the server 102, which is not limited here.
[0042] The present application embodiment provides another query condition configuration system. Figure 2 , which is a structural diagram of a query condition configuration system provided in an embodiment of the present application. Figure 2The configuration of the query conditions shown may include a terminal device 201, a server 202, and a query platform 203. Among them, a client for configuring query conditions is running on the terminal device 201; the terminal device 201 may include any one or more of a smart phone, a tablet computer, a laptop computer, a desktop computer, or any one or more of smart devices with display functions such as a smart TV and a smart mirror, which are not limited here. The server 202 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms. The query platform 203 may be one or more query platforms, which may be any platform, website, application, etc. with data query requirements. The query platform 203 may also be a server, a cloud server, etc., or an electronic device, a computer device, etc., which are not limited here. The query platform 203 and the server 202, as well as the terminal device 201 and the query platform 203, can be directly or indirectly connected in communication via wired or wireless communication, which is not limited in this application.
[0043] In one embodiment, when the query platform 203 detects a new query requirement, the query platform 203 may generate a query request, which includes the query requirement of the query platform 203, and send the query request to the terminal device 201 running the client for configuring the query condition. The user selects query options and logical operators based on the query requirement through the client in the terminal device 201, thereby generating a query condition, and then the terminal device 201 sends the query condition to the query platform 203 through the client, and configures the query condition as the query condition of the target object of the query platform 203. If the query platform 203 detects that the user has determined the query information of each query option in the query condition of the target object, it generates a complete query condition and sends the complete query condition to the server 102; then the server 102 can query based on the complete query condition to obtain the target object, and send the target object to the query platform 203, and the query platform 203 outputs the target object.
[0044] In one embodiment, the server 202 and the terminal device 201 can also communicate with each other. When the query platform 203 detects a new query demand, the query platform 203 can generate a query request, which includes the query demand of the query platform 203, and send the query request to the terminal device 201 running the client for configuring the query condition. The user selects query options and logical operators based on the query demand through the client in the terminal device 201, thereby generating a query condition; then the terminal device 201 sends the query condition to the query platform 203 through the client, and configures the query condition as the query condition of the target object of the query platform 203. After the user enters the query information of each query option in the query condition of the target object on the query platform 203, a complete query condition is generated, and the complete query condition is sent to the client in the terminal device 101 through the query platform 203. The client in the terminal device 101 sends the complete query condition to the server 102; then the server 102 can query based on the complete query condition to obtain the target object, and send the target object to the client in the terminal device 201. Finally, the terminal device 201 sends the target object to the query platform 203 through the client, and the query platform 203 outputs the target object.
[0045] Based on this, an embodiment of the present application also provides a method for configuring query conditions. The method for configuring query conditions, on the first aspect, determines the selected target query options and target logical operators, as well as the selection order of each target query option and each target logical operator, by responding to the selection operation of the query options and logical operators, so as to realize flexible configuration of query options and logical operators, and finally generate query conditions to meet complex data screening requirements; on the second aspect, through the at least one query input method included in the query condition configuration interface, the query input method can be selected to realize the configuration of different query input methods for different query options, thereby further meeting complex and diverse data screening requirements.
[0046] It should be noted that the embodiment of the present application takes the relevant scenarios of vehicle insurance as an example to introduce the configuration scheme of the query conditions mentioned in the embodiment of the present application, and it does not limit the embodiment of the present application. The configuration scheme of the query conditions mentioned in the embodiment of the present application can also be applied to other scenarios that require data query, and the embodiment of the present application does not limit this.
[0047] See also Figure 3 , Figure 3 is a flowchart of a method for configuring query conditions provided in an embodiment of the present application; Figure 3 The query condition configuration scheme shown can be as follows Figure 1 or Figure 2The terminal device shown in the figure is executed, wherein the terminal device runs a client for configuring query conditions. The scheme includes but is not limited to steps S301 to S304, wherein:
[0048] S301, displaying a query condition configuration interface, wherein the query condition configuration interface includes at least one query option and at least one logical operator.
[0049] In an embodiment of the present application, the query condition configuration interface is used to configure the query condition so as to query the target object through the query condition. Preferably, the query condition configuration interface can be a query condition configuration interface in an application of a mobile terminal, or a query condition configuration interface in a website, which is not limited here. Preferably, the query option can be the name of the target object to be queried, or the label of the target object to be queried, which is not limited here. Exemplarily, the query option can be a label that limits the query scope, such as "gender", "age", "vehicle purchase time", "car insurance effective time", etc. Preferably, the logical operator can be a logical operator such as logical AND (And, &&), logical OR (Or, ||), logical exclusive OR (Xor), logical NOT (Not), etc., or it can be a logical relationship such as inclusion, non-inclusion, addition, subtraction, greater than or equal to, less than or equal to, greater than, less than, etc. Preferably, the logical operator can also be other characters or words that represent logic, which is not limited here.
[0050] S302: In response to a selection operation of at least one query option and at least one logical operator, determine at least one selected target query option and at least one target logical operator, and a selection order of each target query option and each target logical operator.
[0051] In an embodiment of the present application, the method for determining the selection of at least one target query option and at least one target logical operator, and the selection order of each target query option and each target logical operator can be: responding to the selection operation of the query option, selecting the target query option in at least one query option, and recording it as the first selection order, and then responding to the selection operation of the logical operator, selecting the target logical operator in at least one logical operator, and recording it as the second selection order, and then judging whether the client continues to perform the selection operation. If it is detected that the client continues to perform the selection operation on the query option or the logical operator, continue to respond to the selection operation, select the target query option or the target logical operator in at least one query option or the logical operator, and record the selection order until the client stops the selection operation, and finally determine the selection of at least one target query option and at least one target logical operator, and the selection order of each target query option and each target logical operator.
[0052] S303: Generate a query condition for the target object based on at least one target query option, at least one target logical operator, and a selection order of each target query option and each target logical operator.
[0053] In an embodiment of the present application, the method of generating the query condition of the target object based on the at least one target query option, the at least one target logical operator, and the selection order of the respective target query options and the respective target logical operators may be: arranging the respective target query options and the respective target logical operators in the selection order, and using the arranged respective target query options and the respective target logical operators as the query condition of the target object.
[0054] For example, see the attached Figure 4 , showing a schematic diagram of the process of generating query conditions, the query condition configuration interface 401 includes multiple query options and multiple logical operators, wherein the query options are displayed in the form of a directory tree, and the logical operators are displayed in the form of modules. The user first selected the query option "gender" with the first selection order; then selected the logical operator "or" with the second selection order; and finally selected the query option "vehicle purchase time". Therefore, the generated query condition is: (gender) or (vehicle purchase time). Then, by setting the query information of the query option, a complete query condition can be generated. As shown in interface 405, the gender can be set to female, and the vehicle purchase time can be set to 2021, then the generated complete query condition is: female or 2021. Finally, the target objects queried by the complete query condition include the vehicle insurance data of female users and the vehicle insurance data of users in 2021.
[0055] In a possible implementation, the query condition configuration interface may also include at least one logical operation rule; then, in response to the selection operation of at least one query option and at least one logical operator, the method of determining the selected at least one target query option and at least one target logical operator, and the selection order of each target query option and each target logical operator may be: in response to the selection operation of at least one logical operation rule, determining the selected target logical operation rule; in response to the selection operation of at least one query option, determining the selected at least one target query option, and the filling position of each target query option in the target logical operation rule; in response to the selection operation of at least one logical operator, determining the selected at least one target logical operator, and the filling position of each target logical operator in the target logical operation rule.
[0056] Preferably, the method of generating the query condition of the target object based on at least one target query option, at least one target logical operator, and the selection order of each target query option and each target logical operator can be: based on the target logical operation rule, at least one target query option, at least one target logical operator, the filling position of each target query option in the target logical operation case, and the filling position of each target logical operator in the target logical operation case, the query condition of the target object is generated. Specifically, the logical operation rule refers to a template in which the number and position of query options, as well as the number and position of logical operators, have been set. After the target logical operation rule is determined, by responding to the selection operation of the query option and the selection operation of the logical operator, the query options or logical operators corresponding to each filling position in the target logical operation rule can be determined, thereby generating the query condition.
[0057] In a possible implementation, the method of determining the at least one selected target query option and the filling position of each target query option in the target logic operation rule in response to the selection operation of at least one query option may be: determining the at least one selected target query option in response to the selection operation of at least one query option; determining the end position of the dragging operation in response to the dragging operation of each target query option; and determining the end position as the filling position of each target query option in the target logic operation rule. Specifically, the method of determining the filling position of the query option may be to drag the query option to the filling position in the target logic operation rule.
[0058] For example, see the attached Figure 5a, shows another schematic diagram of the process of generating query conditions, wherein the query configuration interface 501 includes multiple query options, multiple logical operators, and multiple logical operation rules. Among them, logical operation rules 1 and logical operation rules 2 are in tree diagram form, logical operation rule 3 is in logical link form, circles represent query options that can be filled, and squares represent logical operators that can be filled. As shown in the query configuration interface 501, user M selects logical operation rule 1, and then starts to configure the query conditions according to logical operation rule 1. As shown in interface 502, in response to the user M's drag operation on the target query option "age", the end position of the drag operation is determined to be the top filling position in logical operation rule 1, so as shown in interface 503, the target query option "age" has been filled into logical operation rule 1; then, user M selects the logical operator "contains" and drags it to the filling position of the logical operator on the left. Finally, through a series of drag operations by user M, query conditions such as interface 504 are generated. User M sets age to 30, gender to male, and car insurance cost to 268 yuan, thereby generating a complete query condition. Finally, the target objects found through the complete query conditions include the vehicle insurance data of male users aged 30 and the vehicle insurance data of users aged 30 with an outgoing vehicle insurance premium of 268 yuan. Preferably, the query options or logical operators can also be flexibly set by the user to be presented in a variety of ways such as a directory tree and tab switching, which are not limited here.
[0059] For example, see the attached Figure 5b, shows another schematic diagram of the process of generating query conditions, wherein the query configuration interface 501 includes multiple query options, multiple logical operators, and multiple logical operation use cases. Among them, logical operation rule 2 indicates "cost calculation", that is, logical operation rule 2 is used to calculate the cost of each query option filling position. As shown in the query configuration interface 505, user N selects logical rule 2, and then starts to configure the query conditions according to logical operation rule 2. As shown in interface 506, in response to user N's drag operation on the target query option "time", the end position of the drag operation is determined to be the filling position at the top of logical rule 2. Therefore, as shown in interface 507, the target query option "time" has been filled into logical rule 2; then, user N selects the logical operator "plus" and drags it to the filling position of the logical operator on the right. Finally, through a series of drag operations by user N, a query condition as shown in interface 508 is generated. User N sets three times as October 1, 2021, October 11, 2021, and October 21, 2021, respectively, to obtain a complete query condition. Finally, the target object obtained by the complete query condition is the sum of the auto insurance premium of 280,000 paid on October 1, 2021, the auto insurance premium of 170,000 paid on October 11, 2021, and the auto insurance premium of 190,000 paid on October 21, 2021, that is, 640,000. Preferably, the operation logic of each node in the tree diagram can be freely set by the user and is not limited here.
[0060] In a possible implementation, the query condition configuration interface may also include at least one logical operation use case, and each logical operation use case includes a logical operation rule and a logical operator; then, in response to the selection operation of at least one query option and at least one logical operator, the method for determining the selected at least one target query option and at least one target logical operator, and the selection order of each target query option and each target logical operator may be: in response to the selection operation of at least one logical operation use case, determining the selected target logical operation use case; in response to the selection operation of at least one query option, determining the selected at least one target query option, and the filling position of each target query option in the target logical operation use case.
[0061] Preferably, the method of generating the query condition of the target object based on at least one target query option, at least one target logical operator, and the selection order of each target query option and each target logical operator can be: based on the target logical operation use case, at least one target query option, and the filling position of each target query option in the target logical operation use case, generate the query condition of the target object.
[0062] Specifically, a logical operation use case refers to a template use case in which the logical operators in the logical operation and the number and position of query options have been set. After the target logical operation use case is determined, the query options corresponding to each fill position in the target logical operation rule can be determined by responding to the selection operation of the query options, thereby generating query conditions.
[0063] In a possible implementation, the target logic operation case may include at least one filling component; then, in response to a selection operation on at least one query option, the method for determining the selected at least one target query option and the filling position of each target query option in the target logic operation case may also be: in response to an edit operation on each filling component, the target query option to be filled into each filling component is obtained, and the filling position of the obtained target query option in the target logic operation case is determined as the position of each filling component in the target logic operation case. Specifically, the method for determining the filling position of the query option may be to determine the filling position of the query option by directly selecting the target query option in the filling component at the filling position.
[0064] For example, see the attached Figure 6 , shows another schematic diagram of the process of generating query conditions, and the query condition configuration interface 601 includes multiple logical operation use cases, wherein each logical operation use case includes multiple filling components. As shown in the query condition configuration interface 601, user A selects the logical operation use case 3, and then as shown in the interface 602, user A selects the query option "age" in the filling component of the first query option of the logical operation use case 3; finally, in response to the user A's editing operation on each filling component, the query condition shown in the interface 604 is generated. User A sets the age to 30, the car insurance cost to 500 yuan, and the purchase time to 2021, thereby forming a complete query condition. Finally, the target objects queried by the complete query condition include the vehicle insurance data of users who are 30 years old and have a car insurance cost of 500 yuan, and the vehicle insurance data of users who purchased in 2021.
[0065] S304: Configure the query conditions of the query platform as the query conditions of the target object.
[0066] In an embodiment of the present application, after the query conditions for the target object are configured, it can also be: when a query request is received, a query information input interface is displayed, the query information input interface including the query conditions for the target object; in response to the editing operation on each query option, the query information corresponding to each query option is determined; then based on the query conditions, logical operations are performed on the query information corresponding to each query option to obtain a logical operation result, and finally, a target object matching the above logical operation result is found in at least one object.
[0067] For example, the query condition is "age or gender", and then the user edits the query information of the query option "age" to 20 years old, and edits the query information of the query option "gender" to female, so the logical operation result is "20 years old or female". Finally, the target objects found in the multiple vehicle insurance data in the database are the vehicle insurance data of users who are 20 years old and the vehicle insurance data of users who are female.
[0068] In an embodiment of the present application, a query condition configuration interface is first displayed, wherein the query condition configuration interface includes at least one query option and at least one logical operator; then, in response to the selection operation of at least one query option and at least one logical operator, at least one selected target query option and at least one target logical operator, as well as the selection order of each target query option and each target logical operator are determined; then, based on at least one target query option, at least one target logical operator, and the selection order of each target query option and each target logical operator, query conditions for the target object are generated; finally, the query conditions of the query platform are configured as the query conditions for the target object. By displaying a query condition configuration interface, an embodiment of the present application can display query options and logical operators to achieve interaction with users; at the same time, by responding to the selection operation of query options and logical operators, the selected target query options and target logical operators, as well as the selection order of each target query options and each target logical operator are determined, and flexible configuration of query options and logical operators can be achieved, so that multiple query options can be combined under multiple logics, and finally query conditions are generated to meet complex data screening requirements.
[0069] See also Figure 7 , Figure 7 is a flow chart of another method for configuring query conditions provided in an embodiment of the present application; Figure 7 The query conditions shown can be configured by Figure 1 or Figure 2 The terminal device shown in the figure is executed, wherein the terminal device runs a client for configuring query conditions. The scheme includes but is not limited to steps S701 to S705, wherein:
[0070] S701, displaying a query condition configuration interface, wherein the query condition configuration interface includes at least one query option and at least one logical operator.
[0071] S702: In response to a selection operation of at least one query option and at least one logical operator, determine at least one selected target query option and at least one target logical operator, and a selection order of each target query option and each target logical operator.
[0072] It should be noted that the specific implementation process of steps S701 to S702 can be found in Figure 1 The relevant description of the specific implementation process shown in steps S301 to S302 of the illustrated embodiment is not repeated here.
[0073] S703: For each target query option, in response to a selection operation of at least one query input mode, determine the selected target query input mode, and use the target query input mode as the query input mode for each target query option.
[0074] S704, generating a query condition for the target object based on at least one target query option, at least one target logical operator, the selection order of each target query option and each target logical operator, and the query input method of each target query option.
[0075] In the embodiment of the present application, the query input method refers to the input method of the query information of the query option. For example, the query input method can be an enumeration type, an input value type, a range screening value type, a date type, a value condition logic link type, a list type, etc., which are not limited here. By selecting the query input method of the query option, the same query option can select different input methods based on different requirements, which is conducive to meeting the diverse data screening requirements of the application platform.
[0076] For example, see the attached Figure 8 , Figure 8Another schematic diagram of the process of generating query conditions is shown, including multiple query input methods in interface 801, and query conditions with query options and logical operators already set. Then, in response to user B's selection operation of the query method for each query option, the query input method for each query option is determined. As shown in interface 802, the query input method for the query option "age" is "input value type", the query input method for the query option "gender" is "enumeration type", and the query input method for the query option "purchase time" is "range screening value type". Since the query input methods of each query option are different, as shown in interfaces 803 to 805, when user B wants to input query information for the query option "age", since the query input method of the query option "age" is "input value type", user B can freely input the query information of the query option "age" as 35; when user B wants to input query information for the query option "gender", since the query input method of the query option "gender" is "enumeration type", interface 804 will display all options for "gender", that is, male and female, and user B enters the query information of the query option "gender" as male by clicking the option; when user B wants to input query information for the query option "purchase time", since the query input method of the query option "purchase time" is "range screening value type", interface 805 will display the start time and end time of the "purchase time", and user B can determine the query information of the query option "purchase time" as 10.1 to 10.8 by entering the values of the start time and the end time. Finally, a complete query condition is formed as shown in interface 806 after completing the input of the query information.
[0077] In one possible implementation, when the query input method of any target query option does not exist in at least one query input method, a query input method adding request can be sent to the server, so that the server adds the query input method of any target query option in the first query input method component, obtains the second query input method component, and returns the second query input method component; performs data rendering processing on the second query input component to obtain a processed second query input method component; and displays the processed second query input method component, wherein the processed second query input method component includes the query input method of any target query option.
[0078] Specifically, the query input method component includes at least one query input method; the query input method can be added to the query input method component by adding a rendering template of the query input method, as well as data submission and write-back methods.
[0079] For example, when the user does not find the query input method "date type" that matches the target query option W during the query input method selection process of the target query option W, a query input method addition request for "date type" can be sent to the server, and the server or back-end staff will add the rendering template of "date type" and the data submission and write-back method to the query input method component, thereby obtaining the query input method component containing "date type". After receiving the query input method component containing "date type", the client will render the data of the query input method component containing "date type" according to the data display format of the query condition configuration interface of the client, and finally the query input method component displayed in the query condition configuration interface contains the query input method of "date type". Preferably, the rendering template, and the data submission and write-back method can be a preset rendering template and write-back method, or a rendering template, and a data submission and write-back method developed by the R&D personnel according to the data characteristics of the added query input method, which are not limited here.
[0080] In one possible implementation, when the target query option X does not exist in at least one query option in the query condition configuration interface, a query option addition request is sent to the server, so that the server adds the target query option X in the first query option component, obtains the second query option component, and returns the second query option component; performs data rendering processing on the second query option component to obtain a processed second query option component; and displays the processed second query option component, which includes the target query option X.
[0081] In a possible implementation, step S703 may be performed before step S702, which is not limited herein.
[0082] S705: Configure the query conditions of the query platform as the query conditions of the target object.
[0083] It should be noted that the specific implementation process of step S705 can be found in Figure 1 The relevant description of the specific implementation process shown in step S304 of the illustrated embodiment is not repeated here.
[0084] In the embodiment of the present application, the query condition configuration interface is first displayed, wherein the query condition configuration interface includes at least one query option and at least one logical operator; then in response to the selection operation of at least one query option, at least one logical operator, and at least one query input method, the selected target query option, target logical operator and target query input method, as well as the selection order of each target query option and each target logical operator can be determined; then based on at least one target query option, at least one target logical operator, the selection order of each target query option and each target logical operator, and the query input method of each target query option, the query condition of the target object is generated; finally, the query condition of the query platform is configured as the query condition of the target object. The embodiment of the present application can achieve that the same query option can select different input methods based on different requirements by selecting the query input method of each target query option, which is conducive to meeting the diverse data screening requirements of the application platform. In addition, when any target query option or the query input method of the target query option does not exist in at least one query option or at least one query input method, the query option or query input method can be flexibly added in the query option component or the query input method component through the server or the background, thereby improving the extensibility of the query condition in the configuration process.
[0085] Based on the above query condition configuration system embodiment and query condition configuration method embodiment, the present application embodiment provides another query condition configuration method. Fig. 9 , which is a flow chart of another method for configuring query conditions provided in an embodiment of the present application. Fig. 9 The query conditions shown can be configured by Figure 1 The terminal device and the server are executed, wherein the client of the query platform is running in the terminal device. The scheme includes but is not limited to steps S901 to S908, wherein:
[0086] S901, the client displays a query condition configuration interface, wherein the query condition configuration interface includes at least one query option and at least one logical operator.
[0087] S902: The client responds to the selection operation of at least one query option and at least one logical operator, determines the selected at least one target query option and at least one target logical operator, and the selection order of each target query option and each target logical operator.
[0088] S903: The client generates a query condition for the target object based on at least one target query option, at least one target logical operator, and a selection order of each target query option and each target logical operator.
[0089] It should be noted that the specific implementation process of steps S901 to S903 can be found in Figure 1 The relevant description of the specific implementation process shown in steps S301 to S303 of the illustrated embodiment is not repeated here.
[0090] S904, the client responds to the editing operation on the target query option and determines the query information of each target query option in the query condition of each target object.
[0091] S905, the client performs a logical operation on the query information of each target query option based on the query condition of the target object to obtain a logical operation result.
[0092] In an embodiment of the present application, the query information refers to the option value of the query option. For example, when the query option is "age", the query information input can be a numerical value or character such as 30 years old, forty, etc.; when the query option is "gender", the query information input can be male, female, or 0, 1, etc. representing male and female, etc., which is not limited here. The logical operation result refers to the query condition for which specific query information has been configured. Exemplarily, the query condition is: (age and gender) or purchase time. Then determine that the query information of the query option "age" is 25, the query information of the query option "gender" is female, and the query information of the query option "purchase time" is October 28; then the final logical operation result is: (25 and female) or October 28.
[0093] S906, the client sends the logic operation result to the server.
[0094] S907: The server searches for a target object that matches the result of the logic operation.
[0095] In the embodiment of the present application, the way in which the server searches for the target object that matches the result of the logical operation is a technical means commonly used by those skilled in the art and will not be described in detail here.
[0096] S908: The server sends the target object to the client.
[0097] In an embodiment of the present application, a query condition configuration interface is first displayed, wherein the query condition configuration interface includes at least one query option and at least one logical operator; then, in response to the selection operation of at least one query option and at least one logical operator, at least one selected target query option and at least one target logical operator, as well as the selection order of each target query option and each target logical operator are determined; then, based on at least one target query option, at least one target logical operator, and the selection order of each target query option and each target logical operator, query conditions for the target object are generated; finally, the query conditions of the query platform are configured as the query conditions for the target object. By displaying a query condition configuration interface, an embodiment of the present application can display query options and logical operators to achieve interaction with users; at the same time, by responding to the selection operation of query options and logical operators, the selected target query options and target logical operators, as well as the selection order of each target query options and each target logical operator are determined, and flexible configuration of query options and logical operators can be achieved, so that multiple query options can be combined under multiple logics, and finally query conditions are generated to meet complex data screening requirements.
[0098] Based on the above query condition configuration system embodiment and query condition configuration method embodiment, the present application embodiment provides another query condition configuration method. Fig.10 , which is a flow chart of another method for configuring query conditions provided in an embodiment of the present application. Fig.10 The query conditions shown can be configured by Figure 2 The terminal device, server and query platform are executed, wherein a client for configuring query conditions is running in the terminal device, and the scheme includes but is not limited to steps S1001 to S1010, wherein:
[0099] S1001, the query platform sends a query condition configuration request to the client.
[0100] S1002: The client displays a query condition configuration interface, wherein the query condition configuration interface includes at least one query option and at least one logical operator.
[0101] S1003: The client responds to the selection operation of at least one query option and at least one logical operator, determines the selected at least one target query option and at least one target logical operator, and the selection order of each target query option and each target logical operator.
[0102] S1004: The client generates a query condition for the target object based on at least one target query option, at least one target logical operator, and a selection order of each target query option and each target logical operator.
[0103] S1005, the client sends the query conditions of the target object to the query platform.
[0104] S1006, the query platform responds to the editing operation on the target query option and determines the query information of each target query option in the query condition of each target object.
[0105] S1007, the query platform performs logical operation processing on the query information of each target query option based on the query condition of the target object to obtain a logical operation result.
[0106] S1008, the query platform sends the logical operation result to the server.
[0107] S1009: The server searches for a target object that matches the result of the logic operation.
[0108] S1010, the server sends the target object to the query platform.
[0109] It should be noted that the specific implementation process of steps S1001 to S1010 can be found in Figure 3 The description of the specific implementation process shown in steps S301 to S304 of the embodiment shown in the figure, and Fig. 9 The relevant description of the specific implementation process shown in steps S901 to S908 of the illustrated embodiment is not repeated here.
[0110] In an embodiment of the present application, a query condition configuration interface is first displayed, wherein the query condition configuration interface includes at least one query option and at least one logical operator; then, in response to the selection operation of at least one query option and at least one logical operator, at least one selected target query option and at least one target logical operator, as well as the selection order of each target query option and each target logical operator are determined; then, based on at least one target query option, at least one target logical operator, and the selection order of each target query option and each target logical operator, query conditions for the target object are generated; finally, the query conditions of the query platform are configured as the query conditions for the target object. By displaying a query condition configuration interface, an embodiment of the present application can display query options and logical operators to achieve interaction with users; at the same time, by responding to the selection operation of query options and logical operators, the selected target query options and target logical operators, as well as the selection order of each target query options and each target logical operator are determined, and flexible configuration of query options and logical operators can be achieved, so that multiple query options can be combined under multiple logics, and finally query conditions are generated to meet complex data screening requirements.
[0111] An embodiment of the present application further provides a computer storage medium, in which program instructions are stored. When the program instructions are executed, they are used to implement the corresponding methods described in the above embodiments.
[0112] See also Fig.11 , Fig.11 It is a structural diagram of a query condition configuration device provided in an embodiment of the present application.
[0113] In one implementation of the device of the embodiment of the present application, the device includes the following structure.
[0114] A display unit 1101 is used to display a query condition configuration interface, where the query condition configuration interface includes at least one query option and at least one logical operator;
[0115] The processing unit 1102 is configured to determine, in response to a selection operation on at least one query option and at least one logical operator, at least one selected target query option and at least one target logical operator, and a selection order of each target query option and each target logical operator;
[0116] The processing unit 1102 is further configured to generate a query condition for a target object based on at least one target query option, at least one target logical operator, and a selection order of each target query option and each target logical operator;
[0117] The processing unit 1102 is further configured to configure the query conditions of the query platform as the query conditions of the target object.
[0118] In one embodiment, the query condition configuration interface further includes at least one logical operation rule; the processing unit 1102 is further configured to:
[0119] In response to a selection operation on at least one logic operation rule, determining a selected target logic operation rule;
[0120] In response to a selection operation of at least one query option, determining at least one selected target query option and a filling position of each target query option in a target logical operation rule;
[0121] In response to a selection operation on at least one target logical operator, the selected at least one target logical operator and the filling position of each target logical operator in the target logical operation rule are determined.
[0122] In one embodiment, the processing unit 1102 is also used to generate query conditions for the target object based on the target logical operation rules, at least one target query option, at least one target logical operator, the filling position of each target query option in the target logical operation rules, and the filling position of each target logical operator in the target logical operation rules.
[0123] In one embodiment, the query condition configuration interface further includes at least one logic operation use case, each logic operation use case includes a logic operation rule and a logic operator; the processing unit 1102 is further used to:
[0124] In response to a selection operation on at least one logic operation case, determining a selected target logic operation case;
[0125] In response to a selection operation on at least one query option, at least one selected target query option and a filling position of each target query option in a target logical operation case are determined.
[0126] In one embodiment, the processing unit 1102 is further configured to generate a query condition for the target object based on the target logic operation case, at least one target query option, and a filling position of each target query option in the target logic operation case.
[0127] In one embodiment, the processing unit 1102 is further configured to: in response to a selection operation on at least one query option, determine at least one selected target query option;
[0128] Responding to the drag operation on each target query option, determining the end point position of the drag operation;
[0129] The end point position is determined as the filling position of each target query option in the target logical operation case.
[0130] In one embodiment, the target logic operation case includes at least one filling component; the processing unit 1102 is further used to: in response to a selection operation of at least one query option, determine the selected at least one target query option, and the filling position of each target query option in the target logic operation case, including:
[0131] In response to the editing operation on each filling component, the target query options to be filled into each filling component are obtained, and the filling positions of the obtained target query options in the target logical operation case are determined as the positions of each filling component in the target logical operation case.
[0132] In one embodiment, the query condition configuration interface also includes at least one query input method; the processing unit 1102 is also used to: for each target query option, respond to a selection operation of at least one query input method, determine the selected target query input method, and use the target query input method as the query input method for each target query option.
[0133] In one embodiment, the processing unit 1102 is further configured to: when the query input mode of any target query option does not exist in at least one query input mode, send a query input mode adding request to the server, so that the server adds the query input mode of any target query option in the first query input mode component, obtains a second query input mode component, and returns the second query input mode component;
[0134] Performing data rendering processing on the second query input component to obtain a processed second query input mode component;
[0135] The processed second query input mode component is displayed, wherein the processed second query input mode component includes a query input mode of any target query option.
[0136] In an embodiment of the present application, a query condition configuration interface is first displayed, wherein the query condition configuration interface includes at least one query option and at least one logical operator; then, in response to the selection operation of at least one query option and at least one logical operator, at least one selected target query option and at least one target logical operator, as well as the selection order of each target query option and each target logical operator are determined; then, based on at least one target query option, at least one target logical operator, and the selection order of each target query option and each target logical operator, query conditions for the target object are generated; finally, the query conditions of the query platform are configured as the query conditions for the target object. By displaying a query condition configuration interface, an embodiment of the present application can display query options and logical operators to achieve interaction with users; at the same time, by responding to the selection operation of query options and logical operators, the selected target query options and target logical operators, as well as the selection order of each target query options and each target logical operator are determined, and flexible configuration of query options and logical operators can be achieved, so that multiple query options can be combined under multiple logics, and finally query conditions are generated to meet complex data screening requirements.
[0137] See also Fig.12 , Fig.121 is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device in the embodiment of the present application includes a power supply module and other structures, and includes a processor 1201, a storage device 1202, and a communication interface 1203. The processor 1201, the storage device 1202, and the communication interface 1203 can exchange data, and the processor 1201 implements the configuration method of the corresponding query condition.
[0138] The storage device 1202 may include a volatile memory, such as a random-access memory (RAM); the storage device 1202 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the storage device 1202 may also include a combination of the above-mentioned types of memory.
[0139] The processor 1201 may be a central processing unit (CPU) 1201. The processor 1201 may also be a combination of a CPU and a GPU. In a computer device, multiple CPUs and GPUs may be included as needed to perform corresponding data processing. In one embodiment, the storage device 1202 is used to store program instructions. The processor 1201 may call program instructions to implement various methods involved in the embodiments of the present application.
[0140] In a first possible implementation, the processor 1201 of the computer device calls the program instructions stored in the storage device 1202 to display a query condition configuration interface, which includes at least one query option and at least one logical operator; in response to the selection operation of the at least one query option and the at least one logical operator, determines the selected at least one target query option and at least one target logical operator, and the selection order of each target query option and each target logical operator; based on the at least one target query option, the at least one target logical operator, and the selection order of each target query option and each target logical operator, generates a query condition for the target object; and configures the query condition of the query platform as the query condition of the target object.
[0141] In one embodiment, the query condition configuration interface further includes at least one logic operation rule; the processor 1201 is further configured to: respond to a selection operation of the at least one logic operation rule, and determine a selected target logic operation rule;
[0142] In response to a selection operation of at least one query option, determining at least one selected target query option and a filling position of each target query option in a target logical operation rule;
[0143] In response to a selection operation on at least one target logical operator, the selected at least one target logical operator and the filling position of each target logical operator in the target logical operation rule are determined.
[0144] In one embodiment, processor 1201 is also used to generate query conditions for the target object based on a target logical operation rule, at least one target query option, at least one target logical operator, the filling position of each target query option in the target logical operation rule, and the filling position of each target logical operator in the target logical operation rule.
[0145] In one embodiment, the query condition configuration interface further includes at least one logic operation use case, each logic operation use case includes a logic operation rule and a logic operator; the processor 1201 is further used to: respond to a selection operation of at least one logic operation use case, and determine a selected target logic operation use case;
[0146] In response to a selection operation on at least one query option, at least one selected target query option and a filling position of each target query option in a target logical operation case are determined.
[0147] In one embodiment, the processor 1201 is further configured to generate a query condition for the target object based on the target logic operation case, at least one target query option, and a filling position of each target query option in the target logic operation case.
[0148] In one embodiment, the processor 1201 is further configured to: in response to a selection operation on at least one query option, determine at least one selected target query option;
[0149] Responding to the drag operation on each target query option, determining the end point position of the drag operation;
[0150] The end point position is determined as the filling position of each target query option in the target logical operation case.
[0151] In one embodiment, the target logical operation use case includes at least one filling component; the processor 1201 is also used to: respond to editing operations on each filling component, obtain target query options to be filled into each filling component, and determine the filling position of the obtained target query options in the target logical operation use case as the position of each filling component in the target logical operation use case.
[0152] In one embodiment, the query condition configuration interface also includes at least one query input method; the processor 1201 is also used to: for each target query option, respond to a selection operation of at least one query input method, determine the selected target query input method, and use the target query input method as the query input method for each target query option.
[0153] In one embodiment, the processor 1201 is further configured to: when the query input mode of any target query option does not exist in at least one query input mode, send a query input mode adding request to the server, so that the server adds the query input mode of any target query option in the first query input mode component, obtains a second query input mode component, and returns the second query input mode component;
[0154] Performing data rendering processing on the second query input component to obtain a processed second query input mode component;
[0155] The processed second query input mode component is displayed, wherein the processed second query input mode component includes a query input mode of any target query option.
[0156] In an embodiment of the present application, a query condition configuration interface is first displayed, wherein the query condition configuration interface includes at least one query option and at least one logical operator; then, in response to the selection operation of at least one query option and at least one logical operator, at least one selected target query option and at least one target logical operator, as well as the selection order of each target query option and each target logical operator are determined; then, based on at least one target query option, at least one target logical operator, and the selection order of each target query option and each target logical operator, query conditions for the target object are generated; finally, the query conditions of the query platform are configured as the query conditions for the target object. By displaying a query condition configuration interface, an embodiment of the present application can display query options and logical operators to achieve interaction with users; at the same time, by responding to the selection operation of query options and logical operators, the selected target query options and target logical operators, as well as the selection order of each target query options and each target logical operator are determined, and flexible configuration of query options and logical operators can be achieved, so that multiple query options can be combined under multiple logics, and finally query conditions are generated to meet complex data screening requirements.
[0157] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM). The computer-readable storage medium can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the blockchain node, etc.
[0158] The above disclosure is only part of the embodiments of the present application, which certainly cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and making equivalent changes according to the claims of this application are still within the scope of the invention.
Claims
1. A method for configuring a query condition, characterized in that: include: Displaying a query condition configuration interface, the query condition configuration interface including at least one query option and at least one logical operator, multiple logical operation rules and multiple query input methods, the multiple logical operation rules including tree diagram type and logical link type logical operation rules; In response to the selection operation of the at least one query option and the at least one logical operator, determining the selected at least one target query option and the at least one target logical operator, and the selection order of the respective target query options and the respective target logical operators; Generate a query condition for a target object based on the at least one target query option, the at least one target logical operator, and a selection order of the target query options and the target logical operators; Configuring the query conditions of the query platform as the query conditions of the target object; For each of the target query options, in response to a selection operation of the query input mode, determining a selected target query input mode, and using the target query input mode as the query input mode of the target query option; When the query input method of any target query option does not exist in the multiple query input methods, a query input method adding request is sent to the server, so that the server adds the query input method of any target query option in the first query input method component, obtains the second query input method component, and returns the second query input method component; adding the query input method is implemented in the query input method component by adding a rendering template of the query input method, as well as a data submission and write-back method to the query input method component; Performing data rendering processing on the second query input mode component to obtain a processed second query input mode component; The processed second query input mode component is displayed, wherein the processed second query input mode component includes the query input mode of any target query option.
2. The method according to claim 1, characterized in that The step of determining, in response to the selection operation of the at least one query option and the at least one logical operator, the selected at least one target query option and the at least one target logical operator, and the selection order of the target query options and the target logical operators comprises: In response to a selection operation on a logic operation rule, determining a selected target logic operation rule; In response to a selection operation of the at least one query option, determining at least one selected target query option and a filling position of each target query option in the target logic operation rule; In response to the selection operation of the at least one target logical operator, the selected at least one target logical operator and the filling position of each target logical operator in the target logical operation rule are determined.
3. The method according to claim 2, characterized in that The generating a query condition of the target object based on the at least one target query option, the at least one target logical operator, and the selection order of the target query options and the target logical operators includes: Based on the target logical operation rule, the at least one target query option, the at least one target logical operator, the filling position of each target query option in the target logical operation rule, and the filling position of each target logical operator in the target logical operation rule, the query condition of the target object is generated.
4. The method according to claim 1, characterized in that: The query condition configuration interface also includes at least one logic operation use case, each logic operation use case includes a logic operation rule and a logic operator; The step of determining, in response to the selection operation of the at least one query option and the at least one logical operator, the selected at least one target query option and the at least one target logical operator, and the selection order of the target query options and the target logical operators comprises: In response to a selection operation on the at least one logic operation case, determining a selected target logic operation case; In response to the selection operation of the at least one query option, at least one selected target query option and a filling position of each target query option in the target logical operation case are determined.
5. The method according to claim 4, characterized in that The generating a query condition of the target object based on the at least one target query option, the at least one target logical operator, and the selection order of the target query options and the target logical operators includes: A query condition for the target object is generated based on the target logic operation case, the at least one target query option, and the filling position of each target query option in the target logic operation case.
6. The method according to claim 4 or 5, characterized in that: In response to the selection operation of the at least one query option, determining the selected at least one target query option and the filling position of each target query option in the target logic operation case includes: In response to a selection operation of the at least one query option, determining at least one selected target query option; In response to a drag operation on each target query option, determining an end point position of the drag operation; The end point position is determined as the filling position of each target query option in the target logical operation use case.
7. The method according to claim 4 or 5, characterized in that: The target logic operation use case includes at least one fill component; In response to the selection operation of the at least one query option, determining the selected at least one target query option and the filling position of each target query option in the target logic operation case includes: In response to the editing operation on each filling component, the target query option to be filled into each filling component is obtained, and the filling position of the obtained target query option in the target logical operation case is determined to be the position of each filling component in the target logical operation case.
8. A query condition configuration device, characterized in that: The device comprises: A display unit, used to display a query condition configuration interface, wherein the query condition configuration interface includes at least one query option and at least one logical operator, multiple logical operation rules, and multiple query input methods, wherein the multiple logical operation rules include tree diagram type and logical link type logical operation rules; a processing unit, configured to determine, in response to a selection operation on the at least one query option and the at least one logical operator, the selected at least one target query option and the at least one target logical operator, and a selection order of the target query options and the target logical operators; The processing unit is further configured to generate a query condition for a target object based on the at least one target query option, the at least one target logical operator, and a selection order of the target query options and the target logical operators; The processing unit is further used to configure the query condition of the query platform as the query condition of the target object; The processing unit is also used to respond to the selection operation of the query input method for each target query option, determine the selected target query input method, and use the target query input method as the query input method of the target query option; when the query input method of any target query option does not exist in the multiple query input methods, send a query input method addition request to the server, so that the server adds the query input method of any target query option in the first query input method component, obtains the second query input method component, and returns the second query input method component; adding the query input method is implemented in the query input method component by adding a rendering template of the query input method, as well as a data submission and write-back method to the query input method component; performing data rendering processing on the second query input method component to obtain a processed second query input method component; displaying the processed second query input method component, wherein the processed second query input method component includes the query input method of any target query option.
9. A computer device, characterized in that: It includes a processor, a storage device and a communication interface, wherein the processor, the storage device and the communication interface are interconnected, wherein the storage device is used to store computer program instructions, and the processor is configured to execute the program instructions to implement the query condition configuration method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, they are used to execute the method for configuring the query conditions according to any one of claims 1 to 7.
Citation Information
Patent Citations
Label configuration method, device and apparatus convenient to configure and storage medium
CN110716951A
Customer list screening method and device
CN113268496A
Categorical search using visual cues and heuristics
US20210173850A1
Scalable query processing
US20210374135A1
