CN111222877A - Commodity information processing method and device, storage medium and electronic equipment - Google Patents

Commodity information processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111222877A
CN111222877A CN201911053888.4A CN201911053888A CN111222877A CN 111222877 A CN111222877 A CN 111222877A CN 201911053888 A CN201911053888 A CN 201911053888A CN 111222877 A CN111222877 A CN 111222877A
Authority
CN
China
Prior art keywords
pricing
commodity
calculation
pricing rules
rules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911053888.4A
Other languages
Chinese (zh)
Inventor
郭虎奇
谭元巍
肖磊
何俊良
蒋洪波
程成
龚磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201911053888.4A priority Critical patent/CN111222877A/en
Publication of CN111222877A publication Critical patent/CN111222877A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/387Payment using discounts or coupons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0222During e-commerce, i.e. online transactions

Abstract

The present disclosure relates to a commodity information processing method and apparatus, a storage medium, and an electronic device, the method including: determining at least one commodity selected by a user side on a shopping platform; determining a plurality of pricing rules applicable to the at least one commodity according to a preset incidence relation between the commodity and the pricing rules, and generating each calculation sequence among the pricing rules through a sequencing algorithm; calculating settlement amounts of the at least one commodity in each calculation order in parallel; and taking the minimum value of the settlement amounts as the payment amount of the commodity.

Description

