Transaction pricing control method and its device, equipment and medium

By receiving order information, querying pricing rules and calling the pricing engine, it solves the problem in the existing technology that the pricing middle office cannot realize the associated calculation of multiple pricing methods, provides standardized and efficient pricing services, and is suitable for complex e-commerce platform needs.

CN112488770BActive Publication Date: 2024-08-27GUANGZHOU HUADUO NETWORK TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011493885.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2024-08-27
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

It is difficult to realize a standardized pricing center with the ability to correlate multiple pricing methods with existing technology, especially when the combination relationship between multiple preferential methods is complex, and it is impossible to accurately calculate the discounted price.

Method used

By receiving order pricing requests, we obtain platform and store feature information, query pricing rules in the rule database, adapt combination rules according to priority relationships, call the pricing engine to calculate discount data, and realize the calculation of preferential prices.

Benefits of technology

It provides a standardized pricing service middle platform that is compatible with complex pricing rule relationships, improves the standardization capabilities and universal applicability of pricing services, and is suitable for parallel pricing services on massive e-commerce platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112488770B
    Figure CN112488770B
Patent Text Reader

Abstract

The present application discloses a transaction pricing control method and its device, equipment, and medium, the method comprising: receiving an order pricing request, obtaining the platform characteristic information, the store characteristic information belonging to the platform, and the transaction amount; querying and determining multiple pricing rules associated with the platform characteristic information and / or the store characteristic information from a rule database; adapting the preset combination rules according to the relative relationship between the priorities contained in the multiple pricing rules; under the constraints of the combination rules, calling the interface provided by the pricing engine so that it calculates the preferential data corresponding to the transaction amount according to the pricing formula contained in each pricing rule, for responding to the order pricing request. The present application implements a pricing service middle component technical architecture, which is suitable for providing standardized preferential pricing services for e-commerce transactions, and can realize the association calculation between various preferential methods. It has general applicability and is suitable for popularization in the e-commerce field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of Internet technology, and specifically relates to a transaction pricing control method, and its corresponding device, electronic device, and non-volatile storage medium. Background Art

[0002] In the online e-commerce sector, enrolling highly loyal users as members and granting them various benefits can improve user loyalty and repurchase rates, thereby driving GMV conversion. As an access platform, various membership methods and thresholds can be customized based on operational methods. For example, some e-commerce platforms require users to pay a specified amount to become members, or some ride-hailing platforms require users to spend a specified amount or travel a specified number of kilometers as a membership threshold.

[0003] The ultimate goal of users becoming members is to get discounts, but member discounts can evolve into a variety of ways to play, such as member discount prices, member discounts, member points discounts, and other preferential methods. The business model is gradually integrating these preferential business processes into the middle platform, becoming a pricing middle platform with a certain degree of independent pricing service capabilities. The pricing middle platform needs to provide customized services based on the preferential gameplay formulated by tenants of other platforms, and provide a variety of gameplay for tenants to choose from. For example, a tenant platform A connected to the middle platform can set two preferential methods: member discount prices and member discounts. Then, when its consumer users place an order for shopping, the middle platform needs to calculate the discounted price based on the preferential methods configured by the platform tenant. Similarly, if tenant platform B is connected to this middle platform, other preferential methods can be selected for combination, such as member points discounts and member discount prices. As a middle platform, it needs to provide a variety of discount vitality. In addition to supporting the calculation of discounts at the tenant dimension, the middle platform must also support each store user in the platform tenant to configure different discount types and discount methods. For example, store A can choose to enable both points discount and discount price discount methods, while store B can only enable points discount, and store C can only enable discount price. In order to meet such needs, the middle platform needs to allow access platforms and access stores to choose and assemble all the discount methods provided by the middle platform so that they can be independently maintained and operated by access platforms and access stores.

[0004] When the pricing middle platform needs to provide pricing services for multiple product lines, it needs to be relatively standardized and maintain strong scalability. Considering that different store users have their own unique operating methods, for example, merchants who focus on the integration of online and offline will mainly offer discounts, while merchants who pay attention to repurchase rates will set up points for cashback. Therefore, when deploying the pricing platform, it is necessary to be able to provide preferential pricing services that are compatible with both tenants and stores. Currently, there are no products in this field that can meet such needs.

[0005] A further problem is that when there are multiple discount methods, the combination relationship between various discount methods may be different. Sometimes they need to be calculated independently of each other, and sometimes they need to be calculated in association with each other. For example, store A configures shopping members to enjoy discounts and points deductions at the same time. At this time, the method of calculating the discount needs to integrate the two methods and then calculate the discounted price. For example, store B's shopping members can enjoy three discounts at the same time. How to standardize and accurately calculate the discounted price under various different combinations? The implementation of these pricing service capabilities is not seen in the existing technology.

[0006] In summary, how to provide standardized pricing middleware technology with the ability to provide computing services related to multiple pricing methods is an urgent problem to be solved in this field. Summary of the Invention

[0007] In view of the deficiencies in the prior art, the purpose of this application is to provide a transaction pricing control method and its corresponding transaction pricing control device, electronic device, and non-volatile storage medium.

