CN115619452A - User operation method and device based on arithmetic expression configuration - Google Patents

User operation method and device based on arithmetic expression configuration Download PDF

Info

Publication number
CN115619452A
CN115619452A CN202211324633.9A CN202211324633A CN115619452A CN 115619452 A CN115619452 A CN 115619452A CN 202211324633 A CN202211324633 A CN 202211324633A CN 115619452 A CN115619452 A CN 115619452A
Authority
CN
China
Prior art keywords
calculation
expression
index
basic data
template
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
CN202211324633.9A
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.)
Jiangsu Yincheng Network Technology Co Ltd
Original Assignee
Jiangsu Yincheng Network 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 Jiangsu Yincheng Network Technology Co Ltd filed Critical Jiangsu Yincheng Network Technology Co Ltd
Priority to CN202211324633.9A priority Critical patent/CN115619452A/en
Publication of CN115619452A publication Critical patent/CN115619452A/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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0224Discounts or incentives, e.g. coupons or rebates based on user history

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (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)

Abstract

The application discloses a user operation method and a user operation device based on arithmetic expression configuration, the method comprises the steps of receiving a calculation index configured by an operator, wherein the calculation index is configured on a configuration interface by the operator based on a pre-configured calculation template and basic data, and the calculation index comprises a parameter value list and a mathematical expression with a placeholder; analyzing the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression; performing numerical calculation according to the calculation expression based on the basic data to obtain a calculation result, wherein the calculation result is used for determining a target user; and sending the calculation result to an operator terminal for displaying so that the operator can make an operation strategy according to the calculation result. The method and the device solve the technical problems of high cost and low efficiency of index calculation in marketing in the related technology, realize accurate and real-time calculation of related data according to the arithmetic expression configured by operation, respond to the changed operation strategy quickly, and are low in use cost and high in efficiency.

Description