Commodity information processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of information processing, and in particular, to a method and an apparatus for processing commodity information, a storage medium, and an electronic device.
Background
At present, after a merchant enters a platform of the electronic commerce, various promotion activities on the platform side are required to be participated in so as to realize the increase of the total volume of the transaction. After registering to participate in the event, the merchant needs to perform corresponding event configuration in the promotion system according to the situation of the merchant.
Pricing systems in the related art are often logically fixed, cannot flexibly calculate as many pricing rule combinations as possible, and are long in calculation time.
Disclosure of Invention
An object of the present disclosure is to provide a method and an apparatus for processing commodity information, a storage medium, and an electronic device, so as to solve the related technical problems.
In order to achieve the above object, in a first aspect of the embodiments of the present disclosure, there is provided a commodity information processing method including:
determining at least one commodity selected by a user side on a shopping platform;
determining a plurality of pricing rules applicable to the at least one commodity according to a preset incidence relation between the commodity and the pricing rules, and generating each calculation sequence among the pricing rules through a sequencing algorithm;
calculating settlement amounts of the at least one commodity in each calculation order in parallel;
and taking the minimum value of the settlement amounts as the payment amount of the commodity.
Optionally, said parallel computing settlement amounts of said at least one article in each of said computing orders comprises:
performing the following operations in parallel for each of the calculation sequences:
and sequentially calculating each pricing rule in the calculation sequence, and when calculating each pricing rule except the last pricing rule in the calculation sequence, calculating the current pricing rule according to the condition that each commodity is applicable or not applicable to the current pricing rule until the calculation results of various conditions in the calculation sequence are obtained, and taking the minimum value in each calculation result as the settlement amount.
Optionally, the pricing rules include merchant pricing rules, where the merchant pricing rules are configured by a merchant on the shopping platform, and the shopping platform configures pricing rules corresponding to merchant ends respectively using a multi-tenant isolation technology.
Optionally, the association relationship includes a sharing relationship, and the sharing relationship between the commodities and the pricing rules means that multiple types of pricing rules can be applied to multiple commodities of the same type;
the determining a plurality of pricing rules applicable to the at least one commodity according to the preset incidence relation between the commodity and the pricing rules comprises the following steps:
under the condition that a plurality of commodities of the same type are selected at the user side, a plurality of pricing rules which are applicable to the commodities and have a sharing relation with the commodities are determined; and/or the presence of a gas in the gas,
the association relation comprises a superposition relation, and the superposition relation between the commodities and the pricing rules means that the same commodity can be suitable for different types of pricing rules;
the determining a plurality of pricing rules applicable to the at least one commodity according to the preset incidence relation between the commodity and the pricing rules comprises the following steps:
and determining various pricing rules which can be applied to each commodity selected by the user side and have a superposition relation with the commodity.
Optionally, the pricing rule information comprises priorities between pricing rules;
the generating each calculation order among the plurality of pricing rules through a sorting algorithm comprises:
generating each calculation order among the plurality of pricing rules by a sorting algorithm according to the priority.
Optionally, said parallel computing settlement amounts of said at least one article in each of said computing orders comprises:
for a plurality of said calculation sequences, performing in parallel the following operations:
sequentially calling first calculation units corresponding to pricing rules applicable to the commodities in a calculation order to calculate settlement amount of the commodities aiming at a plurality of commodities of the same commodity category through a shared grouping actuator;
and sequentially calling a second calculation unit corresponding to each pricing rule applicable to each commodity to calculate the settlement amount of the commodity through the superposition grouping actuator.
Optionally, the method further comprises:
when a pricing rule increasing request sent by a merchant end is received, adding a pricing rule in a configuration file corresponding to the merchant end, and adding a first calculating unit and/or a second calculating unit corresponding to the pricing rule in a calculating actuator corresponding to the merchant end; and/or the presence of a gas in the gas,
and when a request for changing the relation of the pricing rules sent by the merchant end is received, changing the relation between the pricing rules in a configuration file corresponding to the merchant end.
In a second aspect, the present disclosure provides a commodity information processing apparatus comprising:
the first determining module is used for determining at least one commodity selected by the user side on the shopping platform;
the second determining module is used for determining a plurality of pricing rules applicable to the at least one commodity according to the preset incidence relation between the commodity and the pricing rules;
a generating module configured to generate each calculation order among the plurality of pricing rules determined by the second determining module through a ranking algorithm;
the calculation module is used for calculating settlement amount of the at least one commodity under each calculation sequence in parallel;
and the execution module is used for taking the minimum value in the settlement amount as the payment amount of the commodity.
Optionally, the computing module is configured to perform the following operations in parallel for each of the computing sequences:
and sequentially calculating each pricing rule in the calculation sequence, and when calculating each pricing rule except the last pricing rule in the calculation sequence, calculating the current pricing rule according to the condition that each commodity is applicable or not applicable to the current pricing rule until the calculation results of various conditions in the calculation sequence are obtained, and taking the minimum value in each calculation result as the settlement amount.
Optionally, the pricing rules include merchant pricing rules, where the merchant pricing rules are configured by a merchant on the shopping platform, and the shopping platform configures pricing rules corresponding to merchant ends respectively using a multi-tenant isolation technology.
Optionally, the association relationship includes a sharing relationship, and the sharing relationship between the commodities and the pricing rules means that multiple types of pricing rules can be applied to multiple commodities of the same type;
the second determining module includes:
the first determining submodule is used for determining a plurality of pricing rules which are applicable to a plurality of commodities and have sharing relation with the commodities when the user side selects the commodities of the same type; and/or the presence of a gas in the gas,
the association relation comprises a superposition relation, and the superposition relation between the commodities and the pricing rules means that the same commodity can be suitable for different types of pricing rules;
the second determining module includes:
and the second determining submodule is used for determining various pricing rules which can be suitable for each commodity selected by the user side and have a superposition relation with the commodity.
Optionally, the pricing rule information comprises priorities between pricing rules;
the generation module comprises:
and the generation submodule is used for generating each calculation sequence among the plurality of pricing rules through a sorting algorithm according to the priority.
Optionally, the computing module is configured to, for a plurality of computing orders, perform the following operations in parallel:
sequentially calling a first calculation unit corresponding to the pricing rule applicable to the commodities in the calculation module according to the calculation sequence to calculate the settlement amount of the commodities by a shared grouping executor for a plurality of commodities in the same commodity category;
and sequentially calling a second calculation unit corresponding to each pricing rule applicable to each commodity in the calculation module to calculate the settlement amount of the commodity by the superposition grouping actuator.
Optionally, the apparatus further comprises:
the adding module is used for adding the pricing rule into a configuration file corresponding to the merchant end when a pricing rule adding request sent by the merchant end is received, and adding a first calculating unit and/or a second calculating unit corresponding to the pricing rule into a calculating actuator corresponding to the merchant end; and/or the presence of a gas in the gas,
and the modification module is used for modifying the relationship between the pricing rules in the configuration file corresponding to the merchant terminal when receiving a request for modifying the pricing rule relationship sent by the merchant terminal.
In a third aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method of any of the first aspects described above.
In a fourth aspect, the present disclosure provides an electronic device comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any of the first aspects above.
The technical scheme at least comprises the following technical effects:
various pricing rules applicable to the commodities selected by the user can be determined through the preset incidence relation between the commodities and the pricing rules, so that all possible calculation sequences in the various pricing rules can be generated through a sequencing algorithm, the settlement amount in each calculation sequence can be obtained through a parallel calculation mode, and the effects of improving the calculation efficiency and shortening the calculation time are finally achieved. Moreover, the calculation mode of all possible calculation sequences of the multiple pricing rules also enables the pricing rules to be utilized more comprehensively.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a flowchart illustrating a commodity information processing method according to an exemplary embodiment of the present disclosure.
Fig. 2 is a schematic diagram of a relationship between a tenant and a tenant configuration according to an exemplary embodiment of the present disclosure.
Fig. 3 is a schematic diagram illustrating a calculation flow of a payment amount of a commodity according to an exemplary embodiment of the present disclosure.
Fig. 4 discloses a block diagram of a merchandise information processing device shown in an exemplary embodiment.
Fig. 5 discloses a block diagram of an electronic device shown in an exemplary embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Before introducing the commodity information processing method and apparatus, the storage medium, and the electronic device provided by the present disclosure, an application scenario of each embodiment of the present disclosure is first introduced. Embodiments provided by the present disclosure may be applied to a variety of shopping platforms. In the related technology, a pricing system of a shopping platform provides a corresponding pricing scheme according to type information of merchants by presetting a plurality of different pricing schemes, and finally supports pricing requirements of different merchants. However, such a method also results in lower implementation flexibility of the corresponding pricing system, longer time-consuming calculation process, and higher development and maintenance costs.
Fig. 1 is a schematic flowchart of a method for processing merchandise information according to an exemplary embodiment of the present disclosure, where as shown in fig. 1, the method includes:
and S11, determining at least one commodity selected by the user terminal on the shopping platform.
S12, determining a plurality of pricing rules applicable to the at least one commodity according to the preset incidence relation between the commodity and the pricing rules, and generating each calculation sequence among the pricing rules through a sorting algorithm.
The association relationship may be preset by the shopping platform, or may be set by the merchant according to actual needs, and the pricing rule may include, for example, a full-reduction pricing rule, a discount pricing rule, and the like. For example, the goods selected by the user end are applicable to the full-discount pricing rule a, the discount pricing rule B and the buy-one pricing rule C of the shopping platform, and the calculation order among the pricing rules obtained by the sorting algorithm may be, for example: ABC, ACB, BAC, BCA, CAB, CBA. Taking the calculation order ABC as an example, the calculation order ABC calculates the calculation rule a first, then calculates the calculation rule B, and finally calculates the calculation rule C.
S13, calculating the settlement amount of the at least one commodity in each calculation order in parallel.
S14, the minimum value of the settlement amounts is used as the payment amount of the commodity.
It should be noted that the calculation order of the same multiple commodities under different pricing rules may affect the final settlement result. For example, the items that the user has selected are two items B, and the unit price of the items B is 150 yuan. The first pricing rule exists as follows: the product B is 20 yuan less discount at 100 yuan (the same kind of product can only participate once); the second pricing rule exists as follows: the total amount of the commodities is full of 299 yuan, and the discount is 20 yuan. Thus, if one is calculated and then two is calculated, the final payment amount of the goods should be 150+ 150-20-280 yuan. And if the second pricing rule is calculated firstly and then the first pricing rule is calculated, the final settlement amount of the commodity is 150+ 150-20-260 yuan. I.e. the payment amount for the same item may be influenced by the order of calculation between different invoicing rules.
That is to say, in this embodiment, the multiple pricing rules applicable to the commodity selected by the user can be determined through the preset association relationship between the commodity and the pricing rule, so that all possible calculation sequences in the multiple pricing rules can be generated through the sorting algorithm, and then the settlement amount in each calculation sequence can be obtained through a parallel calculation mode, and finally, the effects of improving the calculation efficiency and shortening the calculation time are achieved. Moreover, the calculation mode of all possible calculation sequences of the multiple pricing rules also enables the pricing rules to be utilized more comprehensively. In addition, the payment rate of the user side can be improved by using the minimum value of the settlement amounts in the calculation sequences as the payment amount of the commodity.
It should be noted that, for the same pricing rule, different calculation manners of the product selected by the user terminal under the pricing rule may also generate differences of the settlement amount. Illustratively, there is a pricing rule M of 95 discount when the product A is more than two, and a pricing rule N of 30 discount when the product A is 100 dollars full. If the user selects three commodities a, the following two calculation methods may exist when the three commodities a correspond to the pricing rules M and N:
the first method is as follows: three commodities A are calculated according to a pricing rule M, 3 x 35 x 95% is 99.75, and the commodity A is not suitable for the pricing rule N after the calculation according to the pricing rule M is completed, so that the final payment amount of the three commodities A is 99.75 yuan.
The second method comprises the following steps: calculating two commodities A according to a pricing rule M, wherein one commodity A is calculated according to an original price, 2 x 35 x 95% +35 is 101.5 yuan, and on the basis, calculating a pricing rule N to obtain the payment amount of the three commodities A, namely 101.5-30-71.5 yuan.
Thus, in one possible implementation, the step S13 includes:
performing the following operations in parallel for each of the calculation sequences:
and sequentially calculating each pricing rule in the calculation sequence, and when calculating each pricing rule except the last pricing rule in the calculation sequence, calculating the current pricing rule according to the condition that each commodity is applicable or not applicable to the current pricing rule until the calculation results of various conditions in the calculation sequence are obtained, and taking the minimum value in each calculation result as the settlement amount.
When a certain calculation sequence is calculated, for each pricing rule except the last pricing rule in the calculation sequence, all calculation modes of the commodity under the current pricing rule can be determined according to the commodity selected by the user side and the pricing rule to be calculated currently, and a calculation result under each calculation mode is calculated. And aiming at each calculation result, matching the calculation result with the next pricing rule to be calculated, determining all calculation modes under the next pricing rule to be calculated until all possible calculation results under the calculation sequence are obtained, and taking the minimum value in the calculation results as the settlement amount under the calculation sequence.
Still taking the above three commodities A as an example for explanation, the commodity A has two calculation orders of MN and NM through a sorting algorithm under the pricing rules M and N. Taking the calculation order as MN as an example, when the three commodities a correspond to the pricing rule M, there are the following possible calculation manners:
the first method is as follows: 35 x 3 (three commercial articles a are calculated according to the original price);
the second method comprises the following steps: 35 x 2 x 0.95+35 (two commodities A are calculated according to the pricing rule M, and one commodity A is calculated according to the original price);
the third method comprises the following steps: 35 x 3 x 0.95 (three items of merchandise a are calculated according to the pricing rule M).
After the 3 calculation results are obtained through calculation, the 3 calculation results may be matched with the pricing rule N, and possible calculation manners of each calculation result under the pricing rule N are determined (for example, for a manner one, there are two calculation manners, that is, calculation not according to the pricing rule N and calculation according to the pricing rule N), so that all possible calculation results of the three commodities a under the calculation order MN are obtained, and the minimum value of all possible calculation results is used as the settlement amount of the calculation order MN.
By adopting the mode, the lowest settlement amount of the commodity selected by the user side can be used as the payment amount of the user, so that the payment rate of the user side can be further improved.
Optionally, the pricing rules include merchant pricing rules, where the merchant pricing rules are configured by merchants on the shopping platform, and the shopping platform may be, for example, an e-commerce platform or a business super system, and the shopping platform configures pricing rules corresponding to each merchant respectively using a multi-tenant isolation technology.
For example, referring to a relationship diagram between tenants and tenant configurations shown in fig. 2, each tenant (i.e., merchant) has a corresponding tenant configuration, and the merchant side may change the tenant configuration in a configuration environment provided by the shopping platform. The tenant configuration may have a variety of configuration attributes, such as: the method comprises the steps of pricing mode validation rule, commodity coding mode, pricing rule priority, pricing rule dimension priority, pricing rule sharing combination configuration, pricing rule superposition combination configuration, settlement prompt configuration and the like. In a specific implementation process, the tenant configuration may include one or more of the above configuration attributes, and after the merchant completes configuration of the configuration attributes, the pricing rule of the merchant is determined.
Therefore, by adopting a multi-tenant isolation mode, different merchants can define and configure default pricing rules provided by the shopping platform according to self conditions. That is to say, the system can provide different pricing rules for different merchants simultaneously, thereby improving the configuration flexibility of the pricing system and enhancing the adaptability of the pricing system to various merchants and different pricing rule requirements. In addition, the multi-tenant isolation technology is applied to the configuration of the pricing rules, personalized parts in the pricing rules of different merchants can be kept independent from one another, and meanwhile, common parts in the pricing rules of different merchants can be maintained in a unified mode, so that the maintenance cost is reduced.
For example, the method may be applied in a merchant-super system, such as a merchant-super cash register system. The system service provider can adopt the commodity information processing method to meet the customized requirements of various merchants on the cash register system through corresponding configuration. Moreover, when the merchant has a change demand, the cashier system can be adjusted by corresponding configuration so as to meet the demand. Moreover, such adjustments do not affect the use of the corresponding functionality on the other merchant side. In addition, the system server also reserves the maintenance capability of the cash register system, and can uniformly maintain the basic common part of the cash register system without influencing the customizing function of the cash register system of each merchant, so that the problem of high development and maintenance cost caused by high customizing of the merchant excess system in the related technology is solved under the condition of meeting the customizing requirement of the merchant excess system.
In one embodiment, the pricing rules further include both merchant pricing rules and shopping platform-side pricing rules. When a merchant configures tenant configuration as shown in fig. 2, an association relationship between a pricing rule of the merchant and a commodity corresponding to each pricing rule may be established. That is, the applicable pricing rules (including the merchant pricing rules and the pricing rules on the shopping platform side) can be determined according to the conditions met by the commodities selected by the user respectively and/or in combination, all possible pricing rule calculation sequences of the commodities are calculated through a sorting algorithm, parallel calculation is performed according to the pricing rule calculation sequences, and the settlement amount under each pricing rule calculation sequence is obtained, so that the calculation efficiency can be improved.
In one possible embodiment, the association relationship comprises a sharing relationship,
the determining a plurality of pricing rules applicable to the at least one commodity according to the preset incidence relation between the commodity and the pricing rules comprises the following steps:
and under the condition that a plurality of commodities of the same kind are selected at the user side, determining a plurality of pricing rules which are applicable to the commodities and have sharing relation with the commodities.
Wherein the sharing relationship between the commodities and the pricing rules means that multiple types of pricing rules can be applied for multiple commodities of the same type. For example, if there is a sharing relationship between the commodity B and the plurality of pricing rules, all possible calculation orders of the commodity B may be arranged and combined through a sorting algorithm when the quantity of the commodity B is sufficient, and the settlement amount of the commodity B in each calculation order is calculated in a parallel calculation manner.
Illustratively, the total number of items B is 6, there are an invoicing rule 1 (defining 3 items B participation), an invoicing rule 2 (defining 2 items B participation) and an invoicing rule 3 (defining one item B participation), and the same item B can only participate in one of the above invoicing rules 1-3. Thus, the calculation order of the pricing rules of the 6 items B obtained by the sorting algorithm may include 6 kinds, that is: 1- >2- >3, 1- >3- >2, 2- >1- >3, 2- >3- >1, 3- >1- >2, 3- >2- > 1. After the calculation sequence of the pricing rule is obtained through the sorting algorithm, the system can calculate the settlement amount of the commodity B in each calculation sequence in a parallel calculation mode. That is, the system can simultaneously calculate the settlement amounts of the commodities B in the above 6 calculation orders, wherein when calculating the settlement amounts of the commodities B in a certain calculation order, the system can sequentially calculate the settlement amounts in each pricing rule according to the calculation order by adopting a serial calculation mode, and finally obtain the settlement amounts of the commodities B in the calculation order, thereby improving the calculation speed. It should be noted that, in the embodiments of the present disclosure, descriptions of "parallel computation", "concurrent computation", and the like refer to different calculation orders of the pricing rules, that is, the product settlement amounts in different calculation orders of the pricing rules are computed simultaneously, and the computation of the product settlement amounts in the same calculation order of the pricing rules still needs to be performed in series according to the specific calculation order of the pricing rules.
In another possible embodiment, the determining, according to a preset association relationship between a product and a pricing rule, a plurality of pricing rules applicable to the at least one product includes:
and determining various pricing rules which can be applied to each commodity selected by the user side and have a superposition relation with the commodity.
The superposition relationship between the commodities and the pricing rules means that the same commodity can be suitable for different types of pricing rules. For example, if there is a superposition relationship between the commodity a and a plurality of pricing rules, the commodity a may be simultaneously applied to one or more pricing rules having a superposition relationship with the commodity a.
In addition, the above description is only for describing the sharing relationship and the overlapping relationship, and in concrete implementation, the sharing relationship and the overlapping relationship between the product and the pricing rule may exist at the same time, that is, a plurality of pricing rules having the sharing relationship with the product may exist for a certain type of product, and a plurality of pricing rules having the overlapping relationship with the product may exist for a certain product. Optionally, the association relationship between the commodity and the pricing rule may further include a mutual exclusion relationship, where the mutual exclusion relationship means that any other pricing rule cannot be applied to a certain commodity if the certain pricing rule is applied to the certain commodity.
In a possible implementation manner, when the merchant configures the tenant configuration as shown in fig. 2, data may be constructed so that each commodity is associated with a price rule hit by the merchant, and the commodities participating in the price rule are associated under each price rule, including association of any one or more of a sharing relationship, an overlapping relationship, and a mutual exclusion relationship. Therefore, after the commodities selected by the user side are determined, the pricing rules applicable to the commodities selected by the user side can be determined according to the data constructed in the configuration of the tenant of the merchant. By sequencing the pricing rules applicable to the commodities, the settlement amount of the user side in each calculation sequence can be calculated in parallel, and the minimum value in the settlement amounts is used as the final payment amount of the commodities.
Therefore, the payment amounts of the commodities under different pricing rule calculation sequences can be determined in a parallel calculation mode finally by arranging and combining the selected commodities and the activities in which the commodities can participate, and the calculation efficiency is improved. In addition, the minimum value in the settlement amounts in the different pricing rule calculation sequences can be used as the final payment amount to be displayed to the user, and therefore the payment rate of the user can be improved.
Optionally, the pricing rule information comprises priorities between pricing rules;
the determining a plurality of pricing rules applicable to the at least one commodity according to a preset incidence relation between the commodity and the pricing rules, and generating each calculation sequence among the plurality of pricing rules through a sorting algorithm includes:
and determining a plurality of pricing rules applicable to the at least one commodity according to the incidence relation, and generating each calculation sequence among the pricing rules through a sorting algorithm according to the priority.
When the commodity conforms to the pricing rules at the same time, the calculation rule with higher priority is preferentially calculated for the commodity. For example, the merchant may rank between pricing rules when configuring pricing rule information. When a user selects a plurality of commodities, the system can filter out the pricing rules which are not applicable to the commodities according to the commodities and the incidence relation between the commodities and the pricing rules included in the pricing rule information, so that the number of the pricing rules is reduced, and the calculation speed is increased. In addition, aiming at the filtered pricing rules, the system can also perform priority grouping according to the priority of each pricing rule, and perform calculation sequence arrangement on the pricing rules under the same priority, so as to calculate the settlement amount under the calculation sequence of each pricing rule. In an embodiment, the packets with different priorities may be sequentially arranged to obtain other calculation orders of the pricing rules.
The setting of the priority among the pricing rules enables the configuration of different types of pricing rules by merchants to be more flexible, for example, for the pricing rules mainly recommended by merchants, the merchant terminal can increase the priority of the pricing rules, and by adopting the tenant isolation technology, different merchant terminals can set different priority orders for the same pricing rules, so that the personalization degree of the pricing rule configuration by each merchant is improved.
In addition, in a possible embodiment, a corresponding number threshold value may be set for the number of the calculation orders of the pricing rules, so as to reduce the time required for calculating the settlement amount in each calculation order of the pricing rules. For example, a threshold value M may be set, and if the number of the rating rule calculation orders is greater than M, the rating rule calculation orders to be calculated are determined according to the priority until the number is equal to M. Similarly, a threshold N may be set to control the number of ordering results obtained when ordering between different priority packets.
Optionally, said parallel computing settlement amounts of said at least one article in each of said computing orders comprises:
for a plurality of said calculation sequences, performing in parallel the following operations:
sequentially calling first calculation units corresponding to pricing rules applicable to the commodities in a calculation order to calculate settlement amount of the commodities aiming at a plurality of commodities of the same commodity category through a shared grouping actuator;
and sequentially calling a second calculation unit corresponding to each pricing rule applicable to each commodity to calculate the settlement amount of the commodity by the superposition grouping actuator.
Wherein the sharing group executor is used for calculating the payment amount of the commodities which have sharing relation with the pricing rule. In one embodiment, the sharing group executor may include a plurality of the first calculating units, and each of the first calculating units corresponds to a pricing rule having a sharing relationship with at least one of the items. The superposition grouping executor is used for calculating the payment amount of the commodities with superposition relation with the pricing rule. In another embodiment, a plurality of the second calculating units may be included in the overlap grouping executor, and each of the second calculating units corresponds to a pricing rule having an overlap relationship with at least one of the commodities.
By adopting the embodiment, the upper limit value of the number of the calculation sequences of the commodity pricing rule is limited, and each calculation sequence is calculated in parallel, so that the calculation efficiency can be effectively ensured, and the problem of overlong waiting time of a user due to excessive calculation sequences is avoided.
Optionally, the method further comprises:
when a pricing rule increasing request sent by a merchant end is received, adding a pricing rule in a configuration file corresponding to the merchant end, and adding a first calculating unit and/or a second calculating unit corresponding to the pricing rule in a calculating actuator corresponding to the merchant end; and/or the presence of a gas in the gas,
and when a request for changing the relation of the pricing rules sent by the merchant end is received, changing the relation between the pricing rules in a configuration file corresponding to the merchant end.
Taking fig. 2 as an example, the tenant and the tenant configuration are in a one-to-one correspondence relationship. Therefore, by using the method for processing the commodity information provided by the embodiment, when the merchant needs to increase or decrease the pricing rules and/or change the pricing rules, the system only needs to respond to the corresponding request instruction and correspondingly change the configuration file corresponding to the merchant. That is to say, after the merchant completes the configuration of the pricing rule information, the association relationship corresponding to the pricing rule information can still be changed according to the actual requirements. Meanwhile, other merchants are not affected by the change, and the main flow of the system is separated from the pricing rules, so that the maintenance cost in the process of using the commodity information processing method is reduced.
It should be noted that the above method embodiments are only examples, and various embodiments may be possible in specific implementation. Illustratively, referring to fig. 3, a flow chart illustrating a calculation of a payment amount for a commodity is shown, which may include:
and generating all possible pricing rule application sequences through a sorting algorithm according to the tenant configuration attribute (refer to fig. 2) and the incidence relation between the commodities selected by the user and the pricing rules.
And performing concurrent processing on all applicable sequences of the pricing rules through a concurrent task executor, and calculating the settlement amount in each pricing rule calculation sequence in parallel.
In the process of calculating the settlement amount in the calculation sequence of each pricing rule, the shared calculating unit (the function of the first calculating unit is as described above) corresponding to each pricing rule can be called in sequence according to the calculation sequence of the pricing rules through the shared grouping executor, and then the payment amount of the commodity can be calculated. In addition, the superposition grouping executor may sequentially invoke a superposition calculation unit (the function of which is the second calculation unit described above) corresponding to each pricing rule to calculate the payment amount of the commodity.
And when the calculation of the settlement amount corresponding to the calculation sequence of all the pricing rules is finished, acquiring a group with the minimum settlement amount as the final payment amount of the commodity selected by the user.
In a possible implementation manner, if there is an applicable condition limit in the pricing rules associated with the product selected by the user and the product does not currently satisfy the applicable condition, corresponding pricing rule prompting information may be generated for the user according to the applicable condition of the pricing rule, where the prompting information may include prompting information of the applicable condition of the pricing rule and content information of the pricing rule, for example, a 100-dollar applicable full 100 minus 5 pricing rule for pricing other products to reach a monetary threshold, and a gift is given.
Taking fig. 3 as an example, if the commodity selected by the user is associated with the pricing rule of the preferential purchase, when the payment amount of the commodity is calculated, the prompt calculation units in the corresponding prompt modules may be sequentially invoked to calculate the payment amount through the "preferential purchase prompt executor", so as to further push the prompt information of the pricing rule to the user, thereby facilitating to increase the payment rate of the user.
Fig. 4 is a diagram illustrating a product information processing apparatus according to an exemplary embodiment of the present disclosure, and as shown in fig. 4, the product information processing apparatus 400 includes:
the first determining module 401 is configured to determine at least one commodity selected by a user terminal on a shopping platform;
a second determining module 402, configured to determine, according to a preset association relationship between a commodity and a pricing rule, a plurality of pricing rules applicable to the at least one commodity;
a generating module 403, configured to generate each calculation order among the plurality of pricing rules determined by the second determining module through a sorting algorithm;
a calculation module 404, configured to calculate settlement amounts of the at least one commodity in parallel in each calculation order;
and the execution module 405 is configured to use a minimum value of the settlement amounts as the payment amount of the commodity.
The device can determine various pricing rules applicable to the commodities selected by the user through the preset incidence relation between the commodities and the pricing rules, so that all possible calculation sequences in the various pricing rules can be generated through the generation module, the settlement amount in each calculation sequence can be obtained through the calculation module in a parallel calculation mode, and the effects of improving the calculation efficiency and shortening the calculation time are finally achieved. Moreover, the calculation mode of all possible calculation sequences of the multiple pricing rules also enables the pricing rules to be utilized more comprehensively. In addition, the payment rate of the user is also improved by using the minimum value of the settlement amounts in the calculation orders as the payment amount of the commodity.
Optionally, the computing module 404 is configured to perform the following operations in parallel for each of the computing sequences:
and sequentially calculating each pricing rule in the calculation sequence, and when calculating each pricing rule except the last pricing rule in the calculation sequence, calculating the current pricing rule according to the condition that each commodity is applicable or not applicable to the current pricing rule until the calculation results of various conditions in the calculation sequence are obtained, and taking the minimum value in each calculation result as the settlement amount.
Optionally, the pricing rules include merchant pricing rules, where the merchant pricing rules are configured by a merchant on the shopping platform, and the shopping platform configures pricing rules corresponding to merchant ends respectively using a multi-tenant isolation technology.
Optionally, the association relationship includes a sharing relationship, and the sharing relationship between the commodities and the pricing rules means that multiple types of pricing rules can be applied to multiple commodities of the same type;
the second determining module 402, comprising:
the first determining submodule is used for determining a plurality of pricing rules which are applicable to a plurality of commodities and have sharing relation with the commodities when the user side selects the commodities of the same type; and/or the presence of a gas in the gas,
the association relation comprises a superposition relation, and the superposition relation between the commodities and the pricing rules means that the same commodity can be suitable for different types of pricing rules;
the second determining module 402, comprising:
and the second determining submodule is used for determining various pricing rules which can be suitable for each commodity selected by the user side and have a superposition relation with the commodity.
Optionally, the pricing rule information comprises priorities between pricing rules;
the generating module 403 includes:
and the generation submodule is used for generating each calculation sequence among the plurality of pricing rules through a sorting algorithm according to the priority.
Optionally, the computing module 404 is configured to, for a plurality of computing sequences, perform the following operations in parallel:
sequentially calling a first calculation unit corresponding to the pricing rule applicable to the commodities in the calculation module according to the calculation sequence to calculate the settlement amount of the commodities by a shared grouping executor for a plurality of commodities in the same commodity category;
and sequentially calling a second calculation unit corresponding to each pricing rule applicable to each commodity in the calculation module to calculate the settlement amount of the commodity by the superposition grouping actuator.
Optionally, the apparatus further comprises:
the adding module is used for adding the pricing rule into a configuration file corresponding to the merchant end when a pricing rule adding request sent by the merchant end is received, and adding a first calculating unit and/or a second calculating unit corresponding to the pricing rule into a calculating actuator corresponding to the merchant end; and/or the presence of a gas in the gas,
and the modification module is used for modifying the relationship between the pricing rules in the configuration file corresponding to the merchant terminal when receiving a request for modifying the pricing rule relationship sent by the merchant terminal.
It is to be noted that, in the above embodiments, for convenience and simplicity of description, the division of the functional units is illustrated, but the respective parts thereof are not necessarily essential to the present disclosure. For example, the first determining module 401 and the second determining module 402 may be independent functional modules or may be an integrated functional module. In addition, those skilled in the art should also know that in practical applications, the above function distribution can also be performed by different functional units according to needs, that is, the internal structure of the device is divided into different functional units to perform all or part of the above described functions. For the specific working process of the functional unit described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
The present disclosure also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the steps of the merchandise information processing method according to any of the above embodiments.
The present disclosure also provides an electronic device, comprising:
a memory having a computer program stored thereon;
a processor configured to execute the computer program in the memory to implement the steps of the product information processing method according to any of the above embodiments.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an electronic device 500 in accordance with an example embodiment. For example, the electronic device 500 may be provided as a server. Referring to fig. 5, the electronic device 500 comprises a processor 522, which may be one or more in number, and a memory 532 for storing computer programs executable by the processor 522. The computer programs stored in memory 532 may include one or more modules that each correspond to a set of instructions. Further, the processor 522 may be configured to execute the computer program to execute the article information processing method described above.
Additionally, the electronic device 500 may also include a power component 526 and a communication component 550, the power component 526 may be configured to perform power management of the electronic device 500, and the communication component 550 may be configured to enable communication, e.g., wired or wireless communication, of the electronic device 500. In addition, the electronic device 500 may also include input/output (I/O) interfaces 558. The electronic device 500 may operate based on an operating system stored in the memory 532, such as Windows Server, Mac OSXTM, UnixTM, LinuxTM, and the like.
In another exemplary embodiment, there is also provided a computer-readable storage medium including program instructions, which when executed by a processor, implement the steps of the above-described commodity information processing method. For example, the computer readable storage medium may be the memory 532 including program instructions executable by the processor 522 of the electronic device 500 to perform the merchandise information processing method described above.
In another exemplary embodiment, a computer program product is also provided, which contains a computer program executable by a programmable apparatus, the computer program having code portions for performing the above-mentioned article information processing method when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (10)

