CN115082119A - Data feedback method, data feedback device, electronic equipment, storage medium and program product - Google Patents

Data feedback method, data feedback device, electronic equipment, storage medium and program product Download PDF

Info

Publication number
CN115082119A
CN115082119A CN202210743329.1A CN202210743329A CN115082119A CN 115082119 A CN115082119 A CN 115082119A CN 202210743329 A CN202210743329 A CN 202210743329A CN 115082119 A CN115082119 A CN 115082119A
Authority
CN
China
Prior art keywords
feedback
factor
determining
variable
value
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.)
Granted
Application number
CN202210743329.1A
Other languages
Chinese (zh)
Other versions
CN115082119B (en
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.)
Guangdong Meiyun Zhishu Technology Co ltd
Original Assignee
Guangdong Meiyun Zhishu 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 Guangdong Meiyun Zhishu Technology Co ltd filed Critical Guangdong Meiyun Zhishu Technology Co ltd
Priority to CN202210743329.1A priority Critical patent/CN115082119B/en
Publication of CN115082119A publication Critical patent/CN115082119A/en
Application granted granted Critical
Publication of CN115082119B publication Critical patent/CN115082119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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
    • 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/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • 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/0234Rebates after completed purchase
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of data processing, and provides a data feedback method, a data feedback device, electronic equipment, a storage medium and a program product, wherein the method comprises the following steps: acquiring a feedback rule of the current activity; determining a value variable in the feedback rule, and determining a cashing factor based on the value variable; determining a variable value of the value variable under the current activity based on the redemption factor; determining a judgment result of a cashing condition in the feedback rule based on the variable value of the value variable under the current activity, and determining a cashing result of cashing content in the feedback rule; and determining a feedback result of the current activity based on the judgment result and the cashing result. The invention can flexibly configure the feedback policy, define different feedback policies in different feedback activities, improve the operation efficiency of feedback and reduce the operation cost of feedback.

Description