[0008] To meet the purpose of this application, this application adopts the following technical solutions:

[0009] A transaction pricing control method provided to meet one of the purposes of this application includes the following steps:

[0010] Receive order pricing requests and obtain platform feature information, store feature information affiliated with the platform, and transaction amount;

[0011] Querying and determining a plurality of pricing rules associated with the platform characteristic information and / or the store characteristic information from a rule database;

[0012] Adapting the preset combination rules according to the relative relationship between the priorities contained in the multiple pricing rules;

[0013] Under the constraints of the combination rules, the interface provided by the pricing engine is called to calculate the preferential data corresponding to the transaction amount according to the pricing formula contained in each pricing rule, so as to respond to the order pricing request.

[0014] In one embodiment, the step of adapting a preset combination rule according to the relative relationship between the priorities contained in the multiple pricing rules includes:

[0015] Identify the priority representation values ​​contained in multiple pricing rules;

[0016] Compare the priority representation values ​​of each pricing rule to obtain the priority comparison result;

[0017] According to the comparison result, for pricing rules with the same priority, the first combination rule is adapted, and for pricing rules with unequal priorities, the second combination rule is adapted.

[0018] In another embodiment, under the constraints of the combined rule, calling an interface provided by the pricing engine to calculate the preferential data corresponding to the transaction amount according to the pricing formula contained in each pricing rule for responding to the order pricing request includes the following steps:

[0019] When the combination rule is the first combination rule and the pricing engine is called, the pricing engine is caused to pass the transaction amount to the pricing formulas of each pricing rule with the same priority, and calculate the preferential amount corresponding to each pricing rule respectively;

[0020] When the combination rule is the second combination rule and the pricing engine is called, the pricing engine uses the transaction amount to pass to the pricing formula of the pricing rule with a higher priority to calculate the first preferential amount, deducts the first preferential amount from the transaction amount, and then passes to the pricing formula of the pricing rule with the second highest priority to calculate the second preferential amount, and so on;

[0021] The various preferential amounts are aggregated to respond to the order pricing request.

[0022] Some of the extended embodiments include the following pre-steps:

[0023] Receive configuration information of pricing rules of platform users and / or store users, and associate the pricing rules with corresponding platform feature information and / or store rental feature information and store them in the database.

[0024] Some extended embodiments include the following steps:

[0025] Responding to formula editing requests from platform users and / or store users and pushing the pricing formula expression text associated therewith;

[0026] Receiving pricing formula text data returned after editing the expression text;

[0027] The corresponding pricing formula is updated in the rule database using the text data.

[0028] In a preferred embodiment, in the step of querying and determining multiple pricing rules associated with the platform characteristic information and / or store characteristic information from the rule database, one of the pricing rules includes multiple interval thresholds and discount amounts, each interval threshold is set corresponding to a discount amount, and its pricing formula uses the incoming transaction amount to determine the interval threshold to which it belongs and determines the corresponding discount amount.

[0029] In a preferred embodiment, in the step of querying and determining multiple pricing rules associated with the platform characteristic information and / or store characteristic information from the rule database, one of the pricing rules includes a proportional factor representing the discount ratio, and its pricing formula uses the product of the incoming transaction amount and the discount ratio to determine the corresponding discount amount.

[0030] A transaction pricing control device provided for one of the purposes of this application includes:

[0031] The request parsing module is used to receive order pricing requests and obtain the platform feature information, store feature information affiliated with the platform, and transaction amount;

[0032] A rule query module, configured to query and determine a plurality of pricing rules associated with the platform characteristic information and / or store characteristic information from a rule database;

[0033] A combination matching module, configured to match preset combination rules according to the relative relationship between the priorities contained in the plurality of pricing rules;

[0034] The pricing execution module is used to call the interface provided by the pricing engine under the constraints of the combination rules, so that it calculates the preferential data corresponding to the transaction amount according to the pricing formula contained in each pricing rule, and is used to respond to the order pricing request.

[0035] An electronic device provided to meet one of the purposes of the present application includes a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the transaction pricing control method.

[0036] A non-volatile storage medium is provided to meet one of the purposes of the present application, which stores a computer program implemented according to the transaction pricing control method in the form of computer-readable instructions. When the computer program is called by a computer, the steps included in the method are executed.

[0037] Compared with the existing technology, this application has the following advantages:

[0038] First of all, this application provides a standardized technical framework and realizes a standardized pricing service middle platform, which uses platform feature information and store feature information as identity features to manage the pricing rules set for e-commerce platforms and their subordinate store users, and is compatible with various complex situations of pricing rule attribution relationships. When pricing is required based on transaction amount, multiple pricing rules pre-configured by e-commerce platforms and / or store users can be called from the rule database accordingly, and pricing can be performed using a standardized pricing engine. There is no need to specifically distinguish between e-commerce platforms and store users. The computing power is efficiently concentrated, and the overall service capability is greatly improved. It is suitable for providing pricing services for a large number of e-commerce platforms in parallel.