1. A commodity information processing method, characterized by comprising:
determining at least one commodity selected by a user side on a shopping platform;
determining a plurality of pricing rules applicable to the at least one commodity according to a preset incidence relation between the commodity and the pricing rules, and generating each calculation sequence among the pricing rules through a sequencing algorithm;
calculating settlement amounts of the at least one commodity in each calculation order in parallel;
and taking the minimum value of the settlement amounts as the payment amount of the commodity.
2. The method of claim 1, wherein said parallel computing settlement amounts for said at least one item in each of said computing sequences comprises:
performing the following operations in parallel for each of the calculation sequences:
and sequentially calculating each pricing rule in the calculation sequence, and when calculating each pricing rule except the last pricing rule in the calculation sequence, calculating the current pricing rule according to the condition that each commodity is applicable or not applicable to the current pricing rule until the calculation results of various conditions in the calculation sequence are obtained, and taking the minimum value in each calculation result as the settlement amount.
3. The method of claim 1, wherein the pricing rules comprise merchant pricing rules, wherein the merchant pricing rules are configured by merchants on the shopping platform, and wherein the shopping platform uses a multi-tenant isolation technique to configure pricing rules for respective merchant.
4. The method according to claim 1, wherein the association relationship comprises a sharing relationship, and the sharing relationship between the commodities and the pricing rules means that multiple types of pricing rules can be applied to multiple commodities of the same category;
the determining a plurality of pricing rules applicable to the at least one commodity according to the preset incidence relation between the commodity and the pricing rules comprises the following steps:
under the condition that a plurality of commodities of the same type are selected at the user side, a plurality of pricing rules which are applicable to the commodities and have a sharing relation with the commodities are determined; and/or the presence of a gas in the gas,
the association relation comprises a superposition relation, and the superposition relation between the commodities and the pricing rules means that the same commodity can be suitable for different types of pricing rules;
the determining a plurality of pricing rules applicable to the at least one commodity according to the preset incidence relation between the commodity and the pricing rules comprises the following steps:
and determining various pricing rules which can be applied to each commodity selected by the user side and have a superposition relation with the commodity.
5. The method of claim 1, wherein the pricing rule information includes a priority between pricing rules;
the generating each calculation order among the plurality of pricing rules through a sorting algorithm comprises:
generating each calculation order among the plurality of pricing rules by a sorting algorithm according to the priority.
6. The method of any one of claims 1-5, wherein said calculating in parallel a settlement amount for said at least one item in each of said calculation sequences comprises:
for a plurality of said calculation sequences, performing in parallel the following operations:
sequentially calling first calculation units corresponding to pricing rules applicable to the commodities in a calculation order to calculate settlement amount of the commodities aiming at a plurality of commodities of the same commodity category through a shared grouping actuator;
and sequentially calling a second calculation unit corresponding to each pricing rule applicable to each commodity to calculate the settlement amount of the commodity through the superposition grouping actuator.
7. The method of claim 6, further comprising:
when a pricing rule increasing request sent by a merchant end is received, adding a pricing rule in a configuration file corresponding to the merchant end, and adding a first calculating unit and/or a second calculating unit corresponding to the pricing rule in a calculating actuator corresponding to the merchant end; and/or the presence of a gas in the gas,
and when a request for changing the relation of the pricing rules sent by the merchant end is received, changing the relation between the pricing rules in a configuration file corresponding to the merchant end.
8. An article information processing apparatus characterized by comprising:
the first determining module is used for determining at least one commodity selected by the user side on the shopping platform;
the second determining module is used for determining a plurality of pricing rules applicable to the at least one commodity according to the preset incidence relation between the commodity and the pricing rules;
a generating module configured to generate each calculation order among the plurality of pricing rules determined by the second determining module through a ranking algorithm;
the calculation module is used for calculating settlement amount of the at least one commodity under each calculation sequence in parallel;
and the execution module is used for taking the minimum value in the settlement amount as the payment amount of the commodity.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to carry out the steps of the method of any one of claims 1 to 7.
CN201911053888.4A 2019-10-31 2019-10-31 Commodity information processing method and device, storage medium and electronic equipment Pending CN111222877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911053888.4A CN111222877A (en) 2019-10-31 2019-10-31 Commodity information processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911053888.4A CN111222877A (en) 2019-10-31 2019-10-31 Commodity information processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111222877A true CN111222877A (en) 2020-06-02