Data feedback method, data feedback device, electronic equipment, storage medium and program product
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data feedback method, an apparatus, an electronic device, a storage medium, and a program product.
Background
With the rapid development of social economy, the demand for the intellectualization of the electronic commerce system is higher and higher. In order to increase the sales volume of products, or inventory, or make new products, etc., merchants usually adopt a rebate process to increase the sales volume, and the rebate process needs to be realized by using a data feedback technology in an electronic commerce system.
Currently, determination of feedback results is achieved by setting various feedback rules in the system. However, various feedback rules are preset, and the value logic of the value variable in the feedback rules is limited, so that the supported service scene is limited; specifically, when the feedback policy changes, the redemption conditions in the feedback rules and the redemption results may be different, which makes it difficult to satisfy various feedback policies, while the feedback policies are usually different in different feedback activities, which makes it impossible to define different feedback policies in different feedback activities.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides a data feedback method, which can flexibly configure feedback policies, define different feedback policies in different feedback activities, improve the operation efficiency of feedback, and reduce the operation cost of feedback.
The invention also provides a data feedback device, an electronic device, a storage medium and a program product.
The data feedback method according to the embodiment of the first aspect of the invention comprises the following steps:
acquiring a feedback rule of the current activity;
determining a value variable in the feedback rule, and determining a cashing factor based on the value variable;
determining a variable value of the value variable under the current activity based on the redemption factor;
determining a judgment result of a cashing condition in the feedback rule based on the variable value of the value variable under the current activity, and determining a cashing result of cashing content in the feedback rule;
and determining a feedback result of the current activity based on the judgment result and the cashing result.
According to the data feedback method provided by the embodiment of the invention, the value variable in the feedback rule is abstracted into the cashing factor, and the variable value of the value variable under the current activity is obtained through the cashing factor, so that the same value variable has different variable values under different activities, namely the value logic of the value variable can be different along with the difference of the feedback activities, and the judgment result of the cashing condition and the judgment result of the cashing content are different along with the difference of the feedback activities, thereby satisfying various feedback policies, flexibly configuring the feedback policies, defining different feedback policies in different feedback activities, improving the feedback operation efficiency and reducing the feedback operation cost.
According to an embodiment of the present invention, the determining a redemption factor based on the value variable includes:
determining a first character string based on the value variable, wherein the first character string is used for representing the name of a cashing factor;
acquiring a cashing factor from a name-factor mapping relation based on the first character string;
and the name-factor mapping relation is used for acquiring a cashing factor of the object type corresponding to the name of the character string type.
According to one embodiment of the invention, the name-factor mapping relationship is determined based on the following steps:
determining a factor type corresponding to the value variable, and determining a factor constructor corresponding to the factor type;
constructing an instance based on the factor constructor, the feedback policy definition of the current activity and the feedback object of the current activity to obtain a factor instance;
and mapping the factor name of the value variable and the factor example to obtain the name-factor mapping relation.
According to an embodiment of the present invention, the determining the factor constructor corresponding to the factor type includes:
determining a factor constructor from a set of constructors based on the factor type;
wherein the constructor set comprises an order constructor and a Structured Query Language (SQL) constructor;
the order constructor is used for carrying out instance construction to obtain a factor instance object associated with the order based on the feedback policy definition and the feedback object;
the SQL builder is used for carrying out instance construction to obtain a factor instance object associated with the SQL statement based on the key-value pair determined by the SQL statement, and the SQL statement comprises a field corresponding to the feedback policy definition and a field corresponding to the feedback object.
According to an embodiment of the present invention, the SQL statement is determined based on the following steps:
acquiring a table selection instruction, and determining a target table based on the table selection instruction;
acquiring a field selection instruction, and determining a target field based on the field selection instruction;
acquiring an association table selection instruction, and determining an association table based on the association table selection instruction;
acquiring a query condition selection instruction, and determining a query condition based on the query condition selection instruction;
determining the SQL statement based on the target table, the target field, the association table, and the query condition.
According to one embodiment of the invention, the redemption factor stores field values corresponding to fields of the redemption factor in a key-value pair mapping manner.
According to an embodiment of the present invention, the determining, based on the variable value of the value variable under the current activity, the determination result of the redemption condition in the feedback rule includes:
determining a first variable in the redemption condition;
determining a variable value of the first variable based on a variable value of the value variable under the current activity;
and determining the judgment result of the cashing condition based on the variable value of the first variable.
According to an embodiment of the present invention, the determining a redemption result of the redemption content in the feedback rule comprises:
determining that the redemption content includes an expression, determining a second variable in the redemption content;
determining a variable value of the second variable based on the variable value of the value variable under the current activity;
determining a redemption result for the redeemed content based on a variable value of the second variable;
and determining that the cashing content does not comprise an expression, and determining the cashing content as a cashing result.
The data feedback device according to the second aspect of the invention comprises:
the rule obtaining module is used for obtaining the feedback rule of the current activity;
the factor determination module is used for determining a value variable in the feedback rule and determining a cashing factor based on the value variable;
a variable determination module, configured to determine, based on the redemption factor, a variable value of the value variable in the current activity;
a result determining module, configured to determine, based on the variable value of the value variable under the current activity, a determination result of a redemption condition in the feedback rule, and determine a redemption result of redemption content in the feedback rule;
and the feedback determining module is used for determining the feedback result of the current activity based on the judgment result and the cashing result.
An electronic device according to an embodiment of the third aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the data feedback method as described in any of the above when executing the program.
A non-transitory computer-readable storage medium according to an embodiment of the fourth aspect of the invention, having stored thereon a computer program which, when executed by a processor, implements the data feedback method as described in any of the above.
A computer program product according to an embodiment of the fifth aspect of the invention comprises a computer program which, when executed by a processor, implements the data feedback method as described in any of the above.
One or more technical solutions in the embodiments of the present invention have at least one of the following technical effects:
the value variable in the feedback rule is firstly abstracted into the cashing factor, and then the variable value of the value variable under the current activity is obtained through the cashing factor, so that the different variable values of the same value variable under different activities are realized, namely, the value logic of the value variable can be different along with the difference of the feedback activities, and further, the judgment result of the cashing condition and the judgment result of the cashing content are different along with the difference of the feedback activities, so that various feedback policies are met, the feedback policies can be flexibly configured, different feedback policies are defined in different feedback activities, the feedback operation efficiency is improved, and the feedback operation cost is reduced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data feedback method according to an embodiment of the present invention;
FIG. 2 is a second flowchart illustrating a data feedback method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a data feedback apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With the rapid development of social economy, the demand for intellectualization of the e-commerce system is increasing, and based on this, flexible configuration of the feedback policy needs to be realized. In order to increase the sales volume of the products, or to clear inventory, or make new products, etc., merchants often adopt a plurality of promotion modes, and a rebate mode is one of the main promotion modes. The rebate process is typically employed to increase sales and, therefore, the need to support the feedback function on the e-commerce system.
Currently, according to an operation strategy studied, various feedback rules are configured in a system, so that the determination of a feedback result is realized. However, various feedback rules are preset, and the value logic of the value variable in the feedback rules is limited, so that the supported service scene is limited; specifically, when the feedback policy changes, the cashing condition in the feedback rule and the result of the cashing content may be different, which makes it difficult to satisfy various feedback policies; if each feedback policy is customized and developed, the feedback policies are frequently changed due to different promotion purposes of merchants in different operation stages, and therefore, the system responsible for supporting is challenged if the feedback policies are customized and developed every time. Therefore, in a system, the feedback policy cannot be flexibly configured, i.e. different feedback policies cannot be defined in different feedback activities.
In view of the above problems, the present invention proposes the following embodiments. The data feedback method provided by the embodiment of the application is described below with reference to the drawings. The execution subject of the data feedback method can be a data feedback device, or a server, or can also be an e-commerce system, or can also be a terminal of a user, including but not limited to a mobile phone, a tablet computer, a PC terminal, a vehicle-mounted terminal, a household smart appliance, and the like.
The data feedback method provided by the embodiment of the invention can be applied to various feedback scenes, such as a rebate scene, an information feedback scene, a result query scene and the like. When the method is applied to a rebate scene, the feedback activity is a rebate activity, the feedback rule is a rebate rule, the cashing content is reward content, the cashing result is a reward result, the feedback result is a rebate result, the feedback policy definition is a rebate policy definition, and the feedback object is a rebate object.
Fig. 1 is a schematic flow chart of a data feedback method according to an embodiment of the present invention, and as shown in fig. 1, the data feedback method includes:
step 110, obtaining the feedback rule of the current activity.
Here, the current activity is a current feedback activity, which has a corresponding feedback policy definition. The feedback policy definition may be custom configured by the user, in particular, by the user entering the feedback policy definition.
When the method is applied to a rebate scenario, the rebate policy definition may include, but is not limited to: commodity information, order information, time information, statistical dimension information, and the like.
The commodity information is used for characterizing commodities selected in the feedback policy, that is, characterizing which commodities need to be counted, and may be generally characterized by a commodity id. The order information is used to characterize the orders selected in the feedback policy, i.e. to characterize which orders need to be counted, which can typically be characterized by the order id. The time information is used to characterize the time range selected in the feedback policy, i.e. to characterize which time period needs to be counted, for example, the time range is the current period, the validity period of the current activity is counted, and the time range is the year, the year is counted. The statistical dimension information is used for characterizing the statistical dimension selected in the feedback policy, i.e. characterizing the required statistical sales or sales, etc.
Here, the feedback rules are used to define what redemption content is obtained under what conditions are met. The feedback rules include redemption conditions and redemption content. The redemption condition is used to define a conditional formula that the value variable needs to satisfy, for example, the current sales amount is greater than 5000, and the current sales amount is the value variable. The cashing content is used for defining feedback content under the condition that the cashing condition is met, and the feedback content can be characterized by a calculation formula or a constant value, wherein the calculation formula is for example current sales value 0.05, and the constant value is for example coupons, goods and the like.
It should be noted that a current activity may correspond to one or more feedback rules.
And 120, determining a value variable in the feedback rule, and determining a cashing factor based on the value variable.
Here, a value variable is a parameter whose value can be changed, i.e., a parameter that can be changed under different policy definitions (under different activities). For example, the value variables are sales, current sales, annual sales, total orders, target sales, sales orders, current orders, and so on.
For example, if the redemption condition in the feedback rule is that the total order amount is >100000, and the redemption content in the feedback rule is that the total order amount is 0.1, the value variable in the feedback rule is determined to be the total order amount. And if the cashing condition in the feedback rule is order total > target sales, and the cashing content in the feedback rule is (order total-target sales) × 0.1, determining the value variables in the feedback rule as order total and target sales. And if the cashing condition in the feedback rule is that the sales unit quantity is 10000& & the sales unit quantity is <100000, and the cashing content in the feedback rule is that the sales unit quantity is 0.1, determining that the value variable in the feedback rule is the sales unit quantity. And if the cashing condition in the feedback rule is that the single sales amount > -100000 and the cashing content in the feedback rule is that the single sales amount is 0.2, determining the value variable in the feedback rule as the single sales amount.
It should be noted that one feedback rule may include 1 or more value variables. One value variable corresponds to one redemption factor.
Here, the redemption factor is a factor corresponding to the current activity, and the redemption factor is an instance object corresponding to the value variable. Specifically, the value variable is abstracted into a class (class), and then the class is instantiated to obtain the redemption factor, wherein the class corresponds to a plurality of instantiation objects, namely the class corresponds to a plurality of redemption factors, and the plurality of redemption factors belong to the class, namely the class corresponds to different redemption factors under different policy definitions (under different activities). For example, the value variable is a sales amount, the class corresponding to the value variable is a factor class, but the factor class is abstract, and what sales amount is not known from the factor class, and based on this, the factor class is instantiated to obtain a specific redemption factor, and the redemption factor is a sales amount object that can represent specific characteristics of the sales amount, for example, the sales amount object is a sales order amount of the commodity a within 1/4/20/2022, or the sales amount object is a sales order amount of the commodity B within 1/5/20/2022/5/20/5/1.
In a specific embodiment, a value variable in the feedback rule is determined, the value variable is declared to obtain a declaration variable, then the declaration variable is assigned, and then the declaration variable after being assigned is determined to be a cashing factor. For example, the value variable is a product a current-period order, at this time, the product a current-period order is declared to limit the type of the product a current-period order to be a Factor class, that is, a Factor product a current-period order, and then, the value variable is assigned, that is, the Factor product a current-period order is context.
And step 130, determining a variable value of the value variable under the current activity based on the cashing factor.
Here, the redemption factor is an instance object corresponding to the current activity, and based on this, a variable value corresponding to the value variable under the current activity can be determined based on the redemption factor.
In one embodiment, a field corresponding to a value variable in the redemption factor is determined, and then the value of the variable is obtained via the field. For example, if the redemption factor is factor _01 and the field corresponding to the value variable is the commodity a sales volume in the current period, the variable value can be obtained through the factor _01 and the commodity a sales volume in the current period.
It should be noted that, one redemption factor determines the variable value of one value variable under the current activity.
And 140, determining a judgment result of a cashing condition in the feedback rule based on the variable value of the value variable under the current activity, and determining a cashing result of cashing content in the feedback rule.
Specifically, the variable value is substituted into the redemption condition to obtain a judgment result, if the redemption content has a value variable, the variable value is substituted into the redemption content to obtain a redemption result, and if the redemption content does not have the value variable, the redemption content is directly determined as the redemption result.
For example, if the redemption condition in the feedback rule is that the total order amount is >100000 and the redemption content in the feedback rule is that the total order amount is 0.1, the variable value of the total order amount under the current activity is substituted into the redemption condition to obtain the determination result of the redemption condition, and the variable value of the total order amount under the current activity is substituted into the redemption content to obtain the redemption result of the redemption content. And if the cashing condition in the feedback rule is the total order amount > the target sales amount, and the cashing content in the feedback rule is (total order amount-target sales amount) × 0.1, substituting the variable value of the total order amount under the current activity and the variable value of the target sales amount under the current activity into the cashing condition to obtain a judgment result of the cashing condition, and substituting the variable value of the total order amount under the current activity and the variable value of the target sales amount under the current activity into the cashing content to obtain a cashing result of the cashing content. And if the redemption condition in the feedback rule is that the sales unit quantity is 10000& & the sales unit quantity is <100000, and the redemption content in the feedback rule is that the sales unit quantity is 0.1, substituting the variable value of the sales unit quantity under the current activity into the redemption condition to obtain a judgment result of the redemption condition, and substituting the variable value of the sales unit quantity under the current activity into the redemption content to obtain a redemption result of the redemption content. If the cashing content in the feedback rule is 1 coupon, determining 1 coupon as the cashing result.
It should be noted that one feedback rule includes 1 redemption condition, and one feedback rule includes 1 redemption content or a plurality of redemption contents.
In one embodiment, multiple combinations of redemption conditions and redemption results can be configured in an activity to achieve the effect of a step feedback.
In one embodiment, redemption conditions and redemption content may be characterized by expressions.
Operators that the expression of the redemption condition can support include, but are not limited to: +, -,/, <, |! ═ The >! . The expression is generally a certain attribute of the redemption factor on the left, and is generally a number on the right, or may be another attribute of the redemption factor, and the expression of the redemption condition is as follows: product a current order sales >50000, or product a year order sales + product B year order sales > product a year order sales x 2.
And 150, determining a feedback result of the current activity based on the judgment result and the cashing result.
Here, the feedback result includes 1 or more cashing results, and the number of the cashing results is determined according to the judgment result.
Specifically, if the current activity only corresponds to 1 feedback rule, determining a feedback result based on a judgment result and a plurality of cashing results; and if the current activity corresponds to a plurality of feedback rules, determining a feedback result based on a plurality of judgment results and a plurality of cashing results.
More specifically, when the judgment result is that the condition is satisfied, the cashing result corresponding to the condition is determined, and the cashing result is added to the feedback result. For example, if the redemption condition in the feedback rule is >100000, the redemption content in the feedback rule is 0.1, and the variable value of the total order under the current activity is 200000, the determination result of the redemption condition is that the condition is satisfied, and the redemption content is 20000, at this time, 20000 is added to the feedback result.
In one embodiment, the feedback results are characterized in a List format, i.e., the redemption results are stored in a List (List) format. In addition, the feedback result can be obtained through the context object. Further, the feedback result may be stored in a database.
The data feedback method provided by the embodiment of the invention obtains the feedback rule of the current activity; determining a value variable in the feedback rule, and determining a cashing factor based on the value variable; determining a variable value of the value variable under the current activity based on the cashing factor; determining a judgment result of a cashing condition in the feedback rule based on a variable value of the value variable under the current activity, and determining a cashing result of cashing content in the feedback rule; and determining a feedback result of the current activity based on the judgment result and the cashing result. By the mode, the value variable in the feedback rule is firstly abstracted into the cashing factor, and then the variable value of the value variable under the current activity is obtained through the cashing factor, so that different variable values of the same value variable under different activities are realized, namely, the value logic of the value variable can be different along with the difference of the feedback activities, and further, the judgment result of the cashing condition and the judgment result of the cashing content are different along with the difference of the feedback activities, so that various feedback policies are met, the feedback policies can be flexibly configured, different feedback policies are defined in different feedback activities, the feedback operation efficiency is improved, and the feedback operation cost is reduced.
Based on the above embodiment, in the method, in the step 120, determining the redemption factor based on the value variable includes:
determining a first character string based on the value variable, wherein the first character string is used for representing the name of a cashing factor;
and acquiring a cashing factor from the name-factor mapping relation based on the first character string.
And the name-factor mapping relation is used for acquiring a cashing factor of the object type corresponding to the name of the character string type.
Here, the first character string is a character string type, for example, the first character string may be a product a current order, a commodity a current order, a current sales amount, a annual sales amount, a sales total, an order total, a target sales amount, a sales order amount, a current order, or the like.
Specifically, a first character string corresponding to the value variable is determined from the character string set. The character string set can be set according to actual requirements, and the character string set can include but is not limited to: product A current order, commodity A current order, current sales, annual sales, total order, target sales, sales order, current order, and the like. It is understood that all the strings in the string set may determine the corresponding redemption factor in the name-factor mapping relationship.
For example, if the value variable is the product a current-stage order, the first character string may be determined as the product a current-stage order. And if the value variable is the sales order quantity of the commodity A in the activity period, the first character string can be determined as the current-period order of the commodity A.
Here, the name-factor mapping relationship includes a redemption factor corresponding to each factor name, that is, includes a redemption factor corresponding to each character string.
In one embodiment, the name-factor mapping relationship may be characterized by Mqp (String, Object), i.e., the factor name is characterized by a String (String) and the redemption factor is characterized by an Object (Object).
In one embodiment, the name-factor mapping relationship may be obtained through a context object.
According to the data feedback method provided by the embodiment of the invention, the cashing factor is determined from the name-factor mapping relation in the manner, and the name-factor mapping relation is predetermined, so that compared with the instantiation process when the cashing factor is required to be used, the example construction step of the cashing factor can be carried out before, thereby reducing the time and resources required by the example and further improving the feedback efficiency.
Based on any of the above embodiments, fig. 2 is a second schematic flow chart of the data feedback method provided by the embodiment of the present invention, as shown in fig. 2, in the method, the name-factor mapping relationship is determined based on the following steps:
step 210, determining a factor type corresponding to the value variable, and determining a factor constructor corresponding to the factor type.
Here, one factor type corresponds to one factor constructor. The type of the factor type and the type of the factor constructor can be set according to actual needs. It should be noted that one value variable corresponds to one factor type, and different value variables may correspond to the same factor type.
For example, if the factor type is an order factor type, then the factor builder is an order builder. The order constructor is used for carrying out instance construction to obtain a factor instance object associated with the order based on the feedback policy definition and the feedback object. If the factor type is a Structured Query Language (SQL) factor type, then the factor constructor is a SQL constructor. The SQL builder is used for carrying out instance construction to obtain a factor instance object associated with the SQL statement based on the key-value pair determined by the SQL statement, wherein the SQL statement comprises a field corresponding to the feedback policy definition and a field corresponding to the feedback object. Of course, other factor types may also be included, and are not described in detail herein.
Step 220, based on the factor constructor, the feedback policy definition of the current activity and the feedback object of the current activity, performing instance construction to obtain a factor instance.
Specifically, the currently active feedback policy definition and the currently active feedback object are taken as the incoming parameters of the factor constructor, and then the factor instance is obtained by performing instance construction based on the factor constructor. More specifically, a factor instance construction method of the factor constructor is called, a currently active feedback policy definition and a currently active feedback object are transmitted to the factor instance construction method, and instance construction is carried out to obtain a factor instance.
In one embodiment, suppose FactorFetcher is a factor constructor, which is a factory class that is used to construct factor instances. The FactorFetcher class may include two methods, where the first method is List < Parameter > configParams (), and the second method is Factor fetch (Map params, Context ctx).
Wherein different factor constructors may require different parameters when constructing a factor instance, so all parameters (including parameter name and parameter type) required by the factor constructor are defined in the first method. Parameter is used to characterize the Parameter metadata needed by FactorFetcher when constructing a factor instance, and contains fields of two string types, name (Parameter name) and type (Parameter type).
Wherein the second method is used to obtain the factor instances. The method receives two parameters, params is a parameter supported by the factor constructor configured at the front end by a user, the parameter can be characterized by a mapping relation, specifically can be characterized in a key-value pair (key-value) manner, ctx is a current context object, and the context object ctx comprises a feedback policy definition of current activity and a feedback object of current activity.
Here, the currently active feedback policy definition may include, but is not limited to: commodity information, order information, time information, statistical dimension information, and the like.
The commodity information is used to characterize the commodities selected in the feedback policy, that is, to characterize which commodities need to be counted, and it may be generally characterized by a commodity id, for example, it may be characterized by a string array.
The order information is used to characterize the orders selected in the feedback policy, i.e. to characterize which orders need to be counted, which can be generally characterized by an order id, for example, which can be characterized by a string array.
The time information is used to characterize the time range selected in the feedback policy, that is, to characterize which time period needs to be counted, for example, the time range is the current period, and then the validity period of the current activity is counted, and the time range is the year, and then the year is counted, for example, it may be characterized by a character string.
The statistical dimension information is used to characterize the statistical dimension selected in the feedback policy, that is, characterize the required statistical sales volume or sales amount, etc., and for example, it may be characterized by a string array.
Here, the currently active feedback object may include, but is not limited to, dealer information for which feedback is currently to be calculated, organization information for the current user, and so forth.
In one embodiment, a FactorFetcherRegistry class is constructed for use as a registry of factor builders for registering and retrieving each type of factor builder. The FactorFetcherRegistry class may include a register (type, clazz) method for registering each type of factor constructor, a getFetcher (type) method for acquiring each type of factor constructor, a type for characterizing factor types, and a clazz for characterizing factor constructor.
And step 230, mapping the factor name of the value variable and the factor instance to obtain the name-factor mapping relationship.
Here, the factor name is a character string type, and for example, the factor name may be a product a current order, a commodity a current order, a current sales amount, an annual sales amount, a total sales amount, an order total amount, a target sales amount, a sales order amount, a current order, or the like.
Specifically, the factor name corresponding to the value variable is determined from the name set. The name set may be set according to actual requirements, and the name set may include, but is not limited to: product A current order, commodity A current order, current sales, annual sales, total order, target sales, sales order, current order, and the like.
For example, if the value variable is the product a current order, the factor name can be determined as the product a current order. And the value variable is the sales order quantity of the commodity A in the activity period, and the factor name can be determined as the current order of the commodity A.
Here, the name-factor mapping relationship includes a factor instance (redemption factor) corresponding to each factor name, that is, includes a factor instance corresponding to each character string.
In one embodiment, the name-factor mapping relationship may be characterized by Mqp (String, Object), i.e., the factor name is characterized by a String (String) and the factor instance (redemption factor) is characterized by an Object (Object). In an embodiment, the factor name and the factor instance may be inserted into the context object to obtain the name-factor mapping relationship through the context object, for example, the factor name and the factor instance are inserted into the context object by use of put (key, value), that is, the factor name is used as key, the factor instance is used as value, and get (key) is used to obtain the factor instance corresponding to the factor name.
According to the data feedback method provided by the embodiment of the invention, different factor types have different factor constructors through the mode, so that the factor examples are constructed based on the different factor constructors, more personalized requirements can be met, and the flexibility of feedback policy configuration is further improved.
In any of the above embodiments, in step 210, the determining a factor constructor corresponding to the factor type includes:
determining a factor constructor from a set of constructors based on the factor type;
wherein the constructor set comprises an order constructor and a Structured Query Language (SQL) constructor;
the order constructor is used for carrying out instance construction to obtain a factor instance object associated with the order based on the feedback policy definition and the feedback object;
the SQL builder is used for carrying out instance construction to obtain a factor instance object associated with the SQL statement based on the key-value pair determined by the SQL statement, and the SQL statement comprises a field corresponding to the feedback policy definition and a field corresponding to the feedback object.
Here, the order builder is responsible for calculating order-related statistics such as sales volume, sales, etc.
In one embodiment, suppose FactorFetcher is a factor constructor, which is a factory class that is used to construct factor instances. The FactorFetcher class may include two methods, where the first method is List < Parameter > configParams (), and the second method is Factor fetch (Map params, Context ctx). Wherein different factor constructors may require different parameters when constructing a factor instance, so all parameters (including parameter name and parameter type) required by the factor constructor are defined in the first method. Parameter is used to characterize the Parameter metadata needed by FactorFetcher when constructing a factor instance, and contains fields of two string types, name (Parameter name) and type (Parameter type). Wherein the second method is used to obtain the factor instances. The method receives two parameters, params is a parameter supported by the factor constructor configured at the front end by a user, the parameter can be characterized by a mapping relation, specifically can be characterized in a key-value pair (key-value) manner, ctx is a current context object, and the context object ctx comprises a feedback policy definition of current activity and a feedback object of current activity.
Based on the FactorFetcher class, the order builder may be an OrderFetcher class that inherits the FactorFetcher class.
The Factor fetch () method of the OrderFetcher class may include, but is not limited to, the following parameters: string [ ] productive IDs, String range, String [ ] dimensions, and the like.
Among other things, String [ ] productive ids is used to characterize the goods selected in the feedback policy, i.e., what goods need to be counted, which can generally be characterized by a good id. String [ ] productIds is also used to characterize the orders selected in the feedback policy, i.e., to characterize which orders need to be counted, which can generally be characterized by the order id. String range is used to characterize the time range selected in the feedback policy, i.e. to characterize which time period needs to be counted, for example, the time range is current time, then the validity period of the current activity is counted, and the time range is year, then the year is counted, and its selectable value is activity or year. String [ ] dimensions are used to characterize the statistical dimension selected in the feedback policy, i.e. to characterize the required statistical sales or sales etc., e.g. if dimensions [ "count" ]isspecified, then the key of "sales (count)" is valued, the key of "sales" is not valued, only if dimensions [ "count", "amount" ]isspecified, then the key of "sales" is valued, and the key of "sales (amount)" is also valued.
Based on the FactorFetcher class, the SQL builder may be a SqlSourceFetcher class that inherits the FactorFetcher class.
The Factor fetch () method of the SqlSourceFetcher class can determine an import parameter through a key-value pair (key-value) determined by an SQL statement, and then perform instance construction to obtain a Factor instance object.
The SQL statement comprises a field corresponding to the feedback policy definition and a field corresponding to the feedback object, and then a plurality of key value pairs are determined, wherein the plurality of key value pairs comprise field values corresponding to the fields.
In one embodiment, placeholders are supported in the SQL statement, such as the placeholder # ctx, which represents the current context object through which other fields, such as activity and customer, can be accessed. Where any fields in the feedback policy definition, such as activity start time, end time, participating items, etc., may be accessed via activity. The customer is used to characterize which customer's feedback is currently being computed, and any fields to the customer, such as customer id, customer level, etc., are accessible by the customer.
Here, the SQL statement may be input by user customization, or selected by a user.
In an embodiment, the constructor set may further include more custom constructors, so that a new factor constructor may be expanded by secondary development, and the custom factor constructor may be implemented, thereby satisfying more individual requirements.
According to the data feedback method provided by the embodiment of the invention, in the manner, the factor constructor comprises the order constructor and the SQL constructor so as to respectively realize different instantiation requirements; meanwhile, the SQL sentence can be flexibly defined, so that the value logic of the value variable can be flexibly defined, different variable values of the same value variable under different activities are realized, namely the value logic of the value variable can be different along with the difference of feedback activities, and further the judgment result of the cashing condition and the judgment result of the cashing content are different along with the difference of the feedback activities, so that various feedback policies are met, the feedback policies can be flexibly configured, different feedback policies are defined in different feedback activities, the feedback operation efficiency is improved, and the feedback operation cost is reduced.
Based on any of the embodiments, in the method, the SQL statement is determined based on the following steps:
acquiring a table selection instruction, and determining a target table based on the table selection instruction;
acquiring a field selection instruction, and determining a target field based on the field selection instruction;
acquiring an association table selection instruction, and determining an association table based on the association table selection instruction;
acquiring a query condition selection instruction, and determining a query condition based on the query condition selection instruction;
determining the SQL statement based on the target table, the target field, the association table, and the query condition.
Here, it is considered that a general user is not familiar with the syntax of SQL and the structure of the data table of the database, so that more friendly functions can be designed at the front end for the user to operate, that is, SQL statements are determined by the table selection instruction, the field selection instruction, the association table selection instruction and the query condition selection instruction.
Here, the table selection instruction may be triggered by the user to cause the user to select the target table. The target table is a target data table, namely, a data table which needs to be inquired is determined.
Here, the field selection instruction may be triggered by the user to cause the user to select the target field. The target field is used for determining the field needing to be queried, and the target field can comprise 1 or more.
Here, the association table selection instruction may be triggered by the user to cause the user to select the association table. The association table is an associated data table, i.e. an association table determined to need to be queried, and may include 0, 1 or more.
Here, the query condition selection instruction may be triggered by the user to cause the user to select the query condition.
According to the data feedback method provided by the embodiment of the invention, the user can obtain the SQL sentence on the interface by self-defining in the above mode, and meanwhile, the user does not need to be familiar with the SQL grammar, and more friendly operation can be provided by selecting the instruction, so that the use cost of the user is reduced, and the use experience of the user is improved.
According to any one of the above embodiments, the redemption factor stores field values corresponding to fields of the redemption factor in a key-value pair mapping manner.
Here, the key-value pair mapping may be Map mapping. In one embodiment, the key-value pair mapping may be in the form of a Map < String, Object >, i.e., the field of the redemption factor is a String type and the field value is an Object type.
It should be noted that, the redemption factor is an Object type, and based on this, the redemption factor may have its own field, so that the class corresponding to the redemption factor may implement a Map interface, and specifically, may implement a Map < String, Object > interface, so that the corresponding field value may be queried through the specified field, that is, the field value corresponding to the field is obtained through a get ("field") method.
According to the data feedback method provided by the embodiment of the invention, the cashing factor stores the field value corresponding to the field of the cashing factor in a key value-to-value mapping mode, so that the field value corresponding to the field can be quickly acquired, the variable value of the value variable can be quickly acquired, and the feedback efficiency is finally further improved.
Based on any of the above embodiments, in this method, in the step 140, determining a determination result of a redemption condition in the feedback rule based on a variable value of the value variable in the current activity includes:
determining a first variable in the redemption condition;
determining a variable value of the first variable based on a variable value of the value variable under the current activity;
and determining the judgment result of the cashing condition based on the variable value of the first variable.
Here, the first variable is a parameter whose value may change, i.e., a parameter that may change under different policy definitions (under different activities). For example, the first variable is sales volume, current sales volume, annual sales volume, sales total, order total, target sales volume, sales order volume, current order, and the like.
For example, if the redemption condition in the feedback rule is the order total >100000, then the first variable is determined to be the order total. If the redemption condition in the feedback rule is order total > target sales, the first variable is determined to be order total and target sales.
It should be noted that a redemption condition may include 1 or more first variables. And a first variable corresponds to a cashing factor, and based on the result, the variable value of the value variable under the current activity definitely comprises the variable value corresponding to the first variable.
Specifically, the variable value of the first variable is substituted into the first variable in the redemption condition to obtain the determination result.
According to the data feedback method provided by the embodiment of the invention, through the manner, support is provided for determining the judgment result of the cashing condition, and the judgment result of the cashing condition is different along with the difference of feedback activities, so that various feedback policies are met, the feedback policies can be flexibly configured, different feedback policies are defined in different feedback activities, the feedback operation efficiency is improved, and the feedback operation cost is reduced.
Based on any of the above embodiments, in the method, in the step 140, the determining a redemption result of the redeemed content in the feedback rule includes:
determining that the redemption content includes an expression, determining a second variable in the redemption content;
determining a variable value of the second variable based on the variable value of the value variable under the current activity;
determining a redemption result for the redeemed content based on a variable value of the second variable;
and determining that the cashing content does not comprise an expression, and determining the cashing content as a cashing result.
Here, the redemption content may be classified into various types, for example, into money return points, customer points, coupons, goods, and the like. It should be noted that not all redemption content of a redemption type includes an expression, e.g., no expression is required for a coupon type redemption content.
Specifically, for the cashing content needing the expression, a second variable in the expression needs to be determined, and then a variable value of the second variable is determined; for the redemption content without the expression, the variable value does not need to be determined, and the redemption content can be directly determined as the redemption result.
For example, the expression may be product a annual order sales 10, or product a current order sales 0.01+ product B current order sales 0.02.
Here, the second variable is a parameter whose value may change, i.e., a parameter that may change under different policy definitions (under different activities). For example, the second variable is sales volume, current sales volume, annual sales volume, total orders volume, target sales volume, sales order volume, current orders, and the like.
It should be noted that one redemption content may include 1 or more second variables. And a second variable corresponds to a cashing factor, and based on the result, the variable value of the value variable under the current activity definitely comprises the variable value corresponding to the second variable.
Specifically, the variable value of the second variable is substituted into the second variable in the redemption content to obtain the redemption result.
In one embodiment, redemption content for certain redemption types requires additional information, such as redemption of the goods, requiring additional specification of the id, name of the goods; redemption of a coupon type requires the designation of a coupon id.
According to the data feedback method provided by the embodiment of the invention, support is provided for confirming the cashing result of the cashing content through the mode, so that the cashing result of the cashing content is different along with different feedback activities, various feedback policies are met, the feedback policies can be flexibly configured, different feedback policies are defined in different feedback activities, the feedback operation efficiency is improved, and the feedback operation cost is reduced.
In an actual application scenario, when a client has a personalized feedback policy requirement, the feedback policy can be configured in the system by itself, and the feedback activity is quickly brought online without a system provider, so that the feedback operation efficiency is improved, and the feedback operation cost is reduced.
The data feedback device provided by the present invention is described below, and the data feedback device described below and the data feedback method described above may be referred to correspondingly.
Fig. 3 is a schematic structural diagram of a data feedback apparatus according to an embodiment of the present invention, and as shown in fig. 3, the data feedback apparatus includes:
a rule obtaining module 310, configured to obtain a currently active feedback rule;
a factor determining module 320, configured to determine a value variable in the feedback rule, and determine a redemption factor based on the value variable;
a variable determining module 330, configured to determine, based on the redemption factor, a variable value of the value variable in the current activity;
a result determining module 340, configured to determine, based on the variable value of the value variable under the current activity, a determination result of a redemption condition in the feedback rule, and determine a redemption result of redemption content in the feedback rule;
a feedback determining module 350, configured to determine a feedback result of the current activity based on the determination result and the redemption result.
The data feedback device provided by the embodiment of the invention obtains the feedback rule of the current activity; determining a value variable in the feedback rule, and determining a cashing factor based on the value variable; determining a variable value of the value variable under the current activity based on the cashing factor; determining a judgment result of a cashing condition in the feedback rule based on a variable value of the value variable under the current activity, and determining a cashing result of cashing content in the feedback rule; and determining a feedback result of the current activity based on the judgment result and the cashing result. By the mode, the value variable in the feedback rule is firstly abstracted into the cashing factor, and then the variable value of the value variable under the current activity is obtained through the cashing factor, so that different variable values of the same value variable under different activities are realized, namely, the value logic of the value variable can be different along with the difference of the feedback activities, and further, the judgment result of the cashing condition and the judgment result of the cashing content are different along with the difference of the feedback activities, so that various feedback policies are met, the feedback policies can be flexibly configured, different feedback policies are defined in different feedback activities, the feedback operation efficiency is improved, and the feedback operation cost is reduced.
Based on any of the above embodiments, the factor determination module 320 is configured to:
determining a first character string based on the value variable, wherein the first character string is used for representing the name of a cashing factor;
acquiring a cashing factor from a name-factor mapping relation based on the first character string;
and the name-factor mapping relation is used for acquiring a cashing factor of the object type corresponding to the name of the character string type.
Based on any embodiment above, the apparatus further comprises:
the type determining module is used for determining the factor type corresponding to the value variable and determining the factor constructor corresponding to the factor type;
the instance construction module is used for constructing instances based on the factor constructor, the feedback policy definition of the current activity and the feedback object of the current activity to obtain factor instances;
and the mapping processing module is used for mapping the factor name of the value variable and the factor instance to obtain the name-factor mapping relation.
Based on any of the above embodiments, the type determining module is further configured to:
determining a factor constructor from a set of constructors based on the factor type;
wherein the constructor set comprises an order constructor and a Structured Query Language (SQL) constructor;
the order constructor is used for carrying out instance construction to obtain a factor instance object associated with the order based on the feedback policy definition and the feedback object;
the SQL builder is used for carrying out instance construction to obtain a factor instance object associated with the SQL statement based on the key-value pair determined by the SQL statement, and the SQL statement comprises a field corresponding to the feedback policy definition and a field corresponding to the feedback object.
Based on any embodiment above, the apparatus further comprises:
the instruction acquisition module is used for acquiring a table selection instruction and determining a target table based on the table selection instruction;
the instruction acquisition module is also used for acquiring a field selection instruction and determining a target field based on the field selection instruction;
the instruction acquisition module is further used for acquiring an association table selection instruction and determining an association table based on the association table selection instruction;
the instruction acquisition module is also used for acquiring a query condition selection instruction and determining a query condition based on the query condition selection instruction;
and the statement determining module is used for determining the SQL statement based on the target table, the target field, the association table and the query condition.
According to any one of the above embodiments, the redemption factor stores field values corresponding to fields of the redemption factor in a key-value pair mapping manner.
Based on any of the above embodiments, the result determination module 340 is further configured to:
determining a first variable in the redemption condition;
determining a variable value of the first variable based on a variable value of the value variable under the current activity;
and determining the judgment result of the cashing condition based on the variable value of the first variable.
Based on any of the above embodiments, the result determination module 340 is further configured to:
determining that the redemption content includes an expression, determining a second variable in the redemption content;
determining a variable value of the second variable based on the variable value of the value variable under the current activity;
determining a redemption result for the redeemed content based on a variable value of the second variable;
and determining that the cashing content does not comprise an expression, and determining the cashing content as a cashing result.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may call logic instructions in the memory 430 to perform a data feedback method comprising: acquiring a feedback rule of the current activity; determining a value variable in the feedback rule, and determining a cashing factor based on the value variable; determining a variable value of the value variable under the current activity based on the redemption factor; determining a judgment result of a cashing condition in the feedback rule based on the variable value of the value variable under the current activity, and determining a cashing result of cashing content in the feedback rule; and determining a feedback result of the current activity based on the judgment result and the cashing result.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer-readable storage medium, the computer program, when executed by a processor, being capable of executing the data feedback method provided by the above methods, the method comprising: acquiring a feedback rule of the current activity; determining a value variable in the feedback rule, and determining a cashing factor based on the value variable; determining a variable value of the value variable under the current activity based on the redemption factor; determining a judgment result of a cashing condition in the feedback rule based on the variable value of the value variable under the current activity, and determining a cashing result of cashing content in the feedback rule; and determining a feedback result of the current activity based on the judgment result and the cashing result.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements a data feedback method provided by performing the above methods, the method comprising: acquiring a feedback rule of the current activity; determining a value variable in the feedback rule, and determining a cashing factor based on the value variable; determining a variable value of the value variable under the current activity based on the redemption factor; determining a judgment result of a cashing condition in the feedback rule based on the variable value of the value variable under the current activity, and determining a cashing result of cashing content in the feedback rule; and determining a feedback result of the current activity based on the judgment result and the cashing result.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
The above embodiments are merely illustrative of the present invention and are not to be construed as limiting the invention. Although the present invention has been described in detail with reference to the embodiments, it should be understood by those skilled in the art that various combinations, modifications or equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention, and the technical solution of the present invention is covered by the claims of the present invention.

