Condition parsing method and configuration platform
By analyzing the conditional expression objects in the conditional analysis method and configuration platform, the problem of inconsistent conditional analysis is solved, and unified analysis of conditions in different usage scenarios is realized to adapt to the diversified needs of the real estate transaction system.
Patent Information
- Application Number
- CN201911177010.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-26
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2039-11-26
AI Technical Summary
In the prior art, conditional analysis cannot adapt to diversified real estate transaction systems, resulting in inconsistent analysis of conditions in the configuration platform and trading system, and cannot be uniformly analyzed in different usage scenarios.
Provide a conditional analysis method and configuration platform. By receiving request information, obtaining conditional expression objects from the database according to the conditional display premise, and parsing the components in different usage scenarios according to preset rules, filtering and encapsulating returning the appropriate presentation form.
It realizes comprehensive analysis of conditions in different usage scenarios, adapts to the needs of complex business scenarios, and ensures that conditions are consistently analyzed in the configuration platform and trading system.
Smart Images

Figure CN112947906B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a condition parsing method and a configuration platform. Background Art
[0002] For many business processing systems, such as real estate transaction systems, hospital registration systems, automatic reply systems of shopping websites, etc., the processing links and process flows involved are intricate. For the specific data information to be collected in each processing link and the flow information of the process, it is necessary to control through conditions, and define the specific data information to be collected in each processing link, the flow information of the process, and the front-end display style as the premise for conditional display. For example: For the premise of conditional display: taking the premise of conditional display in the real estate transaction system "display the spouse information of the seller in the real estate transfer link" as an example, the condition corresponding to this premise of conditional display, that is, in the housing sales contract, the marital status of the seller is married. Similarly, for the premise of conditional display in the hospital registration system "display the historical connected doctor information of the patient", the condition corresponding to this premise of conditional display, that is, the patient has already established a file in this hospital before. For each front-end display style, it is also necessary to control through conditions. For example, for the condition of "display the work unit information of the buyer", that is, the buyer applies for a bank loan. Each condition corresponding to the premise of conditional display needs to be configured through a configuration platform. It can be understood that each premise of conditional display corresponds to a condition.
[0003] In the prior art, the design and parsing of conditions generally only require a fixed format. However, in real estate transactions, the conditions corresponding to the same premise of conditional display by the configuration personnel and the transaction system are also inconsistent. For example, for the premise of conditional display "display the spouse information of the seller in the real estate transfer link", for the editing scenario of the configuration personnel, the corresponding condition is "housing sales contract_seller marital status == married", while for the display scenario, the corresponding condition only needs to return {display content: housing sales contract_seller marital status == married}.
[0004] It can be seen that the biggest problem encountered in configuring conditions lies in: how to perform condition parsing to ensure that the conditions can be visualized for the configuration personnel on the configuration platform, and can also be recognized by the code in the real estate transaction system and parsed and run normally. Since the parsing formats of the conditions involved in real estate transactions are different in each usage scenario, how to achieve diversified parsing of conditions has become a major technical problem. Summary of the Invention
[0005] Embodiments of the present invention provide a condition parsing method and a configuration platform to solve the defect that conditions cannot be diversely parsed in the prior art, realize comprehensive parsing of conditions, and return corresponding parsing formats according to usage scenarios, so as to realize unified parsing design of conditions in multiple scenarios.
[0006] An embodiment of the present invention provides a condition parsing method, including:
[0007] Receiving request information sent by a condition requester through a preset interface, where the request information carries a condition display premise and interface information of the preset interface;
[0008] Obtaining a condition to be parsed from a database according to the condition display premise, and parsing the condition according to a first preset rule to obtain constituent elements of the condition in different usage scenarios;
[0009] Learning usage scenario information of the condition requester according to the interface information and using it as a reference scenario, screening and encapsulating constituent elements corresponding to the reference scenario, and returning the encapsulated data to the condition requester.
[0010] Further, before obtaining the condition to be parsed from the database, it further includes:
[0011] According to a second preset rule, constructing a condition expression in the database according to the condition display premise, and assigning values to each constituent element of the condition expression to obtain a condition expression object;
[0012] The obtaining the condition to be parsed from the database according to the condition display premise is specifically: obtaining the condition expression object corresponding to the condition display premise from the database according to the condition display premise in the request information as the condition to be parsed;
[0013] Wherein, the constituent elements in the condition expression include at least one of a condition type, a condition element, a condition operator, a condition value type, and a specific condition value.
[0014] Further, the constructing the condition expression in the database according to the condition display premise is specifically:
[0015] Determining a condition element and a condition type in the condition expression according to the condition display premise;
[0016] Determining constituent elements for completely describing the condition according to the condition type, and combining the constituent elements into the condition expression according to a preset rule.
[0017] Further, the preset interface at least includes one of a display interface of a configuration platform, an editing interface of the configuration platform, and a parsing interface of a trading system; the usage scenario includes at least one of a display scenario of the configuration platform corresponding to the display interface, an editing scenario of the configuration platform corresponding to the editing interface, and a parsing scenario of the trading system corresponding to the parsing interface.
[0018] Further, the constituent elements of the condition in different usage scenarios are specifically as follows:
[0019] The constituent elements of the condition in the display scenario of the configuration platform include the visual description information of the condition;
[0020] The constituent elements of the condition in the editing scenario of the configuration platform include the condition expression object of the condition;
[0021] The constituent elements of the condition in the parsing scenario of the trading system include the code expression of the condition created according to a preset rule.
[0022] Further, the visual description information of the condition consists of at least one of a condition type, a condition element, a condition operator, and a specific value of the condition.
[0023] An embodiment of the present invention provides a configuration platform, including:
[0024] A receiving module, configured to receive request information sent by a condition requester through a preset interface, where the request information carries a condition display premise and interface information of the preset interface;
[0025] A condition parsing module, configured to obtain a condition to be parsed from a database according to the condition display premise, and parse the condition according to a first preset rule to obtain constituent elements of the condition in different usage scenarios;
[0026] An encapsulation module, configured to obtain usage scenario information of the condition requester according to the interface information and use it as a reference scenario, screen and encapsulate constituent elements corresponding to the reference scenario, and return the encapsulated data to the condition requester.
[0027] Further, before obtaining the condition to be parsed from the database, it further includes:
[0028] According to a second preset rule, construct a condition expression in the database according to the condition display premise, assign values to each constituent element of the condition expression to obtain a condition expression object;
[0029] The step of obtaining the condition to be parsed from the database according to the condition display premise is specifically: obtaining the condition expression object corresponding to the condition display premise from the database according to the condition display premise in the request information as the condition to be parsed;
[0030] Wherein, the constituent elements in the condition expression include at least one of a condition type, a condition element, a condition operator, a condition value type, and a specific value of the condition
[0031] An embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the above-mentioned condition parsing method are implemented.
[0032] An embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned condition parsing method are implemented.
[0033] The condition parsing method and configuration platform provided by the embodiments of the present invention receive request information sent by a condition requester, obtain the conditions to be parsed from a database, parse the conditions, obtain the constituent elements of the conditions in different usage scenarios, implement a comprehensive parsing of the conditions, and return a corresponding presentation form according to the usage scenario of the condition requester, thereby being suitable for complex business scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0035] Figure 1 It is a schematic flowchart of the condition parsing method provided by the embodiment of the present invention;
[0036] Figure 2 It is a schematic structural diagram of the configuration platform provided by the embodiment of the present invention;
[0037] Figure 3 It is a schematic physical structure diagram of the electronic device provided by the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0038] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.
[0039] The present invention provides a condition parsing method. For ease of understanding, relevant concepts that may be involved in this embodiment and subsequent embodiments are explained as follows:
[0040] Real estate transaction system: It refers to the system after the signing of the housing sales contract, that is, after the housing sales contract is signed, a professional processing system for the process of how to transfer the real estate from the seller to the buyer step by step. In the transfer process, it involves departments such as banks and government real estate-related departments (such as the Real Estate Bureau, Local Tax Bureau, etc.), and a series of operations such as housing verification, housing bank mortgage, and property transfer.
[0041] Configuration platform: In the electronic real estate transaction, due to the possible differences in transaction processes in different regions, a configuration platform is usually created. The configuration platform stores the configuration data generated by the configurator according to the real estate transaction characteristics in different regions. The configuration platform belongs to a visual system of a set of operable real estate transaction process-related rules designed for the normal operation of the transaction system. For example, it mainly realizes the configuration function of some transaction system rules.
[0042] Front end: It refers to the web front end of a system. In the embodiments of the present invention, it specifically refers to the web front end of the configuration platform.
[0043] Generally, the expression forms of conditions in various usage scenarios are the same. Therefore, whether it is the real estate transaction system or the front end of the configuration platform, when sending the condition display premise to the configuration platform (back end), the configuration platform will feedback a single condition, and then the real estate transaction system or the front end of the configuration platform will re-edit the condition according to its own usage scenario. This method is very troublesome and cannot meet the requirements of electronic real estate transactions.
[0044] To solve the above problems, Figure 1 It is a schematic flowchart of the condition parsing method provided by the embodiments of the present invention. The execution subject of this method is the configuration platform. See Figure 1 and the specific method is as follows:
[0045] S101. Receive the request information sent by the condition requester through a preset interface. The request information carries the condition display premise and the interface information of the preset interface.
[0046] The condition requester in the embodiments of the present invention can be a transaction system or a front end. The request information in the embodiments of the present invention can carry the condition display premise corresponding to the condition, so that the configuration platform can obtain the corresponding condition from the database according to the condition display premise. It can be understood that the technical personnel pre-store according to the corresponding relationship between the condition display premise and the condition.
[0047] S102. Obtain the condition to be parsed from the database according to the condition display premise, and parse the condition according to the first preset rule to obtain the constituent elements of the condition in different usage scenarios. In the process of parsing the condition in the embodiments of the present invention, all the constituent elements of the condition in different usage scenarios are parsed out, so as to achieve comprehensive parsing.
[0048] For example, the condition: the marital status of the seller in the housing sales contract is married. If the assumed usage scenarios are the front-end display scenario (Scenario 1) and the parsing scenario of the trading system (Scenario 2) respectively, then the constituent elements of this condition in Scenario 1 are {display content: housing sales contract_seller marital status == married}; the constituent elements of this condition in Scenario 2 are {getContractVar(`seller.Marrige`, true) == 2}. It should be noted that in the embodiments of the present invention, different parsing formats for each condition are pre-specified for different usage scenarios.
[0049] S103. Obtain the usage scenario information of the condition requester according to the interface information, and use it as a reference scenario. Screen and encapsulate the constituent elements corresponding to the reference scenario, and return the encapsulated data to the condition requester.
[0050] It should be noted that the request information in the embodiments of the present invention also carries interface information. The condition requester in the embodiments of the present invention sends request information through an interface, and each interface corresponds to a usage scenario. By adding interface information to the request information, the configuration platform can know the usage scenario of the condition requester after receiving the request information, and screen out the corresponding constituent elements for encapsulation according to the usage scenario of the condition requester, so as to achieve a customized selection effect.
[0051] The condition parsing method provided by the embodiments of the present invention receives the request information sent by the condition requester, obtains the condition to be parsed from the database, parses the condition, obtains the constituent elements of the condition in different usage scenarios, realizes the comprehensive parsing of the condition, and returns the corresponding display form according to the usage scenario of the condition requester, so as to be suitable for complex business scenarios.
[0052] Based on the above embodiments, as an optional embodiment, before obtaining the condition to be parsed from the database, it further includes: constructing a condition expression in the database according to the second preset rule based on the condition display premise, and assigning values to each constituent element of the condition expression to obtain a condition expression object.
[0053] It should be noted that in the embodiments of the present invention, the conditions are stored in the form of conditional expression objects. The conditional expression object is generated after assigning values to the constituent elements in the conditional expression. The conditional expression for each type of condition is created according to a preset rule. For example, for a condition of data collection type, its conditional expression is composed of the data collection type, the specific link of data collection, the specific content under the specific link, the conditional operator, the conditional value type, and the specific value of the condition, and can be expressed as: {data collection type, key of the specific link of data collection, key of the specific content under the specific link of data collection, conditional operator (> or ==), conditional value type, specific value of the condition}. In a specific condition of the data collection type: the marital status of the seller in the housing sales contract is married. The conditional expression of this condition is:
[0054]
[0055] The "condition type" and "condition elements" in the above conditional expression both belong to the constituent elements in the conditional expression. By assigning values to these constituent elements, the conditional expression object is obtained:
[0056]
[0057] From the examples of the above conditions, it can be seen that the condition type shows the origin of the condition elements in the real estate transaction. In addition to the equal sign, the conditional operator can also be the greater than sign ">" or the less than sign "<", etc. In the embodiments of the present invention, the conditional value type can include two types, including the dictionary value type dictType and the fixed value fixed. For example, the marital status belongs to the dictionary value type dictType, and its value range is {married, unmarried, divorced, widowed}. At this time, the specific value of the condition can only be selected from these 4 marital status ranges; while the age belongs to the fixed value fixed, and its value range is the fixed value input manually.
[0058] According to the condition display premise described above, obtaining the condition to be parsed from the database is specifically: the configuration platform obtains the conditional expression object corresponding to the condition display premise from the database according to the condition display premise in the request information as the condition to be parsed.
[0059] In the embodiments of the present invention, by associating the condition display premise with the conditional expression in the database, the conditional expression is stored so that when the condition display premise written in the request information sent by the condition requester, the configuration platform can search for the corresponding conditional expression in the database.
[0060] Based on the above embodiments, as an optional embodiment, constructing a conditional expression in the database according to the condition display premise is specifically:
[0061] Determine the condition elements and condition types in the condition expression according to the premise of condition display;
[0062] Determine the constituent elements that completely describe the condition according to the condition type, and combine the constituent elements into the condition expression according to the preset rules.
[0063] Specifically, taking the premise of condition display: "Display the information of the seller's spouse in the property transfer link" as an example, the condition corresponding to this premise of condition display is "The seller's marital status is married". From the condition and the premise of condition display, it can be seen that when the condition that the seller's marital status is married is established, the information of the seller's spouse is displayed in the property transfer link. Through this premise of condition display, the condition element in the condition expression can be determined as "the seller's marital status", and the information of "the seller's marital status" appears in the "House Sale Contract" in the property transaction process, that is, the condition type is determined as "House Sale Contract". According to the condition type "House Sale Contract", determine the constituent elements that completely describe this condition, which also include: condition operator, condition value type, and specific condition value. Combine the constituent elements of the condition according to the preset rules to obtain the condition expression.
[0064] Based on the above embodiments, as an alternative embodiment, the interface at least includes: a display interface of the configuration platform, an editing interface of the configuration platform, and a parsing interface of the trading system; the usage scenarios include at least one of the display scenario of the configuration platform corresponding to the display interface, the editing scenario of the configuration platform corresponding to the editing interface, and the parsing scenario of the trading system corresponding to the parsing interface.
[0065] It should be noted that the front end of the configuration platform or the trading system interacts with the back end of the configuration platform (that is, the execution subject of the embodiments of the present invention) in the form of an interface. The so-called editing interface is for the front end of the configuration platform to be used for pure display, while the editing interface is for the front end of the configuration platform to edit files. The parsing interface is used by the trading system code to execute.
[0066] Based on the above embodiments, as an alternative embodiment, the constituent elements of the condition in different usage scenarios are specifically:
[0067] The constituent elements of the condition in the display scenario of the configuration platform include the visual description information of the condition. The visual description information refers to the partial constituent elements selected by the configurator from the condition expression object according to the visual requirements. The specific constituent elements selected are subject to the actual needs of the configurator, as long as they can understand them. In an alternative embodiment, the visual description information of the condition consists of at least one of the condition type, condition element, condition operator, and specific condition value.
[0068] The constituent elements of the condition in the editing scenario of the configuration platform include the condition expression object of the condition.
[0069] The constituent elements of the condition in the parsing scenario of the trading system include the code expression of the condition created according to the preset rules. When the configuration platform serves the trading system, it will pre-agree on the specific format of the condition with the trading system and give the format rules for direct code parsing. For example, for the condition of the sales contract type, it is parsed into the format of contract.XXX == 1, and for the condition of the trading order type, it is parsed into the format of business.XXX == 2.
[0070] The following uses an embodiment to illustrate the flow diagram of the condition parsing method of the present invention. In this embodiment, the premise for condition display is "display the spouse information of the seller in the real estate transfer link".
[0071] Step 1: Generate a condition expression object in the database according to the premise of condition display:
[0072]
[0073] Step 2: Receive the request information sent by the condition requester. The request information records that the premise for condition display is "display the spouse information of the seller in the real estate transfer link", and the interface is: the editing interface of the configuration platform.
[0074] Step 3: Extract the corresponding condition expression object from the database according to the premise of condition display, parse the condition, and obtain the constituent elements of the condition in different usage scenarios:
[0075]
[0076] Step 4: Screen and encapsulate the constituent elements corresponding to the reference scenario. The encapsulated data is:
[0077]
[0078]
[0079] Step 5: Return the encapsulated data to the condition requester.
[0080] It can be understood that if the interface used by the condition requester is: the display interface of the configuration platform, the returned information is: {display content: housing sales contract_seller marital status == married}; if the interface used by the condition requester is: the parsing interface, the returned information is: {getContractVar(`seller.Marrige`, true) == 2}.
[0081] Figure 2The structural schematic diagram of the configuration platform provided by the embodiment of the present invention is as follows Figure 2 As shown, the configuration platform includes: a receiving module 201, a condition parsing module 202, and a packaging module 203; where
[0082] The parsing module 201 is configured to receive request information sent by a condition requester through a preset interface, and the request information carries a condition display premise and interface information of the preset interface.
[0083] In the embodiment of the present invention, the condition requester can be a trading system or a front end. The request information in the embodiment of the present invention can carry a condition display premise corresponding to the condition, so that the configuration platform can obtain the corresponding condition from the database according to the condition display premise. It can be understood that technicians store the corresponding relationship between the condition display premise and the condition in advance.
[0084] The condition parsing module 202 obtains the condition to be parsed from the database according to the condition display premise, parses the condition according to a first preset rule, and obtains the constituent elements of the condition in different usage scenarios. In the process of parsing the condition in the embodiment of the present invention, the constituent elements of the condition in different usage scenarios are all parsed out, so as to achieve comprehensive parsing.
[0085] For example, the condition: the marital status of the seller of the housing sales contract is married. If the assumed usage scenarios are the display scenario (scenario 1) of the front end and the parsing scenario (scenario 2) of the trading system respectively, then the constituent elements of this condition in scenario 1 are {display content: housing sales contract_seller marital status == married}; the constituent elements of this condition in scenario 2 are {getContractVar(`seller.Marrige`,true) == 2}. It should be noted that in the embodiment of the present invention, different parsing formats for each condition are specified in different usage scenarios.
[0086] The packaging module 203 is configured to obtain the usage scenario information of the condition requester according to the interface information, use it as a reference scenario, screen and package the constituent elements corresponding to the reference scenario, and return the packaged data to the condition requester.
[0087] It should be noted that the request information in the embodiment of the present invention will also carry interface information. The condition requester in the embodiment of the present invention sends request information through the interface, and each interface corresponds to a usage scenario. By adding interface information to the request information, the configuration platform can know the usage scenario of the condition requester after receiving the request information, and screen out the corresponding constituent elements for packaging according to the usage scenario of the condition requester, so as to achieve a customized selection effect.
[0088] The configuration platform provided by the embodiments of the present invention specifically executes the processes of the above-mentioned embodiments of the condition parsing method. For specific details, please refer to the content of the above-mentioned embodiments of the condition parsing method, which will not be elaborated here. The configuration platform provided by the embodiments of the present invention receives the request information sent by the condition requester, obtains the condition to be parsed from the database, parses the condition, obtains the constituent elements of the condition in different usage scenarios, realizes the comprehensive parsing of the condition, and returns the corresponding presentation form according to the usage scenario of the condition requester, so as to be suitable for the complex business scenarios of housing electronic transactions.
[0089] Figure 3 It is a schematic physical structure diagram of the electronic device provided by the embodiments of the present invention. As Figure 3 shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330, and a communication bus 340. Among them, the processor 310, the communication interface 320, and the memory 330 complete mutual communication through the communication bus 340. The processor 310 can call the computer program stored on the memory 330 and executable on the processor 310 to execute the significance detection method provided by the above-mentioned embodiments, for example, including: receiving the request information sent by the condition requester through a preset interface, where the request information carries the condition display premise and the interface information of the preset interface; obtaining the condition to be parsed from the database according to the condition display premise; parsing the condition according to the first preset rule to obtain the constituent elements of the condition in different usage scenarios; obtaining the usage scenario information of the condition requester according to the interface information and using it as a reference scenario, screening and encapsulating the constituent elements corresponding to the reference scenario, and returning the encapsulated data to the condition requester.
[0090] In addition, when the logical instructions in the above-mentioned memory 330 are implemented in the form of software functional units and sold or used as an independent product, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.
[0091] An embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is configured to execute the saliency detection method provided in each of the above embodiments. For example, it includes: receiving request information sent by a conditional requester through a preset interface, where the request information carries a condition display premise and interface information of the preset interface; obtaining a condition to be parsed from a database according to the condition display premise; parsing the condition according to a first preset rule to obtain constituent elements of the condition in different usage scenarios; obtaining usage scenario information of the conditional requester according to the interface information and using it as a reference scenario, screening and encapsulating the constituent elements corresponding to the reference scenario, and returning the encapsulated data to the conditional requester.
[0092] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
[0093] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disc, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.
Claims
1. A conditional parsing method, characterized in that, including: Receiving request information sent by a conditional requester through a preset interface, where the request information carries a condition display prerequisite and interface information of the preset interface; Obtaining a condition to be parsed from a database according to the condition display prerequisite, and parsing the condition according to a first preset rule to obtain constituent elements of the condition in different usage scenarios; Learning usage scenario information of the conditional requester according to the interface information and using it as a reference scenario, screening and encapsulating constituent elements corresponding to the reference scenario, and returning the encapsulated data to the conditional requester; wherein, the interface information corresponds one-to-one with the usage scenario information; Before obtaining the condition to be parsed from the database, it further includes: According to a second preset rule, constructing a condition expression in the database according to the condition display prerequisite, and assigning values to each constituent element of the condition expression to obtain a condition expression object; The obtaining the condition to be parsed from the database according to the condition display prerequisite specifically means: obtaining the condition expression object corresponding to the condition display prerequisite from the database according to the condition display prerequisite in the request information as the condition to be parsed; Wherein, the constituent elements in the condition expression include at least one of a condition type, a condition element, a condition operator, a condition value type, and a specific condition value.
2. The method according to claim 1, characterized in that, The constructing a condition expression in the database according to the condition display prerequisite specifically means: Determining a condition element and a condition type in the condition expression according to the condition display prerequisite; Determining constituent elements for completely describing the condition according to the condition type, and combining the constituent elements into the condition expression according to a preset rule.
3. The method according to claim 1, wherein The preset interface includes at least one of a display interface of a configuration platform, an editing interface of the configuration platform, and a parsing interface of a trading system; the usage scenario includes at least one of a display scenario of the configuration platform corresponding to the display interface, an editing scenario of the configuration platform corresponding to the editing interface, and a parsing scenario of the trading system corresponding to the parsing interface.
4. The method according to claim 3, characterized in that, The constituent elements of the condition in different usage scenarios specifically are: The constituent elements of the condition in the display scenario of the configuration platform include visual description information of the condition; The constituent elements of the condition in the editing scenario of the configuration platform include the condition expression object of the condition; The constituent elements of the condition in the parsing scenario of the trading system include a code expression of the condition created according to a preset rule.
5. The method according to claim 4, characterized in that The visual description information of the condition consists of at least one of a condition type, a condition element, a condition operator, and a specific condition value.
6. A configuration platform, characterized in that, including: A receiving module, configured to receive request information sent by a conditional requester through a preset interface, where the request information carries a condition display prerequisite and interface information of the preset interface; A condition parsing module, configured to obtain a condition to be parsed from a database according to the condition display prerequisite, and parse the condition according to a first preset rule to obtain constituent elements of the condition in different usage scenarios; The encapsulation module is used to obtain the usage scenario information of the condition requester according to the interface information, and use it as a reference scenario, screen and encapsulate the constituent elements corresponding to the reference scenario, and return the encapsulated data to the condition requester; wherein, the interface information and the usage scenario information are in one-to-one correspondence; Before obtaining the condition to be parsed from the database, it further includes: According to the second preset rule, construct a condition expression in the database according to the condition display premise, and assign values to each constituent element of the condition expression to obtain a condition expression object; Obtaining the condition to be parsed from the database according to the condition display premise specifically means: obtaining the condition expression object corresponding to the condition display premise from the database according to the condition display premise in the request information as the condition to be parsed; Among them, the constituent elements in the condition expression include at least one of a condition type, a condition element, a condition operator, a condition value type, and a specific condition value.
7. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the condition parsing method according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the condition parsing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Webpage analysis method and device, storage medium, processor and equipment
CN110020236A