Family

ID=70827562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911053888.4A Pending CN111222877A (en) 2019-10-31 2019-10-31 Commodity information processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111222877A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488770A (en) * 2020-12-16 2021-03-12 广州华多网络科技有限公司 Transaction pricing control method and device, equipment and medium thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100022450A (en) * 2008-08-19 2010-03-02 주식회사 마이오일앤컴퍼니 Method for providing sale service about product of the other
CN106447315A (en) * 2016-08-26 2017-02-22 上海鸣泰信息科技股份有限公司 Transaction payment method based on cloud platform and transaction payment system thereof
CN107748985A (en) * 2017-11-07 2018-03-02 苏州比可网络科技有限公司 Network method of payment and network payment server
CN108460586A (en) * 2018-02-10 2018-08-28 深圳壹账通智能科技有限公司 A kind of amount of money preferential measure, device, terminal device and the storage medium of polymerization payment
CN109767260A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Bill preferential measure, device, equipment and storage medium based on integration payment
CN110097356A (en) * 2019-05-07 2019-08-06 苏州达家迎信息技术有限公司 A kind of method of payment, device, equipment and storage medium
US20190318374A1 (en) * 2018-04-16 2019-10-17 Ebay Korea Co., Ltd. Smart payment solution

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100022450A (en) * 2008-08-19 2010-03-02 주식회사 마이오일앤컴퍼니 Method for providing sale service about product of the other
CN106447315A (en) * 2016-08-26 2017-02-22 上海鸣泰信息科技股份有限公司 Transaction payment method based on cloud platform and transaction payment system thereof
CN107748985A (en) * 2017-11-07 2018-03-02 苏州比可网络科技有限公司 Network method of payment and network payment server
CN108460586A (en) * 2018-02-10 2018-08-28 深圳壹账通智能科技有限公司 A kind of amount of money preferential measure, device, terminal device and the storage medium of polymerization payment
US20190318374A1 (en) * 2018-04-16 2019-10-17 Ebay Korea Co., Ltd. Smart payment solution
CN109767260A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Bill preferential measure, device, equipment and storage medium based on integration payment
CN110097356A (en) * 2019-05-07 2019-08-06 苏州达家迎信息技术有限公司 A kind of method of payment, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
何钦铭: "《数据结构课程设计》", 30 August 2007, 浙江大学出版社 *
刘恒臣: "《通信网络与信息技术2008》", 31 August 2008, 辽宁科学技术出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112488770A (en) * 2020-12-16 2021-03-12 广州华多网络科技有限公司 Transaction pricing control method and device, equipment and medium thereof