[0039] Secondly, this application identifies and compares the preset priorities in multiple pricing rules, and uses the relative relationship between the priorities to adapt the corresponding combination rules for these pricing rules. Under the constraints of the combination rules, the implementation of the pricing engine can be minimized and its standardization capabilities can be improved. At the same time, the association calculations between different pricing rules are ensured, making it possible to obtain the results of another pricing rule based on the results of one pricing rule in a standardized manner, decoupling the relationship between the e-commerce platform itself and such combination rules, eliminating the need for the e-commerce platform itself to implement relevant combination logic, and improving the universal applicability of the pricing service middle platform.

[0040] In addition, this application opens its pricing service based on a request-response mechanism, which is suitable for accessing various e-commerce platforms. It is conducive to the product promotion of the pricing service middle platform implemented by this application, and helps the industrialization of the pricing service middle platform field. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0042] Figure 1 A schematic diagram of a typical network deployment architecture for implementing the technical solution of this application;

[0043] Figure 2 This is a flowchart of a typical embodiment of the transaction pricing control method of the present application;

[0044] Figure 3 for Figure 2 Schematic diagram of the process formed by the specific steps of step S13;

[0045] Figure 4 for Figure 2 Schematic diagram of the process formed by the specific steps of step S14;

[0046] Figure 5 This is a flow chart of another embodiment of the transaction pricing control method of the present application;

[0047] Figure 6 This is a flowchart diagram of another embodiment of the transaction pricing control method of the present application, which is formed between the steps executed concurrently with the typical embodiment of the present application;

[0048] Figure 7 This is a principle block diagram of a typical embodiment of the transaction pricing control device of the present application. DETAILED DESCRIPTION

[0049] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limiting the present application.

[0050] It will be understood by those skilled in the art that, unless expressly stated otherwise, the singular forms "a", "an", "said" and "the" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, "connected" or "coupled" as used herein may include wireless connections or wireless couplings. The term "and / or" used herein includes all or any units and all combinations of one or more associated listed items.

[0051] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0052] It will be understood by those skilled in the art that the terms "client," "terminal," and "terminal device" as used herein include both devices that are wireless signal receivers, i.e., devices that only have wireless signal receivers without transmission capabilities, and devices that have receiving and transmitting hardware capable of two-way communication over a two-way communication link. Such devices may include: cellular or other communication devices such as personal computers and tablet computers, which have single-line displays, multi-line displays, or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service), which may combine voice, data processing, fax, and / or data communication capabilities; PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, Internet / Intranet access, a web browser, a notepad, a calendar, and / or a GPS (Global Positioning System) receiver; and conventional laptop and / or palmtop computers or other devices, which have and / or include a radio frequency receiver. As used herein, the terms "client," "terminal," or "terminal device" may be portable, transportable, or installed in a vehicle (air, sea, and / or land), or may be adapted and / or configured to operate locally and / or in a distributed manner at any other location on Earth and / or in space. As used herein, the terms "client," "terminal," or "terminal device" may also refer to a communication terminal, an Internet terminal, or a music / video playback terminal, such as a PDA, an MID (Mobile Internet Device), and / or a mobile phone with music / video playback capabilities, or may include a smart TV, a set-top box, or other device.

[0053] The hardware referred to by names such as "server", "client", and "service node" in this application is essentially an electronic device with capabilities equivalent to those of a personal computer. It is a hardware device that has the necessary components revealed by the von Neumann principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. Computer programs are stored in its memory, and the central processing unit loads the program stored in the external memory into the internal memory for execution, executes the instructions in the program, and interacts with the input and output devices to complete specific functions.

[0054] It should be noted that the concept of "server" referred to in this application can also be extended to server clusters. Based on the network deployment principles understood by those skilled in the art, the servers described should be logically divided. In physical space, these servers can be independent of each other but callable through interfaces, or integrated into a single physical computer or a computer cluster. Those skilled in the art should understand this flexibility and should not use it to constrain the implementation of the network deployment method of this application.

[0055] See also Figure 1 , the hardware foundation required for the implementation of the relevant technical solutions of this application can be deployed according to the architecture shown in the figure. The server 80 referred to in this application is deployed in the cloud. As a business server, it can be responsible for further connecting relevant data servers and other servers that provide relevant support, etc., to form a logically related service cluster to provide services for relevant terminal devices such as the smartphone 81 and personal computer 82 shown in the figure or a third-party server (not shown). The smartphone and personal computer can both access the Internet through a well-known network access method and establish a data communication link with the server 80 in the cloud to run terminal applications related to the services provided by the server.

[0056] The middle platform referred to in this application mainly refers to the intermediate components that need to be called by computer services to implement certain practical functions. It responds to external requests and provides input parameters from external requests when necessary. After internal processing, it feedbacks the expected results of the external requests and completes the response to the external requests.

[0057] Those skilled in the art should be aware that although the various methods of this application are described based on the same concept and thus exhibit commonality, unless otherwise specified, these methods can be independently executed. Similarly, the various embodiments disclosed in this application are all based on the same inventive concept. Therefore, concepts with the same expression, as well as concepts that are appropriately transformed for convenience despite different expression, should be understood as equivalent.

[0058] Based on the understanding of the above-disclosed deployment environment and application environment related to the technical solution of this application, please refer to the following description to further understand the various implementation methods of this application:

[0059] See also Figure 2 The present invention relates to a transaction pricing control method, which is implemented by an application installed and running on a server to construct a pricing service of the present invention and is open to external calls. In a typical embodiment, the method includes the following steps:

[0060] Step S11: Receive an order pricing request, and obtain the platform feature information, the store feature information affiliated with the platform, and the transaction amount.

[0061] When a consumer on an e-commerce platform places an order, transaction data is generated. This data includes the ordered items and their corresponding transaction prices. To provide pricing services based on the discounts configured by the e-commerce platform and the store for these items, the e-commerce platform further encapsulates an order pricing request based on this transaction data and sends it to the pricing service in this application for discount pricing.

[0062] Since the pricing service of this application is implemented at the e-commerce platform level, it can be opened to multiple e-commerce platforms at the same time. Therefore, the order pricing request should generally include platform feature information for distinguishing the identities of different e-commerce platforms, store feature information for distinguishing the identities of different stores under the e-commerce platform, and the total transaction amount consisting of the transaction prices of all goods in the order formed after the user places an order, or the transaction amount of a single product that is eligible for a discount. The specific amount can be determined by the backend program of the e-commerce platform itself.

[0063] After receiving the order pricing request, the pricing service of this application parses the request and extracts the platform feature information, store feature information and transaction amount from it in order to carry out pricing processing.

[0064] In other embodiments, the e-commerce platform may further provide product feature information, and the pricing service of this application may match the request with corresponding pricing rules based on the product feature information, thereby refining the pricing service to the product unit. The application of this embodiment can be flexibly implemented by those skilled in the art in practice.

[0065] Step S12: Query and determine multiple pricing rules associated with the platform characteristic information and / or store characteristic information from a rule database:

[0066] The pricing service of this application is responsible for maintaining a rule database, which stores the pricing rules configured by the e-commerce platform and the store so that they can be called in this step. The implementation of the pricing rules is relatively flexible, but it must include the elements required for calculation in this application, for example, the priority and specific pricing formula used to determine the order of the pricing rules themselves in the associated calculation, where the priority can be represented by a numerical value, and the pricing formula can be implemented as an expression that can be parsed and executed by the pricing service of this application. Its form is flexible and can be designed as needed by those skilled in the art. If necessary, the pricing rules can also include rule types to indicate what kind of preferential treatment the pricing rules belong to, such as discounts, full discounts, etc., so that they can be displayed during maintenance. More introductions to the pricing rules and the rule database will be revealed in another embodiment of the subsequent application, which will not be discussed here for the time being.

[0067] In one embodiment, a multi-gradient form of discount for purchases over a certain amount is adapted, wherein one of the pricing rules includes multiple interval thresholds and discount amounts, each interval threshold is set corresponding to a discount amount, and the pricing formula uses the incoming transaction amount to determine the interval threshold to which it belongs and to determine the corresponding discount amount.

[0068] In another embodiment, to accommodate discount offers, one of the pricing rules includes a proportional factor representing the discount ratio. The pricing formula uses the product of the incoming transaction amount and the preferential ratio to determine the corresponding preferential amount. This proportional factor can be expressed as a discount ratio, such as 90%, or a discounted ratio (1-90%) = 10%, which can be flexibly expressed by those skilled in the art.

[0069] For example, for a discount pricing rule, suppose the corresponding discount formula is 9.0%. In the pricing rule of the rule database, simply store an expression with a discount value of 9.0. For a discount pricing rule with a purchase-to-discount ratio, there can be multiple gradients. These gradient values ​​can be array objects whose attributes are the purchase-to-discount threshold and the amount to be reduced. The following JSON string can store multiple threshold gradients and the corresponding purchase-to-discount ratio:

[0070]

[0071] Typically, since multiple pricing rules may be effective for platform users at the same time, or multiple pricing rules may be effective for store users at the same time, or both platform users and store users have relevant pricing rules in effect, in this case, using the platform feature information and store feature information, multiple pricing rules associated with the platform feature information and / or store feature information can be retrieved from the rule database.

[0072] Step S13: Adapt the preset combination rule according to the relative relationship between the priorities contained in the multiple pricing rules:

[0073] As mentioned above, priority information is configured between each pricing rule. The priority is usually represented by a numerical value. Therefore, the relative relationship between the pricing rules can be determined by comparing the sizes of each priority, and the application order of each pricing rule can be determined by matching the corresponding combination rules according to this relative relationship, so that the latter pricing rule can be calculated based on the residual value of the transaction amount after the application of the previous pricing rule, or ensure that multiple pricing rules with equal priorities can be calculated independently and summarized after the discount, thereby realizing associated calculation.

[0074] In a preferred embodiment, please refer to Figure 3 , this step is broken down into the following specific steps:

[0075] Step S131: Identify the priority representation values ​​contained in multiple pricing rules:

[0076] After the plurality of pricing rules are extracted from the rule database, detailed information of each pricing rule is obtained, including a priority representation value and an expression of a specific pricing formula.

[0077] Step S132: Compare the priority representation values ​​of the various pricing rules to obtain a priority comparison result:

[0078] Regardless of whether multiple pricing rules belong to the platform characteristic information or the store characteristic information of the corresponding e-commerce platform, they can be directly compared using their priority representation values ​​to obtain corresponding priority comparison results. It is understood that the priority comparison results generally include three categories: equal priority, higher priority, and lower priority.

[0079] Step S133: Based on the comparison result, for pricing rules with the same priority, the first combination rule is adapted; for pricing rules with unequal priorities, the second combination rule is adapted:

[0080] One of the core ideas of the present application is to determine the combination rules that should be applied under different relative relationships based on the relative relationship reflected by each pricing rule in the priority comparison result. Although the priority comparison result includes three types of situations as mentioned above, for the relative relationship itself, no matter how many pricing rules exist, there are only two types of relative relationships, namely, the same priority and different priority. Therefore, it may include three types of situations, one of which is that the priority of each pricing rule is the same, the second is that the priority of each pricing rule is different, and the third is that there are multiple pricing rules with the same and different priorities at the same time. Therefore, in practice, the present application presets combination rules for the relative relationship between the two priorities of the same priority and the different priority, so that for multiple pricing rules with the same priority, the first combination rule is applied to process the preferential pricing relationship between each other, and for multiple pricing rules with different priorities, the second combination rule is applied to process the preferential pricing relationship between each other.

[0081] The combination rules are pre-configured in the application implementation logic of the pricing service of this application, and are mainly used to guide how to handle the relationship between the preferential data obtained by each pricing rule. In this embodiment, the first combination rule is used to guide multiple pricing rules with the same priority to calculate preferential data based on the transaction amount provided by the order pricing request and then add them up to determine the final preferential data. The second combination rule is used to guide multiple pricing rules with different priorities. The pricing formula of the pricing rule with the highest priority can be directly applied to the transaction amount in the order pricing request to calculate the preferential data. The pricing rule with the second highest priority uses the residual value of the transaction amount calculated by the pricing rule with higher priority and after deducting the preferential data to apply its pricing formula. Finally, the sum of the preferential data calculated by the pricing rules of different priorities can be determined as the final preferential data.

[0082] Step S14: Under the constraints of the combination rules, the interface provided by the pricing engine is called to calculate the preferential data corresponding to the transaction amount according to the pricing formula contained in each pricing rule, and used to respond to the order pricing request:

[0083] In the present application, the pricing engine is implemented as a standardized intermediate component that can be called. It can be assisted by the Drools business rule engine or developed independently according to the disclosure of this application. It is responsible for parsing and executing the pricing formula in the pricing rules, receiving externally transmitted parameters, applying the pricing formula to run, and finally obtaining the corresponding calculation results. Usually, the externally transmitted parameter is the transaction amount used for pricing. This transaction amount can be the original value of the transaction amount provided by the order pricing request, or it can be the residual value of the transaction amount after the preferential data is deducted by other pricing rules. In any case, it is regarded as an input parameter passed into the pricing formula for calculation. The result is the preferential data obtained after the input parameter operation. The preferential data can be further passed to other pricing rules for use as an input parameter.

[0084] The pricing engine can be called concurrently through interface functions, so that multiple running instances of the pricing engine can serve multiple different order pricing requests respectively. The pricing engine does not directly define the pricing formula, but only implements a parsing and execution mechanism for the pricing formula. Therefore, unless the parsing and execution mechanism needs to be changed, pricing formulas with different expressions that comply with the same parsing mechanism can be parsed and executed by this pricing engine. This effectively decouples the pricing engine from the algorithm contained in the pricing formula, and changes to the algorithm contained in the pricing formula will not affect the effective operation of the pricing engine. The pricing engine supports common arithmetic operations and other complex operations. If a new calculation method is added, only a new calculation engine script expression needs to be added, without the need to maintain the code. The pricing engine script supports configurability, and the final result can be obtained by simply maintaining the execution priority of the pricing engine. Changes in the calculation logic and the addition of a new pricing engine can be directly maintained by maintaining the engine script.

[0085] like Figure 4 As shown, in the process of calling the pricing engine, the following steps are performed:

[0086] Step S141: When the combination rule is the first combination rule and the pricing engine is called, the pricing engine uses the transaction amount to pass parameters to the pricing formulas of each pricing rule with the same priority, and calculates the preferential amount corresponding to each pricing rule.

[0087] As mentioned above, the first combination rule applies to pricing rules with the same priority. Therefore, when the combination rule is the first combination rule and the pricing engine is called, for example, if one or more pricing rules with the highest priority are currently being calculated, then the original value of the transaction amount contained in the order pricing request can be directly passed to the pricing engine as an input parameter, and the pricing engine calculates the preferential data based on the pricing formula of the pricing rule according to the transaction amount. The same applies to another pricing rule. By calculating the two pricing rules separately, the corresponding preferential amounts calculated based on the same transaction amount are obtained. It can be understood that if these pricing rules have the same priority, but their priority is lower than that of other pricing rules, then their input parameter should be the residual value obtained after the original value of the transaction amount is deducted from the sum of the preferential amounts calculated by other pricing rules with higher priorities.