User operation method and device based on arithmetic expression configuration
Technical Field
The application belongs to the technical field of computers, and particularly relates to a user operation method and device based on arithmetic expression configuration.
Background
In the field of accurate marketing, along with the rapid development of company services, an accurate marketing strategy often needs to be responded in time according to the reaction of users and the market, and in general, when an operator makes the marketing strategy, the operator needs to perform data analysis by means of existing user data so as to make a more accurate marketing strategy for the users.
In the related technology, operators need to perform related index calculation before marketing strategies are formulated, index calculation codes need to be developed in advance for online in the existing index calculation, the service cycle is long from the requirement proposing to the service cycle, the requirement of rapid marketing in operation cannot be met, the overall use cost is high, and the efficiency is low.
Aiming at the technical problems of high cost and low efficiency of index calculation in marketing in the related technology, an effective solution is not provided at present.
Disclosure of Invention
Therefore, embodiments of the present application provide a user operation method, an apparatus, an electronic device, and a storage medium configured based on an arithmetic expression, and aim to solve at least one problem in the foregoing prior art.
In order to achieve the above object, in a first aspect, the present application provides a user operation method configured based on an arithmetic expression, including:
receiving a calculation index configured by an operator, wherein the calculation index is configured on a configuration interface by the operator based on a pre-configured calculation template and basic data, and the calculation index comprises a parameter value list and a mathematical expression with a placeholder;
analyzing the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression;
based on the basic data, carrying out numerical calculation according to the calculation expression to obtain a calculation result, wherein the calculation result is used for determining a target user;
and sending the calculation result to an operator terminal for displaying so that an operator can make an operation strategy according to the calculation result.
In one embodiment, the calculation template and the base data are obtained by: and obtaining the basic data based on the statistical analysis of the transaction data of the user, configuring and forming a calculation template according to the basic data, wherein the calculation template comprises an index summation calculation template and an index mean value calculation template, and storing the basic data and the calculation template into a database after the basic data and the calculation template are durably stored.
In one embodiment, said resolving said calculation metric comprises: resolving the placeholders in the mathematical expression to form a placeholder array, circularly judging whether each placeholder in the placeholder array is contained in the parameter value list, if so, replacing the placeholder with the corresponding parameter in the parameter value list, and if not, returning; and returning after circularly traversing all the placeholders in the placeholder array, and reassembling the mathematical expression to obtain the computational expression.
In one embodiment, the obtaining of the calculation result by performing the numerical calculation according to the calculation expression based on the basic data includes: and calling data corresponding to the calculation expression in the basic data according to the calculation expression, substituting the calculation expression and the data into an expression calculation component to carry out numerical calculation to obtain a calculation result, and storing the calculation result for persistence.
In a second aspect, the present application further provides a user operation apparatus configured based on an arithmetic expression, including:
the system comprises a receiving module, a calculating module and a judging module, wherein the receiving module is used for receiving a calculation index configured by an operator, the calculation index is configured on a configuration interface by the operator based on a pre-configured calculation template and basic data, and the calculation index comprises a parameter value list and a mathematical expression with a placeholder;
the analysis module is used for analyzing the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression;
the calculation module is used for carrying out numerical calculation according to the calculation expression based on the basic data to obtain a calculation result, and the calculation result is used for determining a target user;
and the sending module is used for sending the calculation result to an operator terminal for displaying so that an operator can make an operation strategy according to the calculation result.
In one embodiment, the calculation template and the base data are obtained by: and obtaining the basic data based on the statistical analysis of the transaction data of the user, configuring and forming a calculation template according to the basic data, wherein the calculation template comprises an index summation calculation template and an index mean value calculation template, and storing the basic data and the calculation template into a database after the basic data and the calculation template are durably stored.
In one embodiment, said resolving said calculation metric comprises: analyzing the placeholders in the mathematical expression to form a placeholder array, circularly judging whether each placeholder in the placeholder array is contained in the parameter value list, if so, replacing the placeholder with the corresponding parameter in the parameter value list, and if not, returning; and returning after circularly traversing all the placeholders in the placeholder array, and reassembling the mathematical expression to obtain the computational expression.
In one embodiment, the obtaining of the calculation result by performing the numerical calculation according to the calculation expression based on the basic data includes: and calling data corresponding to the calculation expression in the basic data according to the calculation expression, substituting the calculation expression and the data into an expression calculation component to perform numerical calculation to obtain a calculation result, and storing and persisting the calculation result.
In a third aspect, the present application further provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the steps of the user operation method configured based on arithmetic expressions.
In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, causes the processor to perform the steps of the arithmetic expression configuration-based user operation method.
According to the user operation method and device, the electronic device and the storage medium configured based on the arithmetic expression, the calculation index configured by an operator on the basis of a pre-configured calculation template and basic data on a configuration interface is received, and the calculation index comprises a parameter value list and a mathematical expression with a placeholder; analyzing the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression; based on the basic data, carrying out numerical calculation according to the calculation expression to obtain a calculation result, wherein the calculation result is used for determining a target user; and sending the calculation result to an operator terminal for displaying so that an operator can make an operation strategy according to the calculation result. The technical problems of high cost and low efficiency of index calculation in marketing in the related technology are solved, and the following beneficial effects are realized: the method can accurately calculate the relevant data in real time according to the arithmetic expression configured in operation so as to quickly respond to the changed operation strategy, and has low use cost and high efficiency.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
fig. 1 is a flow chart illustrating an implementation of a user operation method configured based on an arithmetic expression according to an embodiment of the present application;
fig. 2 is a main processing flow chart of a user operation method configured based on an arithmetic expression according to an embodiment of the present application;
fig. 3 is an analysis flowchart of a calculation index of a user operation method configured based on an arithmetic expression according to an embodiment of the present application;
fig. 4 is a schematic interface diagram of operator configuration of a user operation method configured based on an arithmetic expression according to an embodiment of the present application;
fig. 5 is a schematic diagram of main modules of a user operation device configured based on an arithmetic expression according to an embodiment of the present application;
FIG. 6 is a diagram of an exemplary system architecture that may be used with embodiments of the present application;
fig. 7 is a schematic block diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In this application, the terms "upper", "lower", "left", "right", "front", "rear", "top", "bottom", "inner", "outer", "middle", "vertical", "horizontal", "lateral", "longitudinal", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings. These terms are used primarily to better describe the present application and its embodiments, and are not used to limit the indicated devices, elements or components to a particular orientation or to be constructed and operated in a particular orientation.
Moreover, some of the above terms may be used to indicate other meanings besides the orientation or positional relationship, for example, the term "on" may also be used to indicate some kind of attachment or connection relationship in some cases. The specific meaning of these terms in this application will be understood by those of ordinary skill in the art as appropriate.
In addition, the term "plurality" shall mean two as well as more than two.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 shows an implementation flow of a user operation method configured based on an arithmetic expression provided in an embodiment of the present application, fig. 2 shows a main processing flow of the user operation method configured based on the arithmetic expression provided in the embodiment of the present application, fig. 3 shows an analysis flow of a calculation index of the user operation method configured based on the arithmetic expression provided in the embodiment of the present application, fig. 3 shows an interface schematic diagram of an operator configuration of the user operation method configured based on the arithmetic expression provided in the embodiment of the present application, and for convenience of description, only a part related to the embodiment of the present application is shown, and details are as follows:
a user operation method based on arithmetic expression configuration comprises the following steps:
s101: receiving a calculation index configured by an operator, wherein the calculation index is configured on a configuration interface by the operator based on a pre-configured calculation template and basic data, and the calculation index comprises a parameter value list and a mathematical expression with a placeholder;
s102: analyzing the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression;
s103: based on the basic data, carrying out numerical calculation according to the calculation expression to obtain a calculation result, wherein the calculation result is used for determining a target user;
s104: and sending the calculation result to an operator terminal for displaying so that an operator can make an operation strategy according to the calculation result.
In step S101: receiving a calculation index configured by an operator, wherein the calculation index is configured on a configuration interface by the operator based on a pre-configured calculation template and basic data, and the calculation index comprises a parameter value list and a mathematical expression with a placeholder. The operator can configure the calculation index on the configuration page and then submit the calculation index so as to calculate the calculation index directly according to the calculation index configured by the operator. Therefore, operators can be supported to flexibly configure arithmetic calculation formulas and arithmetic parameters, the arithmetic parameters are transaction statistical indexes of users, and accurate and real-time calculation meeting the operation indexes is achieved.
In one embodiment, the calculation template and the base data are obtained by: and obtaining the basic data based on the statistical analysis of the transaction data of the user, configuring and forming a calculation template according to the basic data, wherein the calculation template comprises an index summation calculation template and an index mean value calculation template, and storing the basic data and the calculation template into a database after the basic data and the calculation template are persisted.
Here, the transaction data of the user within a certain period of time may be collected as the transaction data of the statistical analysis, for example, the transaction data of the user may be stored in a database, and the capture statistical analysis may be performed periodically; the certain period of time can be set according to actual requirements, for example, the period of time can be set to the user transaction data within 7 days. E.g., number of orders bought in the last 7 days: is counted by the number of purchase orders per day of the user. It should be noted that the data of the statistical analysis can also be semi-processed by the developer. And the data after statistical analysis is taken as basic data of index calculation to be persistently stored in a database and taken as a data source of subsequent index calculation. When the operator selects the calculation template on the configuration interface to configure the calculation index, the index selected by the calculation template is the index code (code) corresponding to the basic data.
It should be noted that, as shown in fig. 2, in the process of collecting and statistically analyzing the transaction data of the user, after the user generates active data on the platform, the statistical data of T +1 generated by the user may be cleaned on the next day, and then basic statistical data is calculated and generated to form the basic data, and then the basic data is persistently stored.
Further, the calculation formula of the index summation calculation template is as follows:
Figure BDA0003911630930000081
i, n represents the number of days, v represents the value of a certain day; the calculation formula of the index mean value calculation template is as follows:
Figure BDA0003911630930000082
i, n represents the number of days and v represents the value for a certain day.
For example, as shown in fig. 4, an operator may select an index calculation template (placeholder is a) and an index mean calculation template (placeholder is b) on an interface, then input a corresponding mathematical expression in an operation formula, and when constructing the mathematical expression, configure the mathematical expression by using placeholders and operators corresponding to the index calculation template and the index mean calculation template. For example, the mathematical expression { a } + { b }, one { } represents an expression parameter, a and b are placeholders, each placeholder is pre-configured with a corresponding parameter value, and the parameter value corresponding to the placeholder can be queried in the parameter value list, for example, the parameter value corresponding to a is the order number bought and sold in 5 working days, that is, the values of 5 and the order number are parameter values, and the value of the order number can be directly called in the basic data.
In step S102: and analyzing the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression. After receiving the calculation indexes configured by the operator, analyzing the calculation indexes to obtain the calculation rules and the calculation parameters configured in the calculation indexes.
In one embodiment, the resolving the calculated metric comprises: analyzing the placeholders in the mathematical expression to form a placeholder array, circularly judging whether each placeholder in the placeholder array is contained in the parameter value list, if so, replacing the placeholder with the corresponding parameter in the parameter value list, and if not, returning; and returning after circularly traversing all the placeholders in the placeholder array, and reassembling the mathematical expression to obtain the computational expression.
As shown in fig. 3, when the computation index is analyzed, placeholders in a mathematical expression in the computation index are first analyzed to form a placeholder array, and then, whether each placeholder in the placeholder array exists in a preconfigured parameter value list is judged one by one in a circulating manner, if yes, the placeholder is replaced by a corresponding parameter in the parameter value list, if not, the placeholder is not replaced, and the next placeholder judgment is performed until all placeholders are judged in the circulating manner, and then, a result is returned.
For example, if the configured formula for the calculation index is { a } + { b }, the configured formula is divided into two parts:
one part is an expression containing placeholders: { a } + { b }; one part is the parameter list: [ { "indexCode": five _ workday _ trade _ num ], { "referrcode": a "}, {" indexCode ": nhvtjuXMGaud ]," referrcode ": b" } ], and then the platform background parses the reassembly expression as follows: five _ workday _ track _ num + nhvtjuXMGaud.
In step S103: and carrying out numerical calculation according to the calculation expression based on the basic data to obtain a calculation result, wherein the calculation result is used for determining the target user. After the calculation indexes configured by the operators are successfully analyzed, numerical calculation can be performed according to the calculation expression based on basic data which is configured in advance and stored persistently to obtain a calculation result, so that a required user list corresponding to the calculation indexes configured by the operators can be determined, and the operators can conveniently and rapidly establish a marketing strategy in an individualized manner. The marketing is accurate and timely, the workload of research and development personnel can be reduced, and the working efficiency is improved.
In one embodiment, the obtaining of the calculation result by performing the numerical calculation according to the calculation expression based on the basic data includes: and calling data corresponding to the calculation expression in the basic data according to the calculation expression, substituting the calculation expression and the data into an expression calculation component to perform numerical calculation to obtain a calculation result, and storing and persisting the calculation result. Here, if a certain parameter has no corresponding value at the time of calculation, zero is defaulted.
In step S104: and sending the calculation result to an operator terminal for displaying so that an operator can make an operation strategy according to the calculation result. According to the calculation result, the user list corresponding to the calculation index configured by the operator can be directly obtained, so that the operator can quickly make an operation strategy according to the calculated user list.
Therefore, the user operation method based on arithmetic expression configuration provided by the embodiment of the application builds a calculation platform based on arithmetic expression configuration, and is used for marketing operation of operators, the method receives calculation indexes configured by the operators on the basis of a pre-configured calculation template and basic data on a configuration interface, and the calculation indexes comprise a parameter value list and a mathematical expression with a placeholder; analyzing the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression; based on the basic data, carrying out numerical calculation according to the calculation expression to obtain a calculation result, wherein the calculation result is used for determining a target user; and sending the calculation result to an operator terminal for displaying so that an operator can make an operation strategy according to the calculation result. The technical problems of high cost and low efficiency of index calculation in marketing in the related technology are solved, and the following beneficial effects are realized: the method supports flexible operation configuration of an arithmetic calculation formula, and arithmetic parameters are transaction statistical indexes of users; the method can accurately calculate the relevant data in real time according to the arithmetic expression configured by the operator so as to quickly respond to the changed operation strategy, and has low use cost and high efficiency. Meanwhile, after the system using the method is online, a business department can configure calculation rules by a platform, research and development intervention is not needed, online development is not needed, the requirements of complex calculation and quick effectiveness are met, the research and development cost is saved, and quick and accurate marketing is realized.
Fig. 5 shows a schematic diagram of main modules of a user operation device configured based on an arithmetic expression according to an embodiment of the present application, and for convenience of description, only parts related to the embodiment of the present application are shown, which are detailed as follows:
a user operation apparatus 200 configured based on an arithmetic expression, comprising:
the receiving module 201 is configured to receive a calculation index configured by an operator, where the calculation index is configured on a configuration interface by the operator based on a pre-configured calculation template and basic data, and the calculation index includes a parameter value list and a mathematical expression with a placeholder;
the analysis module 202 is configured to analyze the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression;
the calculation module 203 is configured to perform numerical calculation according to the calculation expression based on the basic data to obtain a calculation result, where the calculation result is used to determine a target user;
and the sending module 204 is configured to send the calculation result to an operator terminal for displaying, so that an operator can formulate an operation policy according to the calculation result.
The receiving module 201 is configured to receive a calculation index configured by an operator, where the calculation index is configured on a configuration interface by the operator based on a pre-configured calculation template and basic data, and the calculation index includes a parameter value list and a mathematical expression with a placeholder. The operator can configure the calculation index on the configuration page and then submit the calculation index so as to calculate the calculation index directly according to the calculation index configured by the operator. Therefore, operators can be supported to flexibly configure arithmetic calculation formulas and arithmetic parameters, the arithmetic parameters are transaction statistical indexes of users, and accurate real-time calculation meeting the operation indexes is achieved.
In one embodiment, the calculation template and the base data are obtained by: and obtaining the basic data based on the statistical analysis of the transaction data of the user, configuring and forming a calculation template according to the basic data, wherein the calculation template comprises an index summation calculation template and an index mean value calculation template, and storing the basic data and the calculation template into a database after the basic data and the calculation template are durably stored.
Here, the transaction data of the user within a certain period of time may be collected as the transaction data of the statistical analysis, for example, the transaction data of the user may be stored in a database, and the capture statistical analysis may be performed periodically; the certain period of time can be set according to actual requirements, for example, the period of time can be set to the user transaction data within 7 days. For example, the number of orders to buy in for the last 7 days: is counted by the number of purchase orders per day of the user. It should be noted that the data of the statistical analysis can also be semi-processed by the developer. And taking the data after statistical analysis as basic data for index calculation, and persistently storing the data into a database to serve as a data source for subsequent index calculation. When the operator selects the calculation template to configure the calculation index on the configuration interface, the index selected by the calculation template is the index code (code) corresponding to the basic data.
It should be noted that, as shown in fig. 2, in the process of collecting and statistically analyzing the transaction data of the user, after the user generates active data on the platform, the statistical data of T +1 generated by the user may be cleaned on the next day, and then basic statistical data is calculated and generated to form the basic data, and then the basic data is persistently stored.
Further, the calculation formula of the index summation calculation template is as follows:
Figure BDA0003911630930000111
i, n represents the number of days, v represents the value of a certain day; the calculation formula of the index mean value calculation template is as follows:
Figure BDA0003911630930000112
i, n represents the number of days and v represents the value for a certain day.
For example, as shown in fig. 4, an operator may select an index calculation template (placeholder is a) and an index mean calculation template (placeholder is b) on an interface, then input a corresponding mathematical expression in an operation formula, and when constructing the mathematical expression, configure the mathematical expression by using placeholders and operators corresponding to the index calculation template and the index mean calculation template. For example, the mathematical expression { a } + { b }, one { } represents an expression parameter, a and b are placeholders, each placeholder is preconfigured with a corresponding parameter value, the parameter value corresponding to the placeholder can be queried in the parameter value list, for example, the parameter value corresponding to a is the order number purchased and sold in the last 5 working days, that is, the value of 5 and the order number is the parameter value, and the value of the order number can be directly called in the basic data.
And the analyzing module 202 is configured to analyze the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression. After receiving the calculation indexes configured by the operating personnel, analyzing the calculation indexes to obtain the calculation rules and the calculation parameters configured in the calculation indexes.
In one embodiment, the resolving the calculated metric comprises: analyzing the placeholders in the mathematical expression to form a placeholder array, circularly judging whether each placeholder in the placeholder array is contained in the parameter value list, if so, replacing the placeholder with the corresponding parameter in the parameter value list, and if not, returning; and returning after circularly traversing all the placeholders in the placeholder array, and reassembling the mathematical expression to obtain the computational expression.
As shown in fig. 3, when the computation index is analyzed, placeholders in the mathematical expression in the computation index are first analyzed to form a placeholder array, and then it is cyclically determined whether each placeholder in the placeholder array exists in the preconfigured parameter value list one by one, if yes, the placeholder is replaced by a corresponding parameter in the parameter value list, if not, the placeholder is not replaced, and the next placeholder determination is performed until all placeholders are cyclically determined, and then the result is returned.
For example, if the configured calculation index formula is { a } + { b }, the configured formula is divided into two parts:
one part is an expression containing placeholders: { a } + { b }; one part is the parameter list: [ { "indexCode": five _ workday _ trade _ num ], { "referrcode": a "}, {" indexCode ": nhvtjuXMGaud ]," referrcode ": b" } ], and then the platform background parses the reassembly expression as follows: five _ workday _ track _ num + nhvtjuXMGaud.
And the calculating module 203 is configured to perform numerical calculation according to the calculation expression based on the basic data to obtain a calculation result, where the calculation result is used to determine the target user. After the calculation indexes configured by the operators are successfully analyzed, numerical calculation can be performed according to the calculation expression based on basic data which is configured in advance and stored persistently to obtain a calculation result, so that a required user list corresponding to the calculation indexes configured by the operators can be determined, and the operators can conveniently and rapidly establish a marketing strategy in an individualized manner. The marketing is accurate and timely, the workload of research and development personnel can be reduced, and the working efficiency is improved.
In one embodiment, the obtaining of the calculation result by performing numerical calculation according to the calculation expression based on the basic data includes: and calling data corresponding to the calculation expression in the basic data according to the calculation expression, substituting the calculation expression and the data into an expression calculation component to carry out numerical calculation to obtain a calculation result, and storing the calculation result for persistence. Here, if a certain parameter has no corresponding value at the time of calculation, zero is defaulted.
And the sending module 204 is configured to send the calculation result to an operator terminal for displaying, so that an operator can make an operation policy according to the calculation result. According to the calculation result, the user list corresponding to the calculation index configured by the operator can be directly obtained, so that the operator can quickly make an operation strategy according to the calculated user list.
Therefore, the user operation device configured based on the arithmetic expression provided in the embodiment of the present application is configured to receive, by the receiving module 201, a calculation index configured by an operator on the basis of a pre-configured calculation template and basic data on the configuration interface, where the calculation index includes a parameter value list and a mathematical expression with a placeholder; the analysis module 202 is configured to analyze the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression; the calculation module 203 is configured to perform numerical calculation according to the calculation expression based on the basic data to obtain a calculation result, where the calculation result is used to determine a target user; and the sending module 204 is configured to send the calculation result to an operator terminal for displaying, so that an operator can make an operation policy according to the calculation result. The technical problems of high cost and low efficiency of index calculation in marketing in the related technology are solved, and the following beneficial effects are realized: the method can accurately calculate the related data in real time according to the arithmetic expression configured by operation so as to quickly respond to the changed operation strategy, and has low use cost and high efficiency.
An embodiment of the present application further provides an electronic device, including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by one or more processors, the one or more processors implement the user operation method based on arithmetic expression configuration in the embodiment of the application.
Embodiments of the present application further provide a computer-readable medium, on which a computer program is stored, where the program, when executed by a processor, implements a user operation method configured based on an arithmetic expression according to an embodiment of the present application.
Fig. 6 shows an exemplary system architecture 300 to which a user operation method or apparatus configured based on arithmetic expressions according to an embodiment of the present application may be applied.
As shown in fig. 6, the system architecture 300 may include terminal devices 301, 302, 303, a network 304, and a server 305. Network 304 is the medium used to provide communication links between terminal devices 301, 302, 303 and server 305. Network 304 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal device 301, 302, 303 to interact with the server 305 via the network 304 to receive or send messages or the like. The terminal devices 301, 302, 303 may have various communication client applications installed thereon, such as shopping applications, web browser applications, search applications, instant messaging tools, mailbox clients, social platform software, and the like.
The terminal devices 301, 302, 303 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 305 may be a server providing various services, such as a background management server providing support for users using incoming and outgoing messages sent by the terminal devices 301, 302, 303. The background management server can perform analysis and other processing after receiving the terminal device request, and feed back the processing result to the terminal device.
It should be noted that the user operation method configured based on the arithmetic expression provided in the embodiment of the present application is generally executed by the terminal device 301, 302, 303 or the server 305, and accordingly, the user operation device configured based on the arithmetic expression is generally disposed in the terminal device 301, 302, 303 or the server 305.
It should be understood that the number of terminal devices, networks, and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
Referring now to FIG. 7, shown is a block diagram of a computer system 400 suitable for use in implementing the electronic device of an embodiment of the present application. The computer system shown in fig. 7 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 400 includes a Central Processing Unit (CPU) 401 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as needed, so that a computer program read out therefrom is mounted in the storage section 408 as needed.
In particular, according to embodiments disclosed herein, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments disclosed herein include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409 and/or installed from the removable medium 411. The above-described functions defined in the system of the present application are executed when the computer program is executed by a Central Processing Unit (CPU) 401.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a determination module, an extraction module, a training module, and a screening module. Where the names of these modules do not in some cases constitute a limitation on the module itself, for example, a determination module may also be described as a "module that determines a set of candidate users".
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for operating a user configured based on an arithmetic expression, comprising:
receiving a calculation index configured by an operator, wherein the calculation index is configured on a configuration interface by the operator based on a pre-configured calculation template and basic data, and the calculation index comprises a parameter value list and a mathematical expression with a placeholder;
analyzing the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression;
based on the basic data, carrying out numerical calculation according to the calculation expression to obtain a calculation result, wherein the calculation result is used for determining a target user;
and sending the calculation result to an operator terminal for displaying so that an operator can make an operation strategy according to the calculation result.
2. The arithmetic expression configuration-based user operation method according to claim 1, wherein the calculation template and the basic data are obtained by: and obtaining the basic data based on the statistical analysis of the transaction data of the user, configuring and forming a calculation template according to the basic data, wherein the calculation template comprises an index summation calculation template and an index mean value calculation template, and storing the basic data and the calculation template into a database after the basic data and the calculation template are persisted.
3. The arithmetic expression configuration-based user operation method according to claim 2, wherein the parsing the calculation index includes: analyzing the placeholders in the mathematical expression to form a placeholder array, circularly judging whether each placeholder in the placeholder array is contained in the parameter value list, if so, replacing the placeholder with the corresponding parameter in the parameter value list, and if not, returning; and returning after circularly traversing all the placeholders in the placeholder array, and reassembling the mathematical expression to obtain the computational expression.
4. The arithmetic expression configuration-based user operation method of claim 1, wherein the performing numerical computation according to the computational expression based on the basic data to obtain a computation result comprises: and calling data corresponding to the calculation expression in the basic data according to the calculation expression, substituting the calculation expression and the data into an expression calculation component to perform numerical calculation to obtain a calculation result, and storing and persisting the calculation result.
5. A user operation apparatus configured based on an arithmetic expression, comprising:
the system comprises a receiving module, a calculating module and a calculating module, wherein the receiving module is used for receiving a calculation index configured by an operator, the calculation index is configured on a configuration interface by the operator based on a pre-configured calculation template and basic data, and the calculation index comprises a parameter value list and a mathematical expression with a placeholder;
the analysis module is used for analyzing the mathematical expression and the parameter value list in the calculation index to obtain a calculation expression;
the calculation module is used for carrying out numerical calculation according to the calculation expression based on the basic data to obtain a calculation result, and the calculation result is used for determining a target user;
and the sending module is used for sending the calculation result to an operator terminal for displaying so that an operator can make an operation strategy according to the calculation result.
6. The arithmetic expression based user operation device as claimed in claim 5, wherein the calculation template and the basic data are obtained by: and obtaining the basic data based on the statistical analysis of the transaction data of the user, configuring and forming a calculation template according to the basic data, wherein the calculation template comprises an index summation calculation template and an index mean value calculation template, and storing the basic data and the calculation template into a database after the basic data and the calculation template are persisted.
7. The arithmetic expression configuration-based user operating apparatus of claim 6, wherein the parsing the calculation metric comprises: resolving the placeholders in the mathematical expression to form a placeholder array, circularly judging whether each placeholder in the placeholder array is contained in the parameter value list, if so, replacing the placeholder with the corresponding parameter in the parameter value list, and if not, returning; and returning after circularly traversing all the placeholders in the placeholder array, and reassembling the mathematical expression to obtain the computational expression.
8. The arithmetic expression based user operation device as claimed in claim 5, wherein the performing a numerical calculation according to the calculation expression based on the basic data to obtain a calculation result comprises: and calling data corresponding to the calculation expression in the basic data according to the calculation expression, substituting the calculation expression and the data into an expression calculation component to perform numerical calculation to obtain a calculation result, and storing and persisting the calculation result.
9. An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and when executed by the processor, causes the processor to execute the steps of the arithmetic expression configuration based user operation method of any one of claims 1 to 4.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, causes the processor to perform the steps of the arithmetic expression configuration based user operation method of any one of claims 1 to 4.
CN202211324633.9A 2022-10-27 2022-10-27 User operation method and device based on arithmetic expression configuration Pending CN115619452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211324633.9A CN115619452A (en) 2022-10-27 2022-10-27 User operation method and device based on arithmetic expression configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211324633.9A CN115619452A (en) 2022-10-27 2022-10-27 User operation method and device based on arithmetic expression configuration

