Performance calculator configuration method and device, storage medium and computer equipment
By dynamically configuring calculation items and generating performance calculators that are adapted to different business types, the problem of lack of flexibility in business performance calculators in the prior art is solved, the flexibility and maintainability of the calculator are improved, and the development and maintenance costs are reduced.
Patent Information
- Application Number
- CN202411993865.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-03-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing business performance calculator lacks flexibility and cannot quickly respond to changes in performance appraisal plans and systems, resulting in high development and maintenance costs and inefficiency.
By determining the target business type and obtaining the corresponding calculation formula, dynamically configure the calculation items and their configuration information, a performance calculator is generated that is suitable for different business types and cycles.
It significantly improves the flexibility and maintainability of performance calculators, reduces development and maintenance costs, improves efficiency, and can quickly adapt to different business needs and calculation formula changes.
Smart Images

Figure CN119690992A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a performance calculator configuration method, device, storage medium and computer equipment. Background Art
[0002] With the refinement of financial and banking business performance appraisal, how to automate performance management and motivate employees to improve marketing performance has become a key issue. To this end, companies need an effective appraisal system and marketing pricing plan to help marketing specialists quickly understand the performance brought by each performance, thereby improving their enthusiasm.
[0003] Current business performance calculators can usually only process fixed calculation items and formulas preset by system developers, and cannot flexibly respond to changes in performance appraisal plans in various projects and cycles. With the continuous changes in different appraisal cycles, projects, and marketing pricing plans, each adjustment requires R&D personnel to modify the performance calculator configuration and calculation methods in a targeted manner, resulting in high development and maintenance costs and low efficiency. In other words, the existing business performance calculator lacks sufficient flexibility and cannot quickly respond to changes in performance appraisal plans and systems. Summary of the invention
[0004] The purpose of the present application is to solve at least one of the above technical deficiencies, especially the technical defect that the existing business performance calculators in the prior art lack sufficient flexibility.
[0005] In a first aspect, the present application provides a performance calculator configuration method, the method comprising:
[0006] Determine the target business type and obtain the target calculation formula corresponding to the target business type;
[0007] According to the target calculation formula, determine the target calculation configuration item corresponding to the target business type, and obtain the configuration information of each target calculation configuration item, which includes the calculation item name, input item control, unit, and display order;
[0008] According to the target calculation formula, each target calculation configuration item and its configuration information, a target performance calculator of the target business type is generated, so that in the target performance calculator, each target calculation configuration item has a corresponding input value to calculate the performance result of the target business type.
[0009] In one embodiment, the step of obtaining configuration information of each target computing configuration item includes:
[0010] For each target calculation configuration item, the calculation item name, unit and display order of the target calculation configuration item entered by the user on the preset configuration interface are received, and the control type selection result of the target calculation configuration item is captured. If the control type selection result is an input box, an input item control in the form of an input box is generated for the target calculation configuration item. If the control type selection result is an option control, a value selection method configuration panel corresponding to the option item control is popped up to obtain the target value selection method of the target calculation configuration item, and an input item control in the form of an option is generated for the target calculation configuration item.
[0011] In one embodiment, the step of obtaining a target value mode of the target computing configuration item and generating an input item control in the form of an option for the target computing configuration item includes:
[0012] When the direct entry value selection method in the value selection method configuration panel is selected, an input box for the user to enter the option value pops up, and the received option value is assigned to the control type selection result of the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
[0013] In one embodiment, the step of obtaining a target value mode of the target computing configuration item and generating an input item control in the form of an option for the target computing configuration item further includes:
[0014] When the SQL query value method in the value method configuration panel is selected, an input box for the user to enter an SQL query statement pops up, and the received SQL query statement is assigned to the control type selection result of the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
[0015] In one embodiment, the step of obtaining a target value mode of the target computing configuration item and generating an input item control in the form of an option for the target computing configuration item further includes:
[0016] When the multi-level linkage value method in the value method configuration panel is selected, an input box for the user to configure the linkage relationship pops up, and after updating the options of each level according to the received configuration linkage relationship, the control type selection result is assigned to the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
[0017] In one embodiment, the step of generating a target performance calculator for a target business type according to the target calculation formula, and each target calculation configuration item and its configuration information includes:
[0018] According to the display order of each target calculation configuration item, determine the calculation item name, input item control and unit arrangement order of each target calculation configuration item, generate the target performance calculator interface, and bind the input item control of each target calculation configuration item to the corresponding calculation item in the target calculation formula to obtain the target performance calculator of the target business type.
[0019] In a second aspect, the present application provides a performance calculator configuration device, the device comprising:
[0020] A target business type determination module is used to determine the target business type and obtain a target calculation formula corresponding to the target business type;
[0021] The configuration information acquisition module is used to determine the target calculation configuration item corresponding to the target business type according to the target calculation formula, and obtain the configuration information of each target calculation configuration item, the configuration information including the calculation item name, input item control, unit and display order;
[0022] The target performance calculator generation module is used to generate a target performance calculator for the target business type according to the target calculation formula, each target calculation configuration item and its configuration information, so that in the target performance calculator, each target calculation configuration item has a corresponding input value to calculate the performance result of the target business type.
[0023] In one embodiment, the configuration information acquisition module includes:
[0024] A configuration information acquisition unit is used to receive, for each target calculation configuration item, the calculation item name, unit and display order of the target calculation configuration item input by the user on the preset configuration interface, and capture the control type selection result of the target calculation configuration item. If the control type selection result is an input box, an input item control in the form of an input box is generated for the target calculation configuration item. If the control type selection result is an option control, a value selection method configuration panel corresponding to the option item control is popped up to obtain the target value selection method of the target calculation configuration item, and an input item control in the form of an option is generated for the target calculation configuration item.
[0025] In a third aspect, the present application provides a storage medium: the storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the performance calculator configuration method in any of the above embodiments.
[0026] In a fourth aspect, the present application provides a computer device, comprising: one or more processors, and a memory;
[0027] The memory stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the steps of the performance calculator configuration method in any of the above embodiments are performed.
[0028] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0029] The performance calculator configuration method provided in this application can automatically generate a performance calculator adapted to different business types and cycles by dynamically determining the target business type and its corresponding calculation formula, flexibly configuring the calculation items and their configuration information. This method significantly improves the flexibility and maintainability of the performance calculator, avoids frequent manual adjustments and development investment, thereby reducing development and maintenance costs and improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0031] Figure 1 A flowchart of a performance calculator configuration method provided in an embodiment of the present application;
[0032] Figure 2 A schematic diagram of the structure of a performance calculator configuration device provided in an embodiment of the present application;
[0033] Figure 3 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0035] The present application provides a performance calculator configuration method. The following embodiments are described by taking the method applied to a computer device as an example. It can be understood that the computer device can be any device with data processing functions, including but not limited to a single server, a server cluster, a personal laptop computer, a desktop computer, etc. Figure 1 As shown, the method may include the following steps:
[0036] S101: Determine a target business type, and obtain a target calculation formula corresponding to the target business type.
[0037] Among them, the target business type refers to different types of business classified according to business characteristics in performance appraisal. For example, the bank's loan business, credit card marketing business, etc., the performance appraisal of each business type may rely on different calculation methods and evaluation criteria. The target calculation formula refers to the formula used to calculate the performance results of a specific business type, which is used to evaluate the marketing or sales performance under this business type. For example, the performance of a marketing activity may be calculated based on the weighted calculation of multiple factors such as sales amount, customer satisfaction, and transaction rate.
[0038] In this step, a specific business type is selected from user input or business requirements as the target business type. For example, a drop-down menu or multiple-selection box is provided in the business type selection interface to allow users to select the target business type, or the business type involved in the current task is automatically identified based on the existing data model. Once the target business type is determined, the calculation formula associated with the business type predefined in the database or configuration file can be queried, or the target calculation formula entered by the user can be received and associated with the target business type. The calculation formula contains a series of mathematical formulas or logical rules used to evaluate the marketing performance of the business type. For example, after selecting "credit card marketing", the relevant performance calculation formula can be found from the predefined rule library, such as the formula of "sales amount * weight + customer satisfaction * weight", and applied to the business type.
[0039] It can be understood that by determining the target business type and obtaining the target calculation formula, the automatic matching of business type and performance calculation can be achieved. First, clarifying the target business type is a prerequisite for ensuring that performance calculation can be connected with actual business needs. Secondly, dynamically obtaining the corresponding calculation formula according to the determined business type can ensure that the most suitable standard is used for performance evaluation in different business scenarios. In this way, the flexibility and automation of the calculator are improved, and it can quickly respond to the needs of different business types and cycle changes without relying on frequent modification of program codes, reducing the risk and cost of manual intervention.
[0040] S102: Determine the target calculation configuration item corresponding to the target business type according to the target calculation formula, and obtain configuration information of each target calculation configuration item, where the configuration information includes the calculation item name, input item control, unit, and display order.
[0041] Among them, target calculation configuration items refer to the various input data or parameter items required for calculation in the performance calculation formula, including different business indicators or attributes related to performance, such as sales amount, customer satisfaction, transaction volume, etc. Configuration information refers to the detailed information of each calculation configuration item, including the calculation item name, that is, the identification and description of the configuration item; input item controls, which are interface elements for inputting data, such as text boxes, drop-down menus, etc.; units, such as amount units, quantity units, etc.; display order, which refers to the order in which the configuration items are displayed on the interface.
[0042] In this step, after the target business type is selected, the target calculation formula can be decomposed to obtain the calculation configuration items corresponding to the business type. For example, after selecting the "credit card marketing" business type, the required configuration items, such as sales, number of customers, etc., are queried according to the performance calculation formula of the business. Next, the configuration information of each calculation configuration item can be obtained by receiving the information input by the user, or it can be read through a database or configuration file. For example, the detailed information of these configuration items can be obtained through queries, including the name, input control, unit, and display order. This information will be used to generate input elements on the interface so that users can enter data according to the requirements of the configuration items.
[0043] It can be understood that by determining the target calculation configuration items and obtaining the configuration information of each target configuration item, a dynamic performance calculation interface can be accurately constructed according to business needs. First, determining the calculation configuration items for each target business type ensures that the corresponding calculation items can be automatically generated according to different business characteristics. Secondly, obtaining the configuration information of each configuration item can provide users with a personalized input interface to ensure that the data entered by the user meets expectations, and according to the configured units and display order, ensure that the input and display logic of the data is clear and standardized. In this way, not only the flexibility and adaptability of the calculator are improved, so that different business types can use customized input interfaces, but also the user experience can be improved, reducing the possibility of user input errors. In addition, the ability to respond quickly to changes is enhanced, and it can easily adapt to the adjustment of business calculation solutions without changing the code, thereby greatly reducing development and maintenance costs.
[0044] S103: Generate a target performance calculator for the target business type according to the target calculation formula, each target calculation configuration item and its configuration information, so that in the target performance calculator, each target calculation configuration item has a corresponding input value and the performance result of the target business type is calculated.
[0045] In this step, the target performance calculator interface is dynamically constructed based on the target calculation formula and each target calculation configuration item and its configuration information. The interface contains input controls for all target calculation configuration items, and generates corresponding input boxes and selectors and other interface elements for users to fill in based on the configuration information. For example, for the "credit card marketing" business type, based on the target calculation formula and corresponding configuration items, such as sales * 0.6 + customer satisfaction * 0.4, a calculator interface is generated, displaying controls such as sales input boxes and customer satisfaction drop-down menus, and users can enter corresponding values.
[0046] It should be noted that each target calculation configuration item has a corresponding input value, which can be obtained through user input, automatic crawling or other system interfaces. Specifically, according to the input control type of each configuration item, appropriate controls can be displayed for users to fill in, or input values can be automatically filled in through data interaction with other systems. In one example, in the generated "credit card marketing" calculator interface, sales may be obtained through direct user input, while customer satisfaction can be filled in through data automatically extracted from the customer survey system.
[0047] Once all input values have been obtained and filled into the corresponding calculation configuration items, they will be calculated according to the target calculation formula. By operating the input values and the calculation formula, the final performance results can be output. In one example, after the input is completed, the performance score is automatically calculated according to the formula "sales * 0.6 + customer satisfaction * 0.4" and the calculation result is displayed on the interface.
[0048] It can be understood that by generating a target performance calculator, obtaining input values, and calculating performance results, a target performance calculator that matches different business types and calculation formulas can be automatically generated. In this way, not only is the high flexibility of the calculator's use ensured, and it can quickly adapt to changes in different businesses, but it also greatly improves the user experience and reduces the possibility of manual operation and errors. The automatically generated calculator can dynamically provide appropriate input controls and calculation logic according to business requirements, thereby improving the accuracy and efficiency of the calculation process. Ultimately, the performance results are automatically calculated based on real data, greatly reducing the need for manual intervention and reducing development and maintenance costs.
[0049] In the above embodiment, by dynamically determining the target business type and its corresponding calculation formula, and flexibly configuring the calculation items and their configuration information, a performance calculator adapted to different business types and cycles can be automatically generated. This method significantly improves the flexibility and maintainability of the performance calculator, avoids frequent manual adjustments and development investment, thereby reducing development and maintenance costs and improving efficiency.
[0050] In one embodiment, the step of obtaining configuration information of each target computing configuration item includes:
[0051] For each target calculation configuration item, the calculation item name, unit and display order of the target calculation configuration item entered by the user on the preset configuration interface are received, and the control type selection result of the target calculation configuration item is captured. If the control type selection result is an input box, an input item control in the form of an input box is generated for the target calculation configuration item. If the control type selection result is an option control, a value selection method configuration panel corresponding to the option item control is popped up to obtain the target value selection method of the target calculation configuration item, and an input item control in the form of an option is generated for the target calculation configuration item.
[0052] Among them, the control type refers to the form of the control used to receive user input, which can be an input box or an option control. The input item control refers to the interface element that the user interacts with in the calculator interface, which is used to receive data input. The value acquisition method refers to how to obtain the value of the configuration item from the outside, which can be manual input, selection from preset options, or obtaining data from other systems. The option control refers to a control that allows the user to select one or more options, usually in the form of a drop-down menu, radio button, multiple-choice box, etc.
[0053] Specifically, the data input by the user can be received through the interface. The calculation item name, unit and display order can be presented to the user through the form input control, and the user enters the calculation item name, selects the unit and sets the display order. For example, when setting the "sales" configuration item, the user enters "sales" as the name in the text box, selects "yuan" as the unit, and sets the display order to 1. Then, according to the control type selected by the user, the corresponding control can be dynamically generated. Specifically, if the user selects "input box", a text input box is generated; if "option control" is selected, a configuration panel will pop up, allowing the user to select the value method, which may include preset options, range selection, etc., and generate corresponding drop-down boxes, radio buttons and other controls on the interface. For example, if "option control" is selected, the user selects "select from list" in the pop-up panel, a drop-down box is generated according to this setting, and the user can select a suitable value from the predefined options. After the user selects, the corresponding control will be generated according to the setting.
[0054] In this embodiment, by receiving the calculation item name, unit and display order input by the user, and capturing the control type selection result, different calculation configuration items and corresponding input controls can be flexibly generated according to user needs. This dynamic configuration method can greatly improve the adaptability of the calculator configuration and can quickly respond to different business scenarios and changes in demand. When the control type is selected as "input box", a text box can be directly generated for the user to enter data; when the control type is selected as "option control", a value acquisition method configuration panel will pop up, allowing the user to select a suitable option acquisition method. Ultimately, the generated input item control will accurately match user needs, thereby improving the accuracy and convenience of data input. In this way, not only the user experience is improved, allowing users to set up more efficiently, but also the complexity of development and maintenance is reduced, making the calculator configuration more flexible and able to quickly adapt to different business needs and calculation formula changes.
[0055] In one embodiment, the step of obtaining a target value mode of the target computing configuration item and generating an input item control in the form of an option for the target computing configuration item includes:
[0056] When the direct entry value selection method in the value selection method configuration panel is selected, an input box for the user to enter the option value pops up, and the received option value is assigned to the control type selection result of the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
[0057] The value-taking configuration panel is a user interface panel used to set how to obtain the value of the target calculation configuration item. The panel usually provides multiple value-taking methods, allowing users to select an appropriate method to input or select data. The direct input value-taking method is a type of value-taking method that allows users to directly enter options instead of selecting from a predefined list of options or other data sources.
[0058] Specifically, in the value-taking mode configuration panel, the user selects "direct value-taking mode" as the value-taking mode of the target calculation configuration item through the interface. For example, when setting "customer satisfaction", the user selects "direct value-taking mode", indicating that he wants to directly enter the value of the item instead of selecting from predefined options. Once the user selects "direct value-taking mode", an input box will pop up, allowing the user to directly enter a numerical value or other option value in the input box. The input box will be dynamically generated and displayed on the interface, waiting for user input. For example, if the user selects "direct value-taking mode" and sets the "deposit type" configuration item, a text box will pop up in the configuration panel, in which the user can manually enter the optional deposit type. When the user completes the input and confirms, the value will be captured and recorded in the configuration item. After that, according to the direct value-taking mode selected by the user, an input item control in "option form" is generated for the target calculation configuration item. The specific form can be a drop-down box, radio button, etc.
[0059] In this embodiment, when the user selects the direct entry value method in the value selection configuration panel, an input box for entering option values pops up, and the input option value is assigned to the control type selection result of the target calculation configuration item, and finally an option form input item control is generated, so that different types of data input can be flexibly handled, especially when options cannot be predefined, allowing users to customize input content. This flexibility ensures that the performance calculator can adapt to various input requirements, improves the freedom and accuracy of data input, and enhances the user's control over the calculation configuration. Through dynamically generated input controls, appropriate input boxes or selection boxes can be generated according to actual needs, reducing manual intervention, improving efficiency, and ensuring the accuracy and consistency of input values.
[0060] In one embodiment, the step of obtaining a target value mode of the target computing configuration item and generating an input item control in the form of an option for the target computing configuration item further includes:
[0061] When the SQL query value method in the value method configuration panel is selected, an input box for the user to enter an SQL query statement pops up, and the received SQL query statement is assigned to the control type selection result of the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
[0062] The SQL query value acquisition method refers to a method of acquiring the value of a target computing configuration item from a database or other data source through an SQL query statement. An SQL query statement is a command used to access a database and extract data from it.
[0063] Specifically, when the user selects "SQL query value method" in the value method configuration panel, it indicates that the user hopes to obtain the value of the target configuration item from an external database or data source through an SQL query statement, and the user's selection result can be captured through a selection box, radio button or other controls. Once the user selects the SQL query value method, an input box pops up on the configuration interface, allowing the user to enter the SQL query statement. The input box can be a text box in which the user can manually write the query statement to obtain the value of the configuration item. For example, when configuring "Customer Balance", after the user selects the SQL query method, an input box pops up, and the user enters a SQL query statement such as `SELECT balance FROM accountsWHERE customer_id = 123` in the input box.
[0064] When the user enters an SQL query statement in the input box and confirms it, the entered SQL query statement is captured and assigned to the control type selection result of the target calculation configuration item. After that, an option form input item control is generated based on the SQL query statement entered by the user, that is, the control form related to the SQL query that appears on the interface, such as an output box or other interactive controls that display the query results. In an example, based on the query statement entered by the user, such as `SELECTbalance FROM accounts WHERE customer_id = 123`, a control that displays the query results is generated, and the user can use the control to display the query value in the subsequent calculation process.
[0065] In this embodiment, by selecting the SQL query value method and popping up an input box for the user to enter the SQL query statement, dynamic values can be flexibly extracted from external data sources, so that users do not need to manually enter values, but directly obtain the latest data from the database through SQL query. The input SQL query statement is assigned to the control type selection result of the target calculation configuration item, so that the value method of the configuration item is changed from static selection to dynamic query, which enhances flexibility and adaptability. When the option form input item control related to the SQL query is generated, the data extracted from the database can be directly displayed, which not only simplifies the management and update of the data, but also improves the dynamic processing ability of the configuration item, ensuring that performance calculations and other business processes can reflect the latest data in the database in real time. This not only reduces manual intervention and improves the automation level of data acquisition, but also ensures flexibility and can cope with different calculation and data requirements.
[0066] In one embodiment, the step of obtaining a target value mode of the target computing configuration item and generating an input item control in the form of an option for the target computing configuration item further includes:
[0067] When the multi-level linkage value method in the value method configuration panel is selected, an input box for the user to configure the linkage relationship pops up, and after updating the options of each level according to the received configuration linkage relationship, the control type selection result is assigned to the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
[0068] Among them, the multi-level linkage value selection method is a value selection method that selects and determines the value of the target calculation configuration item through the linkage relationship between multiple levels. The selection of each level will affect the options of the next level, forming a dependency relationship. The linkage relationship refers to the dependency relationship between multiple options, and the selection of one option will affect the optional range of other options. For example, after selecting a country, the province options will change dynamically according to the selection of the country.
[0069] Specifically, when the user selects "Multi-level linkage value method" in the value configuration panel, an input box pops up, allowing the user to configure the linkage relationship between each level. The input box can be a text box or a graphical interface, allowing the user to specify which options will affect other options. According to the linkage relationship configured by the user, the options at different levels are dynamically filtered or updated to ensure that the options at each level depend on the selections at the previous level. For example, assuming that the user sets a hierarchical relationship such as "Country->Province->City", after completing the settings and selecting "United States", the province options related to the United States will be updated and displayed. After selecting the province, the city options related to the province will be displayed.
[0070] When the user completes the linkage relationship configuration, the options at each level will be updated according to the configuration and the result will be assigned to the control type selection result of the target calculation configuration item, generating a corresponding option form input item control, which can be a dynamically updated drop-down menu or a multi-level selection box. The user can select the appropriate option level by level according to the linkage relationship.
[0071] In one example, when configuring the 2-level linkage value method, the user first selects the upper linkage item "sales region", and then enters the linkage SQL query statement, such as `SELECT region_name FROM sales_regions WHEREcountry_id = :country_id;`, where `:country_id` is a variable obtained from the upper linkage item "country", indicating the currently selected country ID. Then, the sales region options in the drop-down box or button are dynamically updated according to the query results. For example, when "United States" is selected, the drop-down box will display sales regions related to the United States, such as "West Coast", "East Coast", etc.
[0072] In another example, when configuring the 3-level linkage value method, the user selects "country" and "sales region" as the upper linkage items and enters two SQL query statements: one for obtaining the sales region list based on the country ID, and the other for obtaining the corresponding salesperson list based on the sales region ID. For example, `SELECT region_id, region_nameFROM sales_regions WHERE country_id = :country_id;` and `SELECT salesperson_id, salesperson_name FROM salespeople WHERE region_id = :region_id;`. Through these two queries, the relevant salesperson options can be dynamically loaded and assigned to the drop-down box according to the country and sales region selected by the user, thereby achieving the effect of 3-level linkage. On this basis, the performance indicators of each salesperson, such as sales volume, achievement rate, etc., can be further configured, and the corresponding performance results can be finally calculated.
[0073] In this embodiment, by selecting a multi-level linkage value-taking method and popping up an input box for configuring the linkage relationship, the dependency relationship between options at different levels can be dynamically processed, making data input more flexible and accurate. After the user has configured the linkage relationship, the options at each level are updated and assigned to the control type selection result of the target calculation configuration item, ensuring that the options at each level change dynamically according to the upper level selection, thereby ensuring the relevance and accuracy of the data. Ultimately, the generated option form input item control can realize multi-level linkage selection, allowing users to gradually select the correct value according to the hierarchical relationship, which not only simplifies the complexity of user input, but also improves the accuracy and flexibility of data input. In this way, the possibility of human error is effectively reduced and the data collection process is optimized.
[0074] In one embodiment, the step of generating a target performance calculator for a target business type according to the target calculation formula, and each target calculation configuration item and its configuration information includes:
[0075] According to the display order of each target calculation configuration item, determine the calculation item name, input item control and unit arrangement order of each target calculation configuration item, generate the target performance calculator interface, and bind the input item control of each target calculation configuration item to the corresponding calculation item in the target calculation formula to obtain the target performance calculator of the target business type.
[0076] Specifically, the target calculation configuration items are sorted according to the display order configuration, and the calculation item names, input item controls, and units are arranged in the specified order. For example, if the display order is configured as "sales -> achievement rate -> commission", each calculation item is displayed in this order, and the corresponding input item controls and units are generated for each calculation item. Then, based on the sorted target calculation configuration items, the interface of the target performance calculator is generated, including input item controls and calculation item names, that is, corresponding interface elements such as text boxes, drop-down boxes, etc. are generated for each calculation item, and the relevant calculation item names and units are bound. For example, for the "sales" calculation item, an input box is generated, and "sales" is displayed as the calculation item name, and "unit: yuan" is displayed next to it.
[0077] After that, bind the input item control of each target calculation configuration item to the corresponding calculation item in the target calculation formula to ensure that the value entered by the user can affect the calculation result. Specifically, establish an association between each input item control and the calculation item in the target calculation formula. Whenever the user enters data, use the data for calculation. For example, when the user enters a specific value in the "Sales" input box, this value is bound to the "Sales" variable in the target calculation formula, and the final performance calculation is based on this value.
[0078] In this embodiment, the purpose of determining the display order, generating the performance calculator interface, and binding the calculation items is to ensure that the target performance calculator interface can efficiently and accurately display and calculate performance data. First, the calculation items are sorted according to the display order configuration to ensure that the display of the interface meets user expectations and is easy to operate and understand. Then, by generating interface elements, users can enter corresponding data according to the calculation item name and unit displayed on the interface, and automatically generate adaptive input item controls, such as text boxes or drop-down boxes, thereby improving the accuracy of user input and the fluency of interaction.
[0079] In addition, binding each input item control to the corresponding calculation item in the target calculation formula ensures that the input data can directly affect the calculation result. Through this binding method, the performance results can be calculated and updated immediately when the user enters data, reducing the workload and errors of manual calculations and improving the automation and calculation efficiency of the calculator.
[0080] The performance calculator configuration device provided in the embodiment of the present application is described below. The performance calculator configuration device described below and the performance calculator configuration method described above can be referred to in correspondence with each other. Figure 2 As shown, the present application provides a performance calculator configuration device, the device comprising:
[0081] The target business type determination module 201 is used to determine the target business type and obtain the target calculation formula corresponding to the target business type;
[0082] The configuration information acquisition module 202 is used to determine the target calculation configuration item corresponding to the target business type according to the target calculation formula, and obtain the configuration information of each target calculation configuration item, the configuration information including the calculation item name, input item control, unit and display order;
[0083] The target performance calculator generation module 203 is used to generate a target performance calculator for the target business type according to the target calculation formula, each target calculation configuration item and its configuration information, so that in the target performance calculator, each target calculation configuration item has a corresponding input value and calculates the performance result of the target business type.
[0084] In one embodiment, the configuration information acquisition module 202 includes:
[0085] A configuration information acquisition unit is used to receive, for each target calculation configuration item, the calculation item name, unit and display order of the target calculation configuration item input by the user on the preset configuration interface, and capture the control type selection result of the target calculation configuration item. If the control type selection result is an input box, an input item control in the form of an input box is generated for the target calculation configuration item. If the control type selection result is an option control, a value selection method configuration panel corresponding to the option item control is popped up to obtain the target value selection method of the target calculation configuration item, and an input item control in the form of an option is generated for the target calculation configuration item.
[0086] In one embodiment, the configuration information acquisition unit includes:
[0087] The first input item control generation subunit is used to pop up an input box for the user to input option values when the direct entry value selection method in the value selection method configuration panel is selected, and assign the received option value to the control type selection result of the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
[0088] In one embodiment, the configuration information acquisition unit further includes:
[0089] The second input item control generation subunit is used to pop up an input box for the user to enter an SQL query statement when the SQL query value method in the value method configuration panel is selected, and assign the received SQL query statement to the control type selection result of the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
[0090] In one embodiment, the configuration information acquisition unit further includes:
[0091] The third input item control generation sub-unit is used to pop up an input box for the user to configure the linkage relationship when the multi-level linkage value method in the value method configuration panel is selected, and after updating the options of each level according to the received configuration linkage relationship, assign the control type selection result to the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
[0092] In one embodiment, the target performance calculator generation module 203 includes:
[0093] The target performance calculator generation unit is used to generate a target performance calculator interface after determining the calculation item name, input item control and unit arrangement order of each target calculation configuration item according to the display order of each target calculation configuration item, and bind the input item control of each target calculation configuration item with the corresponding calculation item in the target calculation formula to obtain the target performance calculator of the target business type.
[0094] In one embodiment, the present application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the performance calculator configuration method as described in any of the above embodiments.
[0095] In one embodiment, the present application also provides a computer device having computer-readable instructions stored therein. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the performance calculator configuration method as described in any of the above embodiments.
[0096] Indicatively, Figure 3 As shown, Figure 3 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 may be provided as a server. Figure 3 The computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301 for storing instructions executable by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 302 is configured to execute instructions to perform the performance calculator configuration method of any of the above embodiments.
[0097] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.
[0098] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0099] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not clearly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. Herein, "one", "one", "said", "the" and "it" may also include plural forms, unless the context clearly indicates another way. A plurality refers to at least two cases, such as 2, 3, 5 or 8, etc. "And / or" includes any and all combinations of the relevant listed items.
[0100] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0101] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A performance calculator configuration method, characterized in that: The method comprises: Determine the target business type and obtain the target calculation formula corresponding to the target business type; According to the target calculation formula, determine the target calculation configuration item corresponding to the target business type, and obtain configuration information of each of the target calculation configuration items, the configuration information including the calculation item name, input item control, unit and display order; According to the target calculation formula, and each of the target calculation configuration items and their configuration information, a target performance calculator for the target business type is generated, so that in the target performance calculator, each of the target calculation configuration items has a corresponding input value, and the performance result of the target business type is calculated.
2. The performance calculator configuration method according to claim 1, characterized in that: The step of obtaining configuration information of each target computing configuration item includes: For each of the target calculation configuration items, the calculation item name, unit and display order of the target calculation configuration item entered by the user on the preset configuration interface are received, and the control type selection result of the target calculation configuration item is captured. If the control type selection result is an input box, an input item control in the form of an input box is generated for the target calculation configuration item. If the control type selection result is an option control, a value selection method configuration panel corresponding to the option item control is popped up to obtain the target value selection method of the target calculation configuration item, and an input item control in the form of an option is generated for the target calculation configuration item.
3. The performance calculator configuration method according to claim 2, characterized in that: The step of obtaining the target value mode of the target computing configuration item and generating an input item control in the form of an option for the target computing configuration item includes: When the direct entry value selection method in the value selection method configuration panel is selected, an input box for the user to enter the option value pops up, and the received option value is assigned to the control type selection result of the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
4. The performance calculator configuration method according to claim 2, characterized in that: The step of obtaining a target value mode of the target computing configuration item and generating an input item control in the form of an option for the target computing configuration item also includes: When the SQL query value method in the value method configuration panel is selected, an input box for the user to enter an SQL query statement pops up, and the received SQL query statement is assigned to the control type selection result of the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
5. The performance calculator configuration method according to claim 2, characterized in that: The step of obtaining a target value mode of the target computing configuration item and generating an input item control in the form of an option for the target computing configuration item also includes: When the multi-level linkage value method in the value method configuration panel is selected, an input box for the user to configure the linkage relationship pops up, and after updating the options of each level according to the received configuration linkage relationship, the control type selection result is assigned to the target calculation configuration item to obtain the option form input item control of the target calculation configuration item.
6. The performance calculator configuration method according to any one of claims 1 to 5, characterized in that: The step of generating a target performance calculator for the target business type according to the target calculation formula, and each of the target calculation configuration items and their configuration information, comprises: According to the display order of each of the target calculation configuration items, the target performance calculator interface is generated after determining the arrangement order of the calculation item name, input item control and unit of each of the target calculation configuration items, and the input item control of each of the target calculation configuration items is bound to the corresponding calculation item in the target calculation formula to obtain the target performance calculator of the target business type.
7. A performance calculator configuration device, characterized in that: The device comprises: A target business type determination module is used to determine the target business type and obtain a target calculation formula corresponding to the target business type; A configuration information acquisition module, used to determine the target calculation configuration item corresponding to the target business type according to the target calculation formula, and obtain the configuration information of each target calculation configuration item, wherein the configuration information includes the calculation item name, input item control, unit and display order; The target performance calculator generation module is used to generate a target performance calculator for the target business type according to the target calculation formula, and each of the target calculation configuration items and their configuration information, so that in the target performance calculator, each of the target calculation configuration items has a corresponding input value and calculates the performance result of the target business type.
8. The performance calculator configuration device according to claim 7, characterized in that: The configuration information acquisition module includes: A configuration information acquisition unit is used to receive, for each of the target computing configuration items, the calculation item name, unit and display order of the target computing configuration item input by the user on the preset configuration interface, and capture the control type selection result of the target computing configuration item. If the control type selection result is an input box, an input item control in the form of an input box is generated for the target computing configuration item. If the control type selection result is an option control, a value selection method configuration panel corresponding to the option item control is popped up to obtain the target value selection method of the target computing configuration item, and an input item control in the form of an option is generated for the target computing configuration item.
9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to execute the steps of the performance calculator configuration method as described in any one of claims 1 to 6.
10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, which, when executed by the one or more processors, perform the steps of the performance calculator configuration method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Business data calculation method and device, storage medium and computer equipment
CN115759019A
Salary calculation system and method, electronic equipment and computer readable storage medium
CN117314379A
Business model modeling method and device, equipment and storage medium
CN117992035A