[0088] Step S142: When the combination rule is the second combination rule and the pricing engine is called, the pricing engine uses the transaction amount to pass to the pricing formula of the pricing rule with a higher priority to calculate the first preferential amount, deducts the first preferential amount from the transaction amount, and then passes to the pricing formula of the pricing rule with the second highest priority to calculate the second preferential amount, and so on.

[0089] As previously mentioned, the second combination rule applies to pricing rules with different priorities. Therefore, when the pricing engine is called for the second combination rule, for example, if two pricing rules with different priorities are currently being calculated, and the first pricing rule has the highest priority, then for the first pricing rule, the original transaction amount of the order pricing request is directly used as an input parameter to call the pricing engine to parse and execute the pricing formula in the first pricing rule to calculate the discount amount. The original transaction amount is then deducted from the discount amount to obtain the residual value. This residual value is used as the new transaction amount for the second pricing rule. When the pricing engine is called for the second pricing rule, this residual value is used as an input parameter, and the pricing engine parses and executes the pricing formula in the second pricing rule to calculate the corresponding discount amount based on this residual value. Similarly, if a third pricing rule with a lower priority exists, the residual value (the original transaction amount minus the sum of all discount amounts) is used as the new input parameter for the calculation of the third pricing rule, and so on.

[0090] Step S143: Summarize the various preferential amounts and use them to respond to the order pricing request.

[0091] As described above, the pricing rules of the same priority calculate the corresponding preferential amount under the constraint of the first combination rule, and the pricing rules of different priorities can also calculate the corresponding preferential amount under the constraint of the second combination rule. No matter how complex the priority relationship of the pricing rules is, under the constraint of these two combination rules, the corresponding preferential amount of various pricing rules can be calculated. Therefore, the overall preferential amount that the transaction amount in the order pricing request should enjoy can be determined by summarizing all the individual preferential amounts calculated above. Using this summarized total preferential amount to respond to the order pricing request completes the entire transaction pricing control process.

[0092] To make the embodiments disclosed in this application more vivid, the following further gives an example by combining the operation process after applying the typical embodiments of this application:

[0093] Step 1) The pricing service queries the pricing rules corresponding to the store according to the tenant ID (platform feature information) and store ID (store feature information) in the order pricing request transmitted according to the order placement process. Store A queries two pricing rules. For the two corresponding pricing rules, they are handed over to the pricing engine implemented based on Drools for calculation in sequence according to the priority of the pricing rules. Assume that the first pricing rule applies the discount preferential form, and the second pricing rule applies the full reduction preferential form.

[0094] Step 2) If the priorities of the pricing rules are both 1, it means that the input transaction amounts of the corresponding two pricing formulas are the same. If the transaction amounts participating in the discount preferential pricing formula are all 1000 yuan, according to pricing formula 1, the result of the preferential amount is 100 yuan. At the same time, for the full reduction discount preferential pricing formula, the full reduction amount is 100 off for every 1000, so the result of the preferential amount is 100 yuan. According to the calculation results of pricing formula 1 and pricing formula 2, the total preferential amount calculated is 200 yuan.

[0095] If the preferential priorities are 1 and 2 respectively, that is, the input amount of the pricing formula with priority 1 is 1000 yuan, and the calculated preferential amount is 100 yuan. The input of the pricing formula with priority 2 is the residual value of the calculation result of preferential formula 1, that is, the input of the pricing formula with priority 2 is 900 yuan. That is, the amount participating in the calculation of the pricing formula with a lower priority is the result of the preferential amount after the preferential amount of its higher priority.

[0096] Step 3) When calculating, hand over each corresponding configured pricing formula to the pricing engine for parsing and execution. Taking the full reduction discount preferential formula as an example, the full N minus M and the current order amount k can be dynamically used as parameters and handed over to the pricing engine. The pricing engine will judge which full reduction interval the amount k conforms to. For example, 1000 yuan satisfies the interval of 800 < N <= 1000, and the pricing engine will obtain the value of minus M according to this interval.

[0097] Step 4) According to the combination rule, the pricing formula and the pricing engine calculation results can be associated one by one, and the pricing formula is passed to the pricing engine, which calculates the preferential amount to obtain the total preferential amount.

[0098] From this operation example, it can be seen that compared with the common solution of directly executing each discount method at one time, the calculation method using the pricing engine is easier to maintain and convenient for expansion. Because the common pricing method generally directly writes all the types to be calculated in the code, the solution is too simple and not suitable for use on the middle-office system with multi-business access. As we all know, the middle-office system emphasizes efficiency, reuse and flexibility.

[0099] In another embodiment of the present application, platform users and store users are allowed to configure pricing rules. Figure 5 The transaction pricing control method of the present application, based on the previous embodiment, further includes a pre-step S10 of receiving configuration information of pricing rules of platform users and / or store users, and associating the pricing rules with corresponding platform feature information and / or store rental feature information and storing them in the database:

[0100] For example, the store manager or platform manager defines the pricing rules or pricing formulas of the maintained store or platform configuration in the background. For example, if store A opens discounts and discounts for purchases over a certain amount at the same time, the priority of discounts is higher than that of discounts for purchases over a certain amount. At this time, the pricing service management background of this application will save the pricing rules configured by store A. Two pricing rules are adapted here, and two pricing formulas are involved accordingly. The pricing formula under the discount method is 9.0%, so a discount value of 9.0 is stored in the data record corresponding to the pricing rule in the rule database. The discount can have multiple gradients, which can be organized in array or Json form as described above.

[0101] When the pricing rules configured by the store are stored in the rule database, if store A has two pricing rules and two corresponding pricing formulas, two data records will be generated. The rule type of record 1 can be marked as DISCOUNT to indicate a discount, and the rule type of record 2 can be marked as DEDUCTION to indicate a deduction. Store B can also associate other discount formulas, and so on. The number of data records stored in the database is equal to the number of discount pricing formulas.

[0102] Set the priority of the discount formula based on the multiple rules configured for the store. For example, the discount pricing formula of store A has a priority of 1, and the full-amount discount pricing formula has a priority of 2. The pricing formula priorities are saved in order, with the higher the priority, the higher the priority, for example, 1 represents the highest priority. Of course, the priority of both discount pricing formulas configured by store A can also be 1 at the same time.

[0103] It can be seen that through this embodiment, the present application opens up greater freedom for platform users and store users, facilitating the promotion of the pricing service of the present application.

[0104] Another embodiment of the present application provides a more in-depth customization function compared to the previous embodiment. Figure 6 The transaction pricing control method of the present application, based on its typical embodiment, further includes the following steps:

[0105] Step S21: Respond to a formula editing request from a platform user and / or a store user and push the pricing formula expression text associated therewith:

[0106] The platform user and / or store user can individually request to edit the pricing formula in their pricing rules, and send a corresponding formula editing request for a specific pricing rule through a maintenance management page of the pricing service of this application, and the pricing service of this application returns the expression text of the pricing formula for the user to edit.

[0107] Step S22: receiving the pricing formula text data returned after editing the expression text:

[0108] When the user completes the expression text of the pricing formula and submits it, the corresponding text data is returned to the pricing service. If necessary, the pricing service can format and organize the text data.

[0109] Step S23: Update the corresponding pricing formula in the rule database with the text data:

[0110] After obtaining the text data, the pricing service can replace the pricing formula storage field or storage area corresponding to the relevant pricing rule in the rule database with the text data. When the pricing rule is subsequently called, the new pricing formula is directly applied.

[0111] It can be understood that each step of this embodiment is a business logic proposed based on the formula editing request. This business logic can be executed concurrently with other steps of this application and theoretically does not need to follow a specific order.

[0112] Furthermore, by functionalizing the various embodiments of the above-mentioned transaction pricing control method, a transaction pricing control device of the present application can be constructed. Figure 7 In a typical embodiment, the device comprises:

[0113] Request parsing module 11, used to receive order pricing requests and obtain platform feature information, store feature information affiliated with the platform, and transaction amount;

[0114] A rule query module 12 is configured to query and determine a plurality of pricing rules associated with the platform characteristic information and / or store characteristic information from a rule database;

[0115] A combination matching module 13 is configured to match the preset combination rules according to the relative relationship between the priorities contained in the multiple pricing rules;

[0116] The pricing execution module 14 is used to call the interface provided by the pricing engine under the constraints of the combination rules, so that it calculates the preferential data corresponding to the transaction amount according to the pricing formula contained in each pricing rule, and is used to respond to the order pricing request.

[0117] In order to facilitate the execution of the present application, an electronic device is provided, comprising a central processing unit and a memory, wherein the central processing unit is used to call and run a computer program stored in the memory to execute the steps of a transaction pricing control method as described above.

[0118] It can be seen that the memory is preferably a non-volatile storage medium. By implementing the aforementioned method as a computer program and installing it in an electronic device such as a mobile phone, the relevant program code and data are stored in the non-volatile storage medium of the electronic device. The program is further run by the central processing unit of the electronic device, and the program is transferred from the non-volatile storage medium to the memory for execution, thereby achieving the desired purpose of the present application. Therefore, it can be understood that in one embodiment of the present application, a non-volatile storage medium is further provided, which stores a computer program implemented according to various embodiments of the transaction pricing control method in the form of computer-readable instructions. When the computer program is called and executed by the computer, the steps included in the method are executed.

[0119] To sum up, this application implements a pricing service intermediate component technical architecture, which is suitable for providing standardized preferential pricing services for e-commerce transactions, and can realize the correlation calculation between various preferential methods. It has universal applicability and is suitable for popularization in the e-commerce field.

[0120] Those skilled in the art will appreciate that this application relates to devices for performing one or more of the operations and methods described herein. These devices may be specially designed and manufactured for the desired purpose, or they may include known devices found in general-purpose computers. These devices have computer programs stored in their memory, which are selectively activated or reconfigured. Such computer programs may be stored in a device (e.g., a computer) readable medium or in any type of medium suitable for storing electronic instructions and coupled to a bus, including but not limited to any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic cards, or optical cards. In other words, a readable medium includes any medium that can be used by a device (e.g., a computer) to store or transmit information in a form that can be read.