Claims (12)

1. A method for data feedback, comprising:
acquiring a feedback rule of the current activity;
determining a value variable in the feedback rule, and determining a cashing factor based on the value variable;
determining a variable value of the value variable under the current activity based on the redemption factor;
determining a judgment result of a cashing condition in the feedback rule based on the variable value of the value variable under the current activity, and determining a cashing result of cashing content in the feedback rule;
and determining a feedback result of the current activity based on the judgment result and the cashing result.
2. The data feedback method according to claim 1, wherein the determining a redemption factor based on the value variable comprises:
determining a first character string based on the value variable, wherein the first character string is used for representing the name of a cashing factor;
acquiring a cashing factor from a name-factor mapping relation based on the first character string;
and the name-factor mapping relation is used for acquiring a cashing factor of the object type corresponding to the name of the character string type.
3. The data feedback method according to claim 2, wherein the name-factor mapping relationship is determined based on the steps of:
determining a factor type corresponding to the value variable, and determining a factor constructor corresponding to the factor type;
constructing an instance based on the factor constructor, the feedback policy definition of the current activity and the feedback object of the current activity to obtain a factor instance;
and mapping the factor name of the value variable and the factor example to obtain the name-factor mapping relation.
4. The data feedback method of claim 3, wherein said determining the factor constructor to which the factor type corresponds comprises:
determining a factor constructor from a set of constructors based on the factor type;
wherein the constructor set comprises an order constructor and a Structured Query Language (SQL) constructor;
the order constructor is used for carrying out instance construction to obtain a factor instance object associated with the order based on the feedback policy definition and the feedback object;
the SQL builder is used for carrying out instance construction to obtain a factor instance object associated with the SQL statement based on the key-value pair determined by the SQL statement, and the SQL statement comprises a field corresponding to the feedback policy definition and a field corresponding to the feedback object.
5. The data feedback method according to claim 4, wherein the SQL statement is determined based on the following steps:
acquiring a table selection instruction, and determining a target table based on the table selection instruction;
acquiring a field selection instruction, and determining a target field based on the field selection instruction;
acquiring an association table selection instruction, and determining an association table based on the association table selection instruction;
acquiring a query condition selection instruction, and determining a query condition based on the query condition selection instruction;
determining the SQL statement based on the target table, the target field, the association table, and the query condition.
6. The data feedback method according to any one of claims 1 to 5, wherein the redemption factor stores field values corresponding to fields of the redemption factor in a key-value pair mapping manner.
7. The data feedback method according to claim 1, wherein the determining a determination result of a redemption condition in the feedback rule based on the variable value of the value variable at the current activity includes:
determining a first variable in the redemption condition;
determining a variable value of the first variable based on a variable value of the value variable under the current activity;
and determining the judgment result of the cashing condition based on the variable value of the first variable.
8. The data feedback method of claim 1, wherein the determining a redemption result for redeeming content in the feedback rule comprises:
determining that the redemption content includes an expression, determining a second variable in the redemption content;
determining a variable value of the second variable based on the variable value of the value variable under the current activity;
determining a redemption result for the redemption content based on a variable value of the second variable;
and determining that the cashing content does not comprise an expression, and determining the cashing content as a cashing result.
9. A data feedback apparatus, comprising:
the rule obtaining module is used for obtaining the feedback rule of the current activity;
the factor determination module is used for determining a value variable in the feedback rule and determining a cashing factor based on the value variable;
a variable determination module, configured to determine, based on the redemption factor, a variable value of the value variable in the current activity;
a result determining module, configured to determine, based on the variable value of the value variable under the current activity, a determination result of a redemption condition in the feedback rule, and determine a redemption result of redemption content in the feedback rule;
and the feedback determining module is used for determining the feedback result of the current activity based on the judgment result and the cashing result.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data feedback method according to any one of claims 1 to 8 when executing the program.
11. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the data feedback method of any one of claims 1 to 8.
12. A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the data feedback method of any one of claims 1 to 8.
CN202210743329.1A 2022-06-27 2022-06-27 Data feedback method, device, electronic equipment, storage medium and program product Active CN115082119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210743329.1A CN115082119B (en) 2022-06-27 2022-06-27 Data feedback method, device, electronic equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210743329.1A CN115082119B (en) 2022-06-27 2022-06-27 Data feedback method, device, electronic equipment, storage medium and program product

