Order rule configuration method, system, electronic device and medium
By automatically matching and displaying the logical relationships in order rules, the problem of low configuration efficiency of order rules in the existing technology is solved, the configuration efficiency and accuracy are improved, and the risk of misjudgment is reduced.
Patent Information
- Application Number
- CN202210151383.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-17
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-02-17
AI Technical Summary
In the prior art, order rules are configured inefficiently, especially when multiple conditions and mixed and nested relationships are complex, it is difficult for users to quickly determine the logical relationship of conditions, resulting in laborious configuration and low efficiency.
By obtaining the data of the target order, analyzing and matching the logical relationship between the condition groups and the adjacent conditions within the condition groups, the logical relationship is automatically displayed, and the user's need for manual configuration is reduced.
It greatly improves the efficiency and accuracy of order rule configuration, reduces the risk of order misjudgment caused by wrong rule configuration, and reduces the complexity of user operations.
Smart Images

Figure CN114529366B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a configuration method, system, electronic device and medium for order rules. Background Art
[0002] Currently, in the scenarios involving the setting of conditional "or" and "and" relationships in order rule configuration, the common configuration methods for handling "or" and "and" conditional relationships mainly include the following two methods:
[0003] The first method is to manually set the selection box condition relationship by the user. That is, add a drop-down box containing "any" (or) or "all" (and) options between the condition group or adjacent conditions in the condition group, so that the user can select one by one to realize the logical setting between the conditions.
[0004] The second method is to implement logical configuration by manually adding relationship text between conditions. That is, every time a condition or condition group is added, the user needs to manually select the condition relationship. After the user selects, the established logical relationship is displayed on the interface with "or" or "and" text.
[0005] The above two methods have the following problems: When the order rules involve multiple conditions and the conditions or condition groups are mixed or nested, users cannot determine the final logical relationship of the added conditions only through the front-end interface display in the fastest time. Instead, they need to continuously calculate to have a clear understanding of it. The effort and understanding cost of the rule configuration are relatively high, and users themselves are required to have strong logical thinking. This leads to the problem of low efficiency in order rule configuration. Summary of the invention
[0006] The technical problem to be solved by the present invention is to overcome the defect of low efficiency of order rule configuration in the prior art and to provide an order rule configuration method, system, electronic device and medium.
[0007] The present invention solves the above technical problems through the following technical solutions:
[0008] The present invention provides a method for configuring an order rule, the configuration method comprising:
[0009] Acquire data of a target order; the data includes order rules of the target order;
[0010] Analyze the data of the target order to obtain the logical relationship in the condition setting of the target order; the logical relationship includes the logical relationship between the condition groups and the logical relationship between adjacent conditions in the condition group;
[0011] receiving a setting instruction of a condition group in a condition setting of the target order;
[0012] According to the setting instructions of the condition groups, the logical relationships between the condition groups are matched.
[0013] Preferably, after the step of matching the logical relationship between the condition groups according to the setting instructions of the condition groups, the configuration method further comprises:
[0014] receiving a setting instruction for adjacent conditions in a condition group in the condition setting of the target order;
[0015] According to the setting instruction of the adjacent conditions, the logical relationship between the adjacent conditions in the condition group is matched.
[0016] Preferably, the configuration method further includes:
[0017] The order rules of the target order are displayed in the first area of the interactive interface.
[0018] Preferably, the configuration method further includes:
[0019] Displaying the logical relationship between the condition groups in the second area of the interactive interface;
[0020] And / or, the logical relationship between adjacent conditions in the condition group is displayed in the third area of the interactive interface.
[0021] The present invention also provides an order rule configuration system, the configuration system comprising:
[0022] An acquisition module, for acquiring data of a target order; the data includes order rules of the target order;
[0023] An analysis module, used for analyzing the data of the target order to obtain the logical relationship in the condition setting of the target order; the logical relationship includes the logical relationship between the condition groups and the logical relationship between adjacent conditions in the condition group;
[0024] A first receiving module, configured to receive a setting instruction of a condition group in a condition setting of the target order;
[0025] The first matching module is used to match the logical relationship between the condition groups according to the setting instructions of the condition groups.
[0026] Preferably, the configuration system further includes:
[0027] A second receiving module, configured to receive setting instructions for adjacent conditions in a condition group in the condition setting of the target order;
[0028] The second matching module is used to match the logical relationship between adjacent conditions in the condition group according to the setting instruction of the adjacent conditions.
[0029] Preferably, the configuration system further includes:
[0030] The first display module displays the order rules of the target order in the first area of the interactive interface.
[0031] Preferably, the configuration system further includes:
[0032] A second display module, used to display the logical relationship between the condition groups in a second area of the interactive interface;
[0033] And / or, a third display module, used to display the logical relationship between adjacent conditions in the condition group in a third area of the interactive interface.
[0034] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned method for configuring order rules when executing the computer program.
[0035] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the configuration method of the order rules as described above is implemented.
[0036] The positive and progressive effects of the present invention are:
[0037] The present invention provides a configuration method, system, electronic device and medium for order rules. The configuration method can automatically match the logical relationship between condition groups in the condition setting of the target order to the target order, without requiring the user to have strong logical ability to complete the order rule configuration, thereby greatly improving the configuration efficiency of the order rules and the accuracy of the configuration of the order rules, thereby reducing the risk of misjudgment of the order due to incorrect rule configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is the first flow chart of the method for configuring order rules according to Embodiment 1 of the present invention.
[0039] Figure 2 This is a second flow chart of the method for configuring order rules according to Embodiment 1 of the present invention.
[0040] Figure 3 A schematic diagram of the first interactive interface for configuring order rules according to Example 1 of the present invention.
[0041] Figure 4 This is a module diagram of the order rule configuration system of Example 2 of the present invention.
[0042] Figure 5 A schematic diagram of the second interactive interface for configuring order rules of Example 3 of the present invention.
[0043] Figure 6 A schematic diagram of the third interactive interface for configuring order rules of Example 3 of the present invention.
[0044] Figure 7 A schematic diagram of the fourth interactive interface for configuring order rules of Example 3 of the present invention.
[0045] Figure 8 This is a schematic diagram of the structure of an electronic device according to Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0046] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0047] Example 1
[0048] like Figure 1 As shown, this embodiment discloses a method for configuring order rules, and the configuration method includes:
[0049] Step S101, obtaining data of a target order; the data includes order rules of the target order;
[0050] Step S102: Analyze the data of the target order to obtain the logical relationship in the condition setting of the target order; the logical relationship includes the logical relationship between condition groups and the logical relationship between adjacent conditions in a condition group;
[0051] Specifically, the logical relationship between condition groups and the logical relationship between adjacent conditions within a condition group include the logical relationship of "or" and "and".
[0052] Step S103, receiving a setting instruction of a condition group in the condition setting of the target order;
[0053] Specifically, the user can enter the interactive interface, such as the order control page, click [Add Rule] to trigger the rule configuration page, and set the condition in the [Condition Setting] module. When the user enters the setting instruction in the [Condition Setting] module, the setting instruction of the condition group in the condition setting of the target order is received. The setting instruction includes the selection of the condition group. The user can set the condition group according to the needs of the order itself.
[0054] Step S104: Match the logical relationship between the condition groups according to the setting instructions of the condition groups.
[0055] Specifically, the logical relationship between the condition groups is matched according to the setting instructions of the condition groups and the logical relationship in the condition settings of the target order. Figure 5As shown, according to the data of the target order, it is known that the logical relationship between condition group 1 and condition group 2 is an "or" logical relationship, and the logical relationship between condition group 2 and condition group 3 is an "or" logical relationship. When the user adds condition group 1 and condition group 2, the logical relationship between condition group 1 and condition group 2 is automatically matched to be an "or" logical relationship. When the user adds condition group 3, the logical relationship between condition group 2 and condition group 3 is automatically matched to be an "or" logical relationship.
[0056] like Figure 2 As shown, in an practicable manner, after step S104, the configuration method includes:
[0057] Step S105, receiving a setting instruction for adjacent conditions in a condition group in the condition setting of the target order;
[0058] Step S106: matching the logical relationship between adjacent conditions in the condition group according to the setting instruction of the adjacent conditions.
[0059] Specifically, the logical relationship between the condition groups is matched according to the setting instructions of the condition groups and the logical relationship in the condition settings of the target order. Figure 5 As shown, according to the data of the target order, it is known that the logical relationships within the condition group are all "and" logical relationships. Therefore, when the user adds a condition within the group, such as condition 1 "departure place" and condition 2 "return time" in condition group 1, the logical relationship between condition 1 and condition 2 is automatically matched to be an "and" logical relationship.
[0060] This solution can automatically match the logical relationship between condition groups according to the setting instructions of the condition groups, without requiring users to have strong logical ability to complete the order rule configuration, thereby greatly improving the configuration efficiency and accuracy of the order rules, and thus reducing the risk of misjudgment of orders due to incorrect rule configuration.
[0061] In an practicable manner, the configuration method further includes:
[0062] The order rules of the target order are displayed in the first area of the interactive interface.
[0063] Specifically, Figure 3 As shown, the order rule of the target order "the relationship between condition groups is 'or', and the relationship between conditions within a group is 'and'" is displayed in the area of the interactive interface to improve visualization, so that users can know the order rules in advance before configuring the conditions, which is beneficial for users to check the accuracy of the condition configuration when configuring the conditions, thereby improving the accuracy of the configuration of the order rules.
[0064] In an practicable manner, the configuration method further includes:
[0065] The configuration method further includes:
[0066] Displaying the logical relationship between the condition groups in the second area of the interactive interface;
[0067] And / or, the logical relationship between adjacent conditions in the condition group is displayed in the third area of the interactive interface.
[0068] Specifically, Figure 3 As shown, the logical relationship between groups is displayed in the interactive interface through a real-time linked "relationship chain" on the left side of the condition group area as an "or" relationship. Similarly, the logical relationship between adjacent conditions in a condition group can also be displayed in the interactive interface.
[0069] This solution displays the logical relationship between condition groups and the logical relationship between adjacent conditions within a condition group in the condition group area or the left side of the adjacent condition area within the condition group in the interactive interface in a real-time linked "relationship chain", greatly improving the visualization level, allowing users to clearly see the logical relationship between condition groups and the logical relationship between adjacent conditions within a condition group, thereby reducing the user's operation threshold and effort, improving the configuration efficiency of order rules, and thereby reducing the risk of misjudgment of orders due to incorrect configuration of order rules.
[0070] Example 2
[0071] like Figure 4 As shown, this embodiment discloses a configuration system for order rules, and the configuration system includes:
[0072] Acquisition module 1, acquiring data of a target order; the data includes order rules of the target order;
[0073] Analysis module 2, used for analyzing the data of the target order to obtain the logical relationship in the condition setting of the target order; the logical relationship includes the logical relationship between the condition groups and the logical relationship between adjacent conditions in the condition group;
[0074] Specifically, the logical relationship between condition groups and the logical relationship between adjacent conditions within a condition group include the logical relationship of "or" and "and".
[0075] A first receiving module 3, used for receiving a setting instruction of a condition group in the condition setting of the target order;
[0076] Specifically, the user can enter the interactive interface, such as the order control page, click [Add Rule] to trigger the rule configuration page, and set the condition in the [Condition Setting] module. When the user enters the setting instruction in the [Condition Setting] module, the setting instruction of the condition group in the condition setting of the target order is received. The setting instruction includes the selection of the condition group. The user can set the condition group according to the needs of the order itself.
[0077] The first matching module 4 is used to match the logical relationship between the condition groups according to the setting instructions of the condition groups.
[0078] Specifically, the logical relationship between the condition groups is matched according to the setting instructions of the condition groups and the logical relationship in the condition settings of the target order. Figure 5 As shown, according to the data of the target order, it is known that the logical relationship between condition group 1 and condition group 2 is an "or" logical relationship, and the logical relationship between condition group 2 and condition group 3 is an "or" logical relationship. When the user adds condition group 1 and condition group 2, the logical relationship between condition group 1 and condition group 2 is automatically matched to be an "or" logical relationship. When the user adds condition group 3, the logical relationship between condition group 2 and condition group 3 is automatically matched to be an "or" logical relationship.
[0079] In an practicable manner, the configuration system further includes:
[0080] A second receiving module 5, used to receive setting instructions for adjacent conditions in a condition group in the condition setting of the target order;
[0081] The second matching module 6 is used to match the logical relationship between adjacent conditions in the condition group according to the setting instruction of the adjacent conditions.
[0082] Specifically, the logical relationship between the condition groups is matched according to the setting instructions of the condition groups and the logical relationship in the condition settings of the target order. Figure 5 As shown, according to the data of the target order, it is known that the logical relationships within the condition group are all "and" logical relationships. Therefore, when the user adds a condition within the group, such as condition 1 "departure place" and condition 2 "return time" in condition group 1, the logical relationship between condition 1 and condition 2 is automatically matched to be an "and" logical relationship.
[0083] This solution can automatically match the logical relationship between condition groups according to the setting instructions of the condition groups, without requiring users to have strong logical ability to complete the order rule configuration, thereby greatly improving the configuration efficiency and accuracy of the order rules, and thus reducing the risk of misjudgment of orders due to incorrect rule configuration.
[0084] In an practicable manner, the configuration system further includes:
[0085] The first display module 7 displays the order rules of the target order in the first area of the interactive interface.
[0086] Specifically, Figure 6 As shown, the order rule of the target order "the relationship between condition groups is 'or', and the relationship between conditions within a group is 'and'" is displayed in the area of the interactive interface to improve visualization, so that users can know the order rules in advance before configuring the conditions, which is beneficial for users to check the accuracy of the condition configuration when configuring the conditions, thereby improving the accuracy of the configuration of the order rules.
[0087] In an practicable manner, the configuration system further includes:
[0088] A second display module 8, used to display the logical relationship between the condition groups in a second area of the interactive interface;
[0089] And / or, a third display module 9 is used to display the logical relationship between adjacent conditions in the condition group in a third area of the interactive interface.
[0090] Specifically, Figure 7 As shown, the logical relationship between groups is displayed in the interactive interface through a real-time linked "relationship chain" on the left side of the condition group area as an "or" relationship. Similarly, the logical relationship between adjacent conditions in a condition group can also be displayed in the interactive interface.
[0091] This solution displays the logical relationship between condition groups and the logical relationship between adjacent conditions within a condition group in the condition group area or the left side of the adjacent condition area within the condition group in the interactive interface in a real-time linked "relationship chain", greatly improving the visualization level, allowing users to clearly see the logical relationship between condition groups and the logical relationship between adjacent conditions within a condition group, thereby reducing the user's operation threshold and effort, improving the configuration efficiency of order rules, and thereby reducing the risk of misjudgment of orders due to incorrect configuration of order rules.
[0092] Example 3
[0093] This embodiment discloses an operation process of a configuration system for order rules, and the operation process steps are as follows:
[0094] Step 1: The user enters the order management page and clicks [Add Rule] to trigger the rule configuration page;
[0095] Step 1: If Figure 5 As shown, a new rule page is added to display basic information and condition setting modules;
[0096] Step 3: If Figure 6As shown, the user sets the preset conditions in condition group 1;
[0097] Step 4: If Figure 7 As shown in the figure, when a user adds a condition within a group, a new condition containing three elements is added. The added condition within the group can be in a default "and" relationship with the existing conditions within the group; and the existing conditions / condition groups outside the group can be communicated with the established "or" relationship through the "relationship chain" on the left side in real-time linkage;
[0098] Step 5: If Figure 3 As shown, when a user adds a condition group, a new condition group containing a preset condition is added, and the existing conditions and condition groups are communicated with the established logical relationship through the "relationship chain" on the left side in real time linkage;
[0099] Step 5: Click the [Submit] button to feed the rule back to the backend and complete the configuration of this rule.
[0100] Example 4
[0101] Figure 8 This is a schematic diagram of the structure of an electronic device provided in Example 5 of the present invention. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the method for configuring order rules provided in Example 1 when executing the program. Figure 8 The electronic device 50 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.
[0102] like Figure 8 As shown, the electronic device 50 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 50 may include, but are not limited to: at least one processor 51, at least one memory 52, and a bus 53 connecting different system components (including the memory 52 and the processor 51).
[0103] The bus 53 includes a data bus, an address bus, and a control bus.
[0104] The memory 52 may include a volatile memory, such as a random access memory (RAM) 521 and / or a cache memory 522 , and may further include a read-only memory (ROM) 523 .
[0105] The memory 52 may also include a program / utility 525 having a set (at least one) of program modules 524, such program modules 524 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.
[0106] The processor 51 executes various functional applications and data processing by running the computer program stored in 52, such as the configuration method of the order rules provided in Example 1 of the present invention.
[0107] The electronic device 50 may also communicate with one or more external devices 54 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 55. Furthermore, the model-generated device 50 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 56. As shown, the network adapter 56 communicates with other modules of the model-generated device 50 via a bus 53. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the model-generated device 50, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (RAID) systems, tape drives, and data backup storage systems, etc.
[0108] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0109] Example 5
[0110] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the configuration method of the order rules provided in Embodiment 1 is implemented.
[0111] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0112] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the configuration method of the order rules provided in Example 1.
[0113] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.
[0114] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A method for configuring order rules, characterized in that: The configuration method comprises: Acquire data of a target order; the data includes order rules of the target order; Analyze the data of the target order to obtain the logical relationship in the condition setting of the target order; the logical relationship includes the logical relationship between the condition groups and the logical relationship between adjacent conditions in the condition group; the condition groups are in an "or" relationship, and the conditions in the group are in an "and" relationship; receiving a setting instruction of a condition group in a condition setting of the target order; According to the setting instructions of the condition groups, the logical relationships between the condition groups are matched.
2. The method for configuring order rules according to claim 1, characterized in that: After the step of matching the logical relationship between the condition groups according to the setting instructions of the condition groups, the configuration method further includes: receiving a setting instruction for adjacent conditions in a condition group in the condition setting of the target order; According to the setting instruction of the adjacent conditions, the logical relationship between the adjacent conditions in the condition group is matched.
3. The method for configuring order rules according to claim 1, characterized in that: The configuration method further includes: The order rules of the target order are displayed in the first area of the interactive interface.
4. The method for configuring order rules according to claim 2, characterized in that: The configuration method further includes: Displaying the logical relationship between the condition groups in the second area of the interactive interface; And / or, the logical relationship between adjacent conditions in the condition group is displayed in the third area of the interactive interface.
5. A system for configuring order rules, characterized in that: The configuration system comprises: An acquisition module, for acquiring data of a target order; the data includes order rules of the target order; An analysis module, used for analyzing the data of the target order to obtain the logical relationship in the condition setting of the target order; the logical relationship includes the logical relationship between the condition groups and the logical relationship between the adjacent conditions in the condition group; the condition groups are in an "or" relationship, and the conditions in the group are in an "and" relationship; A first receiving module, configured to receive a setting instruction of a condition group in a condition setting of the target order; The first matching module is used to match the logical relationship between the condition groups according to the setting instructions of the condition groups.
6. The order rule configuration system according to claim 5, characterized in that: The configuration system also includes: A second receiving module, configured to receive setting instructions for adjacent conditions in a condition group in the condition setting of the target order; The second matching module is used to match the logical relationship between adjacent conditions in the condition group according to the setting instruction of the adjacent conditions.
7. The order rule configuration system according to claim 5, characterized in that: The configuration system also includes: The first display module displays the order rules of the target order in the first area of the interactive interface.
8. The order rule configuration system according to claim 5, characterized in that: The configuration system also includes: A second display module, used to display the logical relationship between the condition groups in a second area of the interactive interface; And / or, a third display module, used to display the logical relationship between adjacent conditions in the condition group in a third area of the interactive interface.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for configuring order rules according to any one of claims 1 to 4 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for configuring order rules according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Rule configuration method and device
CN110532536A