Publications (1)

Publication Number Publication Date
CN115619452A true CN115619452A (en) 2023-01-17

Family

ID=84864970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211324633.9A Pending CN115619452A (en) 2022-10-27 2022-10-27 User operation method and device based on arithmetic expression configuration

Country Status (1)

Country Link
CN (1) CN115619452A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116360761A (en) * 2023-03-26 2023-06-30 二十六度数字科技(广州)有限公司 Automatic marketing method and system for private domain and public domain based on data labels

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116360761A (en) * 2023-03-26 2023-06-30 二十六度数字科技(广州)有限公司 Automatic marketing method and system for private domain and public domain based on data labels
CN116360761B (en) * 2023-03-26 2023-11-14 二十六度数字科技(广州)有限公司 Automatic marketing method and system for private domain and public domain based on data labels

Similar Documents

Publication Publication Date Title
CN109460513B (en) Method and apparatus for generating click rate prediction model
CN110109901B (en) Method and device for screening target object
CN111125574A (en) Method and apparatus for generating information
CN108810047B (en) Method and device for determining information push accuracy rate and server
CN111414376A (en) Data early warning method and device
CN110111167A (en) A kind of method and apparatus of determining recommended
CN107908662B (en) Method and device for realizing search system
CN111429241A (en) Accounting processing method and device
CN110866040A (en) User portrait generation method, device and system
CN107291835B (en) Search term recommendation method and device
CN115619452A (en) User operation method and device based on arithmetic expression configuration
US11062224B2 (en) Prediction using fusion of heterogeneous unstructured data
CN112947919A (en) Method and device for constructing service model and processing service request
WO2022156589A1 (en) Method and device for determining live broadcast click rate
CN113989058A (en) Service generation method and device
CN110928594A (en) Service development method and platform
CN107679096B (en) Method and device for sharing indexes among data marts
CN111124858A (en) Embedded point-free plug-in data processing method and system, terminal device and storage medium
CN111125502A (en) Method and apparatus for generating information
CN115099865A (en) Data processing method and device
CN114817297A (en) Method and device for processing data
CN113806047A (en) Data operation optimization processing method and device
CN110378714B (en) Method and device for processing access data
CN113434754A (en) Method and device for determining recommended API (application program interface) service, electronic equipment and storage medium
CN112363716A (en) Method, system and device for dynamically assembling evaluation model

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