Publications (2)

Publication Number Publication Date
CN115082119A true CN115082119A (en) 2022-09-20
CN115082119B CN115082119B (en) 2023-05-30

Family

ID=83254898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210743329.1A Active CN115082119B (en) 2022-06-27 2022-06-27 Data feedback method, device, electronic equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN115082119B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090150217A1 (en) * 2007-11-02 2009-06-11 Luff Robert A Methods and apparatus to perform consumer surveys
US20140180969A1 (en) * 2012-12-21 2014-06-26 Model N, Inc. Simplified Product Configuration Using Table-Based Rules, Rule Conflict Resolution Through Voting, and Efficient Model Compilation
CN108292406A (en) * 2015-12-04 2018-07-17 深圳市星电商科技有限公司 Merchandise news transmission method and device
US20200134090A1 (en) * 2018-10-26 2020-04-30 Ca, Inc. Content exposure and styling control for visualization rendering and narration using data domain rules
CN112085536A (en) * 2020-09-16 2020-12-15 广州威尔森信息科技有限公司 Rebate policy management method and device
CN113947443A (en) * 2021-11-03 2022-01-18 北京小药药人工智能科技有限公司 Rebate generation method and rebate device
CN114155032A (en) * 2021-12-06 2022-03-08 多点(深圳)数字科技有限公司 Calculation scheme for retailer to collect commodity sale rebate fee from supplier

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090150217A1 (en) * 2007-11-02 2009-06-11 Luff Robert A Methods and apparatus to perform consumer surveys
US20140180969A1 (en) * 2012-12-21 2014-06-26 Model N, Inc. Simplified Product Configuration Using Table-Based Rules, Rule Conflict Resolution Through Voting, and Efficient Model Compilation
CN108292406A (en) * 2015-12-04 2018-07-17 深圳市星电商科技有限公司 Merchandise news transmission method and device
US20200134090A1 (en) * 2018-10-26 2020-04-30 Ca, Inc. Content exposure and styling control for visualization rendering and narration using data domain rules
CN112085536A (en) * 2020-09-16 2020-12-15 广州威尔森信息科技有限公司 Rebate policy management method and device
CN113947443A (en) * 2021-11-03 2022-01-18 北京小药药人工智能科技有限公司 Rebate generation method and rebate device
CN114155032A (en) * 2021-12-06 2022-03-08 多点(深圳)数字科技有限公司 Calculation scheme for retailer to collect commodity sale rebate fee from supplier

