Method, device, equipment and storage medium for generating business calculation script
By obtaining and rendering the keyboard information of business calculation rules and generating business calculation scripts based on the keyboard interface, the problem of different business calculation needs of different users increases the difficulty of development is solved, and the user's own configuration scripts are realized, reducing the difficulty of development.
Patent Information
- Application Number
- CN202410713149.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2044-06-04
AI Technical Summary
In business calculation in payment scenarios, different users of the same business calculation have different computing needs, which leads to developers need to design specific business calculation scripts for each user, which increases the difficulty of software development.
By obtaining keyboard information for business calculation rules, a keyboard interface matching the business calculation rules is rendered, and a business calculation script corresponding to the business calculation rules is generated based on the triggering of at least two keys in the keyboard interface.
It realizes that users configure business computing scripts that meet their own needs, reduces the difficulty of development of business computing software, and enables a software development to meet the business computing needs of different users.
Smart Images

Figure CN118672564B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for generating a business calculation script. Background Art
[0002] Business calculations in payment scenarios include transaction fee calculations, member user classification calculations, coupon hit calculations, account settlement calculations, risk assessment calculations, and risk control calculations. Different users have different calculation requirements for the same business calculations. Therefore, when developing business calculation software, developers are required to design corresponding business calculation scripts for each user's specific calculation requirements, which undoubtedly increases the difficulty of developing business calculation software. Therefore, how to reduce the difficulty of developing business calculation software is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0003] In view of this, the present disclosure proposes a method, apparatus, device and storage medium for generating a business computing script, which can reduce the difficulty of developing business computing software.
[0004] According to a first aspect of the present disclosure, a method for generating a business calculation script is provided, comprising:
[0005] Get the keyboard information configured for the business calculation rule;
[0006] Rendering a keyboard interface matching the business calculation rule based on the keyboard information, wherein the keyboard interface includes a plurality of key positions for generating the business calculation rule;
[0007] Based on the triggering of at least two of the key positions in the keyboard interface, a business calculation script corresponding to the business calculation rule is generated.
[0008] In a possible implementation, the keyboard information includes: a keyboard name, an associated service, and at least one of key position information of each key position; wherein the key position information includes: at least one of a key position sequence number, a key position symbol, a key position type, and an associated key position code.
[0009] In a possible implementation, when keyboard information configured for a business computing rule is obtained, it is implemented based on a preset keyboard configuration interface.
[0010] In a possible implementation, before obtaining keyboard information configured for the business calculation rule, the method further includes: obtaining key code information configured for the business calculation rule;
[0011] The key code information includes at least one of a key code name, a function description, a key code type, an identifier, and a corresponding code value.
[0012] In a possible implementation, when key code information configured for a business calculation rule is obtained, it is implemented based on a preset key code configuration interface.
[0013] In a possible implementation, when rendering a keyboard interface matching the business calculation rule based on the keyboard information, the method includes:
[0014] Obtaining key position information of each key position in the keyboard information;
[0015] Extracting the serial number and key position symbol of each key position from the key position information of each key position;
[0016] Based on the sequence number and key position symbol of each key position, a keyboard interface matching the business calculation rule is rendered.
[0017] In a possible implementation, when generating a business calculation script corresponding to the business calculation rule based on the triggering of at least two of the key positions in the keyboard interface, the process includes:
[0018] Get the key position information of each triggered key position;
[0019] Extracting the associated key position code of each of the triggered key positions from the key position information of each of the triggered key positions;
[0020] Based on the associated key position codes of the triggered keys, a business calculation script corresponding to the business calculation rule is generated.
[0021] According to a second aspect of the present disclosure, a device for generating a business calculation script is provided, comprising:
[0022] A keyboard information acquisition module is used to obtain keyboard information configured for business calculation rules;
[0023] A keyboard interface generation module, used to render a keyboard interface matching the business calculation rule based on the keyboard information, wherein the keyboard interface includes a plurality of key positions for generating the business calculation rule;
[0024] The script generation module is used to generate a business calculation script corresponding to the business calculation rule based on the triggering of at least two of the key positions in the keyboard interface.
[0025] According to a third aspect of the present disclosure, a device for generating a business calculation script is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the method described in the first aspect of the present disclosure.
[0026] According to a fourth aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, implement the method described in the first aspect of the present disclosure.
[0027] The present disclosure provides a method, apparatus, device and storage medium for generating a business calculation script, the method comprising: obtaining keyboard information configured for a business calculation rule; rendering a keyboard interface matching the business calculation rule based on the keyboard information, wherein the keyboard interface includes a plurality of key positions for generating the business calculation rule; generating a business calculation script corresponding to the business calculation rule based on the triggering of at least two key positions in the keyboard interface. It can be seen that in the present application, after the software is delivered to the user, the user can configure a business calculation script that meets his or her needs based on the method for generating the business calculation script configured in the software system, so that it meets his or her business calculation needs. It can be seen that the method disclosed in the present disclosure can realize a one-time software development to meet the business calculation needs of different users, thereby reducing the difficulty of developing business calculation software.
[0028] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0030] Figure 1 A flowchart showing a method for generating a business calculation script according to an embodiment of the present disclosure;
[0031] Figure 2 A schematic diagram showing an interface of a keyboard configuration interface according to an embodiment of the present disclosure is shown;
[0032] Figure 3 A schematic diagram showing an interface of a key code configuration interface according to an embodiment of the present disclosure;
[0033] Figure 4 A schematic diagram showing a key code configuration interface according to another embodiment of the present disclosure;
[0034] Figure 5 A schematic diagram showing a keyboard interface corresponding to reward calculation according to an embodiment of the present disclosure;
[0035] Figure 6 A schematic diagram showing a keyboard interface corresponding to reward calculation according to another embodiment of the present disclosure;
[0036] Figure 7A schematic block diagram showing a device for generating a business calculation script according to an embodiment of the present disclosure;
[0037] Figure 8 A schematic block diagram of a device for generating a business calculation script according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0038] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0039] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0040] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0041] <Method Example>
[0042] Figure 1 A flow chart showing a method for generating a business calculation script according to an embodiment of the present disclosure is shown. Figure 1 As shown, the method includes steps S1100-S1200.
[0043] S1100: Obtain keyboard information configured for a business calculation rule.
[0044] In a possible implementation, the keyboard information may include at least one of: a keyboard name, an associated service, and key information of each key position. The key information may include at least one of: a key serial number, a key symbol, a key type, and an associated key code. The serial number is used to indicate the display order of the key position; the key symbol is used to indicate the display identifier on the key position; the key type is used to indicate the data type corresponding to the display identifier on the key position in the business calculation rule, and the key type may include at least one of a system constant identifier, an operation expression symbol, a parameter identifier, a variable identifier, and a parameter placeholder; the associated key code is used to indicate the key code name associated with the key position.
[0045] In a possible implementation, when obtaining keyboard information configured for a business calculation rule, it is implemented based on a preset keyboard configuration interface. Specifically, when configuring the keyboard information, a keyboard configuration control in the business calculation script configuration interface can be triggered. When the keyboard configuration control is triggered, the keyboard configuration interface will be pushed and displayed, so that the user can enter the keyboard information configured for the business calculation rule through the keyboard configuration interface. After the user completes the input of each keyboard information, the save control in the keyboard configuration interface is triggered. When the save control is triggered, the software system executing the method of this embodiment can obtain the keyboard information configured for the business calculation rule.
[0046] In the embodiment where the keyboard information includes the keyboard name, associated services, and the serial number, key symbol, key type, and associated key code of each key position, when the keyboard configuration control is triggered, the push display will be as follows: Figure 2 The keyboard configuration interface shown. After the user determines the specific business calculation rules, the keyboard information can be configured through the keyboard configuration interface. Specifically, the keyboard name can be configured according to the name of the business calculation, the associated business can be configured according to the business to which the business calculation belongs, and the corresponding key position information can be configured according to the various parameters that constitute the business calculation rules and the symbols that may be involved.
[0047] For example, the current business calculation is the member reward calculation, and the reward calculation rule corresponding to the reward calculation is ((income + activity reward) × tax rate) + (expenditure × fee rate) + deposit standard reward. Figure 2 The keyboard configuration interface shown can include the following operations when configuring the keyboard information for the reward calculation:
[0048] First, enter the reward calculation in the information input box corresponding to the keyboard name, that is, use the name of the business calculation as the keyboard name.
[0049] Second, select Reward Calculation in the selection box corresponding to the associated business, that is, configure the business to which the business calculation belongs as an associated business.
[0050] Third, in the key position information input area corresponding to the key position added and mapped, the key position information corresponding to the parameters constituting the reward calculation rules and the symbols that may be involved are configured in turn. Specifically, the parameters constituting the above reward calculation rules include "income", "activity reward", "tax rate", "expenditure", "rate" and "deposit standard reward", and the symbols that may be involved include: "(", ")", "+", "-", "×", "÷" and "cancel", then the key position information configured for the above parameters and symbols can be as shown in Table 1.
[0051] Table 1
[0052]
[0053]
[0054] As can be seen from Table 1, each parameter and symbol in the business calculation rule is set with corresponding key information, wherein the serial number in each key information can be determined according to the display order of the parameters or symbols in the keyboard interface, the key symbol is determined according to the display identification of the parameter or symbol on the key position, the key type is determined according to the data type corresponding to the display identification of the parameter or symbol in the business calculation rule, and the associated key code is determined according to the display identification of the parameter or symbol on the key position.
[0055] After completing the configuration of the parameters in the reward calculation rules and the key information corresponding to the symbols that may be involved, you can click Figure 2 The save control in the example, when the save control is triggered, the software system executing the method of this embodiment can obtain the keyboard information configured for the reward calculation rule.
[0056] It should be noted here that Figure 2 A keyboard preview area is also set in the keyboard configuration interface shown. When the user configures the key information of each key position in sequence, the software system will render the display effect of the configured key position in the key area of the keyboard interface according to the serial number and key symbol of each configured key position and the preset key rendering program. In this way, the user can browse the display effect of each key position in the key area in time, and determine whether it is necessary to adjust the key serial number of the configured key position according to the current display effect.
[0057] In a possible implementation, before obtaining the keyboard information configured for the business calculation rule, it also includes: obtaining the key code information configured for the business calculation rule. The key code information includes at least one of the name of the key code, the function description, the key code type, the identifier, and the corresponding code value. The function description is used to define and explain the name of the key code; the key code type is used to indicate the data type corresponding to the identifier in the business calculation rule, and the key code type includes at least one of the system constant identifier, the operation expression symbol, the parameter identifier, the variable identifier, and the parameter placeholder; the identifier is the representation corresponding to the key symbol in the business calculation rule, and the code value is the value corresponding to the key symbol in the business calculation rule.
[0058] In a possible implementation, when obtaining key code information configured for a business calculation rule, it is implemented based on a preset key code configuration interface. Specifically, when configuring the key code information, a key code configuration control in the business calculation script configuration interface can be triggered. When the key code configuration control is triggered, the key code configuration interface will be pushed and displayed, so that the user can enter the key code information of the key code that may be involved in the business calculation through the key code configuration interface.
[0059] In the embodiment where the key code information includes a name, a function description, a key code type, an identifier, and a corresponding code value, when the key code configuration control is triggered, a push display is displayed as follows: Figure 3 The key code configuration interface shown. After the user determines the specific business calculation rules, the user can use the key code configuration interface to configure the key code information that may be used in the business calculation rules.
[0060] Continuing with the above embodiment, in the embodiment where the current business calculation is a member's reward calculation, it is also necessary to configure corresponding key code information for each parameter constituting the reward calculation rule and the symbols that may be involved before configuring the keyboard information. The configuration of the key code information is specifically described below using the symbol "(" and the parameter "rate" as examples.
[0061] Specifically, for the symbol "(", when the key code configuration control is triggered, the following will be pushed: Figure 3 In the key code configuration interface shown, enter the left bracket in the input box corresponding to the key code name, enter the left bracket operator ( in the input box corresponding to the key code description, and select the operation expression symbol in the selection box of the key code type. When the operation expression symbol is selected, Figure 3 The key code value input box in will be hidden, and the result will be as follows Figure 4 The key code configuration interface shown in the figure continues to enter the key code identifier (in the input box corresponding to the key code. Finally, click the Save control in the key code configuration interface. When the Save control is triggered, the software system executing the method of this embodiment can obtain the key code information configured for the symbol "(" in the business calculation rule.
[0062] For the "rate" parameter, when the key code configuration control is triggered, the following information will be pushed: Figure 3In the key code configuration interface shown, enter the rate in the input box corresponding to the key code name, enter the transaction fee rate percentage for the main scan transaction in the input box corresponding to the key code description, select the variable identifier in the key code type selection box, enter the key code identifier c in the input box corresponding to the key code, enter the key code value 0.215 set for the rate in the input box corresponding to the key code value, and finally click the save control in the key code configuration interface. When the save control is triggered, the software system executing the method of this embodiment can obtain the key code information configured for the "rate" parameter in the business calculation rule.
[0063] After completing the configuration of all key code information for the reward calculation rules according to the above method, associate all key information with the reward calculation business calculation. In this way, when configuring the keyboard information later, after selecting reward calculation in the selection box corresponding to the associated business, when configuring the associated key code of each key position, click the input box corresponding to the associated key code, and the names of all key codes associated with the reward calculation business will be pushed and displayed. In this way, the user can directly select the key code name corresponding to the key position from the key code names pushed and displayed, so that the association between keys and key codes can be efficiently realized.
[0064] S1200: Render a keyboard interface matching the business calculation rule based on the keyboard information, wherein the keyboard interface includes a plurality of key positions for generating the business calculation rule.
[0065] In a possible implementation, when rendering a keyboard interface matching the business calculation rule based on keyboard information, the following steps may be included:
[0066] First, obtain the key position information of each key in the keyboard information.
[0067] Second, extract the serial number and key position symbol of each key position from the key position information of each key position.
[0068] Third, based on the serial numbers and key symbols of each key position, a keyboard interface matching the business calculation rule is rendered. Specifically, the key symbols of each key position are displayed in sequence in the key area of the keyboard interface according to the serial numbers of the key symbols.
[0069] In an embodiment where the keyboard name is Reward Calculation, the associated business is Reward Calculation, and the key position information of each key position in the keyboard is as shown in Table 1, the following will be rendered for Reward Calculation: Figure 5 The keyboard interface shown.
[0070] S1300: Generate a business calculation script corresponding to a business calculation rule based on the triggering of at least two keys in a keyboard interface.
[0071] In a possible implementation, when generating a business calculation script corresponding to a business calculation rule based on the triggering of at least two keys in a keyboard interface, the following steps may be included:
[0072] First, the key position information of each triggered key position is obtained. Specifically, after the user determines the business calculation rule, the key positions corresponding to the calculation rule are triggered in the keyboard interface in sequence. When the key positions are triggered, the software system can obtain the key position information of each triggered key position.
[0073] For example, when the business calculation is reward calculation, the reward calculation rule is ((income + activity reward) × tax rate) + (expenditure × fee rate) + deposit target reward. The keyboard interface is as follows: Figure 5 In the embodiment shown, the user can click on the key symbols (, (, income, +, activity reward, ), ×, tax rate, ), +, (, expenditure, ×, rate, ), + and deposit target reward in sequence, so that the software system can obtain the key information corresponding to each triggered key in sequence.
[0074] Second, the associated key position code of each triggered key position is extracted from the key position information of each triggered key position.
[0075] Continuing with the above embodiment, the associated key codes of the above triggered keys can be left bracket, left bracket, income, plus sign, activity reward, right bracket, multiplication sign, tax rate, right bracket, plus sign, left bracket, expenditure, multiplication sign, rate, right bracket, plus sign and deposit reaching reward in sequence.
[0076] Third, based on the associated key codes of each triggered key position, a business calculation script corresponding to the business calculation rule is generated. Specifically, the key code information of each associated key code is read in sequence, and the identifier of each associated key code is extracted from the key code information of each associated key code, and the identifiers of each associated key code are combined according to the triggering order to obtain the business calculation script corresponding to the business calculation rule, and the generated business calculation script is displayed in the script area of the keyboard interface.
[0077] It should be noted here that in order to clearly demonstrate the correspondence between the business calculation script and the business calculation rules, when extracting the associated key code of each triggered key from the key information of each triggered key, the key symbol of each triggered key will also be extracted, and the key symbols of each triggered key will be combined in sequence according to the triggering order to obtain the business calculation rules, and the business calculation rules will be displayed in the preview area of the keyboard interface.
[0078] In an embodiment where the business calculation is a reward calculation, and the reward calculation rule of the reward calculation is ((income + activity reward) × tax rate) + (expenditure × fee rate) + deposit standard reward, the keyboard interface including the reward calculation rule and the reward calculation script can be as follows Figure 6 shown.
[0079] After generating the business calculation script, click the submit control in the keyboard interface. When the submit control is triggered, the software system will store the business calculation script and associate the storage ID of the business calculation script with the business calculation. In this way, when performing business calculations later, the corresponding business calculation script can be read based on the ID associated with the business calculation, and the operating environment of the business calculation script can be constructed. Based on the initialization assignment of each parameter in the business calculation script, the final calculation formula is obtained, and business calculations are performed based on the final calculation formula, and subsequent business functions are executed based on the calculated results.
[0080] When initializing and assigning values to various parameters in the business calculation script, it is based on the key code type and key code value corresponding to each parameter. Specifically, when the key code type is a system constant identifier, it is assigned to the corresponding key code value through initialization; when the key code type is a parameter identifier, it is assigned to the corresponding actual parameter value through initialization; when the key code type is a variable identifier, it is assigned to the corresponding key code value through initialization. For example, the business calculation rule is transaction amount × rate, where the key code corresponding to the transaction amount key is a, the key code type is a parameter identifier, the key code corresponding to the rate key is c, the key type is a variable identifier, and the key code value is 0.215, then the corresponding business calculation script is a×c, when initialization is performed, a is assigned to the actual transaction amount, c is assigned to 0.215, and the final calculation formula obtained is actual transaction amount × 0.215.
[0081] The present disclosure provides a method for generating a business calculation script, including: obtaining keyboard information configured for a business calculation rule; rendering a keyboard interface matching the business calculation rule based on the keyboard information, wherein the keyboard interface includes a plurality of key positions for generating the business calculation rule; generating a business calculation script corresponding to the business calculation rule based on the triggering of at least two key positions in the keyboard interface. It can be seen that in the present application, after the software is delivered to the user, the user can configure a business calculation script that meets his or her own needs based on the method for generating the business calculation script configured in the software system, so that it can meet his or her own business calculation needs. It can be seen that the method of the present disclosure can realize one-time software development to meet the business calculation needs of different users, thereby reducing the difficulty of developing business calculation software.
[0082] The running script of the verification business can also be implemented based on the same concept, which will not be described here.
[0083] <Device Example>
[0084] Figure 7A schematic block diagram of a device for generating a business calculation script according to an embodiment of the present disclosure is shown. Figure 7 As shown, the device 100 includes:
[0085] A keyboard information acquisition module 110 is used to acquire keyboard information configured for a business calculation rule;
[0086] A keyboard interface generation module 120, configured to render a keyboard interface matching the business calculation rule based on the keyboard information, wherein the keyboard interface includes a plurality of key positions for generating the business calculation rule;
[0087] The script generation module 130 is used to generate a business calculation script corresponding to the business calculation rule based on the triggering of at least two keys in the keyboard interface.
[0088] <Equipment Embodiment>
[0089] Figure 8 A schematic block diagram of a device for generating a business calculation script according to an embodiment of the present disclosure is shown. Figure 8 As shown, the device 200 for generating a business calculation script includes: a processor 210 and a memory 220 for storing executable instructions of the processor 210. The processor 210 is configured to implement any of the above-mentioned methods for generating a business calculation script when executing the executable instructions.
[0090] Here, it should be noted that the number of processors 210 may be one or more. At the same time, in the business calculation script generation device 200 of the embodiment of the present disclosure, an input device 230 and an output device 240 may also be included. Among them, the processor 210, the memory 220, the input device 230 and the output device 240 may be connected through a bus or in other ways, which are not specifically limited here.
[0091] The memory 220 is a computer-readable storage medium that can be used to store software programs, computer executable programs, and various modules, such as the program or module corresponding to the method for generating a business calculation script in the embodiment of the present disclosure. The processor 210 executes various functional applications and data processing of the business calculation script generation device 200 by running the software program or module stored in the memory 220.
[0092] The input device 230 may be used to receive input numbers or signals. The signals may be key signals related to user settings and function control of the device / terminal / server. The output device 240 may include display devices such as display screens.
[0093] <Storage Medium Embodiment>
[0094] According to a fourth aspect of the present disclosure, a non-volatile computer-readable storage medium is also provided, on which computer program instructions are stored. When the computer program instructions are executed by the processor 210, any of the above-mentioned methods for generating a business calculation script is implemented.
[0095] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for generating a business calculation script, characterized in that: include: Get the keyboard information configured for the business calculation rule; Rendering a keyboard interface matching the business calculation rule based on the keyboard information, wherein the keyboard interface includes a plurality of key positions for generating the business calculation rule; Based on the triggering of at least two of the keys in the keyboard interface, generating a business calculation script corresponding to the business calculation rule; The keyboard information includes: at least one of a keyboard name, an associated business, and key position information of each key position; when obtaining the keyboard information configured for the business calculation rule, it is implemented based on a preset keyboard configuration interface. Specifically, when configuring the keyboard information, a keyboard configuration control in the business calculation script configuration interface can be triggered. When the keyboard configuration control is triggered, the keyboard configuration interface will be pushed to display, the keyboard name is configured according to the name of the business calculation, the associated business is configured according to the business to which the business calculation belongs, and the corresponding key position information is configured according to the various parameters constituting the business calculation rule and the symbols that may be involved, wherein the key position information includes: at least one of a key position sequence number, a key position symbol, a key position type, and an associated key position code, the key position sequence number is determined according to the display order of the parameters or symbols in the business calculation rule in the keyboard interface, the key position symbol of the key position is determined according to the display identifier of the parameters or symbols on the key position in the business calculation rule, the key position type of the key position is determined according to the data type corresponding to the display identifier of the parameters or symbols in the business calculation rule in the business calculation rule, and the associated key position code of the key position is determined according to the display identifier of the parameters or symbols on the key position in the business calculation rule; Before obtaining the keyboard information configured for the business calculation rule, the method further includes: obtaining the key code information configured for the business calculation rule, wherein the key code information includes at least one of a name of the key code, a function description, a key code type, an identifier, and a corresponding code value, wherein the function description is used to define and explain the name of the key code; the key code type is used to indicate the data type corresponding to the identifier in the business calculation rule, and the key code type includes at least one of a system constant identifier, an operation expression symbol, a parameter identifier, a variable identifier, and a parameter placeholder; the identifier is the representation form corresponding to the key symbol in the business calculation rule, and the code value is the value corresponding to the key symbol in the business calculation rule; When obtaining key code information configured for business calculation rules, it is implemented based on the preset key code configuration interface; When generating a business calculation script corresponding to the business calculation rule based on the triggering of at least two of the key positions in the keyboard interface, it includes: acquiring the key position information of each triggered key position; extracting the associated key position code of each triggered key position from the key position information of each triggered key position; and generating the business calculation script corresponding to the business calculation rule based on the associated key position code of each triggered key position.
2. The method according to claim 1, characterized in that When rendering a keyboard interface matching the business calculation rule based on the keyboard information, it includes: Obtaining key position information of each key position in the keyboard information; Extracting the serial number and key position symbol of each key position from the key position information of each key position; Based on the sequence number and key position symbol of each key position, a keyboard interface matching the business calculation rule is rendered.
3. A device for generating a business calculation script, characterized in that: include: A keyboard information acquisition module is used to obtain keyboard information configured for business calculation rules; A keyboard interface generation module, used to render a keyboard interface matching the business calculation rule based on the keyboard information, wherein the keyboard interface includes a plurality of key positions for generating the business calculation rule; A script generation module, used for generating a business calculation script corresponding to the business calculation rule based on the triggering of at least two of the key positions in the keyboard interface; The keyboard information includes: at least one of a keyboard name, an associated business, and key position information of each key position; when obtaining the keyboard information configured for the business calculation rule, it is implemented based on a preset keyboard configuration interface. Specifically, when configuring the keyboard information, a keyboard configuration control in the business calculation script configuration interface can be triggered. When the keyboard configuration control is triggered, the keyboard configuration interface will be pushed to display, the keyboard name is configured according to the name of the business calculation, the associated business is configured according to the business to which the business calculation belongs, and the corresponding key position information is configured according to the various parameters constituting the business calculation rule and the symbols that may be involved, wherein the key position information includes: at least one of a key position sequence number, a key position symbol, a key position type, and an associated key position code, the key position sequence number is determined according to the display order of the parameters or symbols in the business calculation rule in the keyboard interface, the key position symbol of the key position is determined according to the display identifier of the parameters or symbols on the key position in the business calculation rule, the key position type of the key position is determined according to the data type corresponding to the display identifier of the parameters or symbols in the business calculation rule in the business calculation rule, and the associated key position code of the key position is determined according to the display identifier of the parameters or symbols on the key position in the business calculation rule; Before obtaining the keyboard information configured for the business calculation rule, the method further includes: obtaining the key code information configured for the business calculation rule, wherein the key code information includes at least one of a name of the key code, a function description, a key code type, an identifier, and a corresponding code value, wherein the function description is used to define and explain the name of the key code; the key code type is used to indicate the data type corresponding to the identifier in the business calculation rule, and the key code type includes at least one of a system constant identifier, an operation expression symbol, a parameter identifier, a variable identifier, and a parameter placeholder; the identifier is the representation form corresponding to the key symbol in the business calculation rule, and the code value is the value corresponding to the key symbol in the business calculation rule; When obtaining key code information configured for business calculation rules, it is implemented based on the preset key code configuration interface; When generating a business calculation script corresponding to the business calculation rule based on the triggering of at least two of the key positions in the keyboard interface, it includes: acquiring the key position information of each triggered key position; extracting the associated key position code of each triggered key position from the key position information of each triggered key position; and generating the business calculation script corresponding to the business calculation rule based on the associated key position code of each triggered key position.
4. A device for generating a business calculation script, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method described in any one of claims 1 to 2 when executing the executable instructions.
5. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
A touch control type mobile computing device used for performing data computing in different sense and a computing method thereof
CN106991068A
Control method and system for mobile terminal calculator, and mobile terminal
CN108021329A