Similar Documents

Publication Publication Date Title
Wang Capacitated assortment and price optimization under the multinomial logit model
CN111258773B (en) Service call flow information processing method and device and electronic equipment
CN110310170A (en) Order processing method, apparatus, electronic equipment and storage medium
CN111986003A (en) Generation method and device of commodity combination package, computer equipment and storage medium
CN105931067A (en) Coupon distribution method and device
CN107730328A (en) Net purchase method and net purchase device
CN107491958A (en) One kind is checked settlement method and terminal
CN108665358A (en) The method and apparatus of the multiple platforms of product information Rapid matching
CN111178810A (en) Method and apparatus for generating information
CN111144962A (en) Invoice issuing method and device based on e-commerce platform and e-commerce platform
CN111222877A (en) Commodity information processing method and device, storage medium and electronic equipment
US20180365605A1 (en) Supply chain simulation system and supply chain simulation method
CN111258772A (en) Service calling information processing method, device and system
CN106998314A (en) Account exchange method and device
CN109697658A (en) Order management method, device, electronic equipment and computer readable storage medium
CN110490748A (en) Item recommendation method and device based on order
US20020169661A1 (en) Virtual discount system
CN110531967B (en) Code generation method and code generation device
CN109146128A (en) Business data processing method, device and server
CN112184276A (en) Preferential recommendation method and device and storage medium
CN109522521A (en) A kind of data processing method, device and computer equipment
CN110428284A (en) A kind of cross-border logistics freight charges pricing method and its device
US20210272077A1 (en) Server
CN109978437A (en) Fresh seasonal vegetable supply chain monitoring system
CN113888340A (en) Docking processing method, device, equipment and storage medium for configured insurance products

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200602