Also Published As

Publication number Publication date
CN115082119B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
CN103678365B (en) The dynamic acquisition method of data, apparatus and system
CN110413868A (en) Information recommendation method, device, system and storage medium
US20120158757A1 (en) Inherited Entity Storage Model
CN112115171B (en) Data aggregation method, device, terminal equipment and computer readable storage medium
CN110727857A (en) Method and device for identifying key features of potential users aiming at business objects
CN108491408B (en) Activity information processing method and device, electronic equipment and storage medium
CN111382182A (en) Data processing method and device, electronic equipment and storage medium
CN108960672A (en) The air control method, apparatus and computer readable storage medium of limit limit time
CN112559524A (en) Index database establishing method and device and storage medium
CN115082119B (en) Data feedback method, device, electronic equipment, storage medium and program product
CN106874327B (en) Counting method and device for business data
CN107688581B (en) Data model processing method and device
US10713016B1 (en) Method of implementing rules on visual language using visual blocks
CN114285896A (en) Information pushing method, device, equipment, storage medium and program product
CN104750823B (en) Method and device for inquiring promotion condition data
CN113901046A (en) Virtual dimension table construction method and device
US20150347573A1 (en) Information Processing Device and Method Therefor, and Non-Transitory Computer Readable Medium
CN111881148A (en) Object combination attribute determination method and device and electronic equipment
CN109727053B (en) Object delivery determination method and device and computer-readable storage medium
CN112365296A (en) Member mall mode management system, method, device and storage medium
CN110675054A (en) Data processing method, data processing system and related equipment in ERP system
KR20150056989A (en) CRM apparatus and CRM system for supporting user&#39;s design of marketing strategy and method thereof
US20230418831A1 (en) Generating a customer journey based on reasons for customer interactions and times between customer interactions
CN111597189B (en) Method, device, equipment and storage medium for acquiring data
CN114253951B (en) Data processing method, system and second server

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
GR01 Patent grant
GR01 Patent grant