[0121] Those skilled in the art will appreciate that each block in these structural diagrams and / or block diagrams and / or flow charts, as well as combinations of blocks in these structural diagrams and / or block diagrams and / or flow charts, can be implemented using computer program instructions. Those skilled in the art will appreciate that these computer program instructions can be provided to a general-purpose computer, a specialized computer, or a processor of other programmable data processing methods for implementation, thereby executing the schemes specified in the blocks or multiple blocks of the structural diagrams and / or block diagrams and / or flow charts disclosed in this application through the processor of the computer or other programmable data processing method.

[0122] Those skilled in the art will appreciate that the steps, measures, and schemes in the various operations, methods, and processes discussed in this application may be interchanged, modified, combined, or deleted. Furthermore, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be interchanged, modified, rearranged, decomposed, combined, or deleted. Furthermore, steps, measures, and schemes in the prior art that are similar to those disclosed in this application may also be interchanged, modified, rearranged, decomposed, combined, or deleted.

[0123] The above description is only part of the implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A transaction pricing control method, characterized in that: Applied to the pricing service platform, including the following steps: Receive configuration information of pricing rules of platform users and store users, and associate the pricing rules with corresponding platform feature information and store feature information and store them in a rule database; In response to formula editing requests from platform users and store users, push the pricing formula expression text associated with them; Receiving pricing formula text data returned after editing the pricing formula expression text; Updating the corresponding pricing formula in the rule database with the pricing formula text data; Receive order pricing requests, and obtain platform feature information, store feature information affiliated with the platform, and transaction amount; Query and determine a plurality of pricing rules associated with the platform characteristic information and the store characteristic information from a rule database; Adapting the preset combination rule according to the relative relationship between the priorities contained in the multiple pricing rules; The step of adapting the preset combination rule according to the relative relationship between the priorities contained in the multiple pricing rules includes: identifying the priority representation values ​​contained in the multiple pricing rules; comparing the values ​​of the priority representations of the various pricing rules to obtain a priority comparison result; according to the priority comparison result, for pricing rules with the same priority, adapting the first combination rule, and for pricing rules with unequal priorities, adapting the second combination rule; Under the constraints of the combination rules, the interface provided by the pricing engine is called to calculate the preferential data corresponding to the transaction amount according to the pricing formula contained in each pricing rule, which is used to respond to the order pricing request, including: When the combination rule is the first combination rule and the pricing engine is called, the pricing engine is made to pass the transaction amount to the pricing formulas of each pricing rule with the same priority, and calculate and obtain the preferential amount corresponding to each pricing rule respectively; When the combination rule is the second combination rule and the pricing engine is called, the pricing engine is made to pass the transaction amount to the pricing formula of the pricing rule with a higher priority to calculate the first preferential amount, and then deduct the first preferential amount from the transaction amount and pass it to the pricing formula of the pricing rule with the second highest priority to calculate the second preferential amount, and so on; Aggregating various preferential amounts to respond to the order pricing request; Among them, the pricing engine is implemented as a standardized intermediate component that can be called, which is responsible for parsing and executing the pricing formula in the pricing rules, receiving externally transmitted parameters, applying the pricing formula for operation, and finally obtaining the corresponding calculation results as the discount data. The discount data is suitable for being passed to other pricing rules as input parameters.

2. The method according to claim 1, characterized in that: In the step of querying and determining multiple pricing rules associated with the platform characteristic information and the store characteristic information from the rule database, one of the pricing rules includes multiple interval thresholds and discount amounts, each interval threshold is set corresponding to a discount amount, and its pricing formula uses the incoming transaction amount to determine the interval threshold to which it belongs and determines the corresponding discount amount.

3. The method according to claim 1, characterized in that: In the step of querying and determining multiple pricing rules associated with the platform characteristic information and the store characteristic information from the rule database, one of the pricing rules includes a proportional factor representing the discount ratio, and its pricing formula uses the product of the incoming transaction amount and the discount ratio to determine the corresponding discount amount.

4. A transaction pricing control device, characterized in that: Applied to a pricing service middle platform, it implements the transaction pricing control method described in any one of claims 1 to 3, including: The request parsing module is used to receive the order pricing request and obtain the platform characteristic information, the store characteristic information belonging to the platform and the transaction amount; A rule query module, used to query and determine multiple pricing rules associated with the platform characteristic information and / or store characteristic information from a rule database; A combination matching module, used to adapt the preset combination rules according to the relative relationship between the priorities contained in the multiple pricing rules, wherein for pricing rules with the same priority, the first combination rule is adapted, and for pricing rules with unequal priorities, the second combination rule is adapted; The pricing execution module is used to call the interface provided by the pricing engine under the constraints of the combination rules, so that it calculates the preferential data corresponding to the transaction amount according to the pricing formula contained in each pricing rule, and is used to respond to the order pricing request.

5. An electronic device, comprising a central processing unit and a memory, characterized in that: The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method according to any one of claims 1 to 3.

6. A non-volatile storage medium, characterized in that: The computer program implemented according to the method described in any one of claims 1 to 3 is stored in the form of computer-readable instructions, and when the computer program is called and executed by a computer, the steps included in the method are executed.