CN113947297A - Formula conversion method and system based on template variables - Google Patents

Formula conversion method and system based on template variables Download PDF

Info

Publication number
CN113947297A
CN113947297A CN202111163571.3A CN202111163571A CN113947297A CN 113947297 A CN113947297 A CN 113947297A CN 202111163571 A CN202111163571 A CN 202111163571A CN 113947297 A CN113947297 A CN 113947297A
Authority
CN
China
Prior art keywords
formula
processing
class
template
variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111163571.3A
Other languages
Chinese (zh)
Inventor
何燕清
黄卓杰
陈旭
李海荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xuanwu Wireless Technology Co Ltd
Original Assignee
Guangzhou Xuanwu Wireless Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Xuanwu Wireless Technology Co Ltd filed Critical Guangzhou Xuanwu Wireless Technology Co Ltd
Priority to CN202111163571.3A priority Critical patent/CN113947297A/en
Publication of CN113947297A publication Critical patent/CN113947297A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06313Resource planning in a project environment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Data Mining & Analysis (AREA)
  • Biodiversity & Conservation Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a formula conversion method and a system based on template variables, which comprises the following steps: analyzing the template content through a regular expression to obtain a formula expression; obtaining an implementation object through the template content and the formula expression; and processing the formula prefix carried in the implementation object through a factory generation class to generate a formula processing class, and converting the generated formula processing class into text content. The invention realizes the fixed format of the change time and the precision of the user-defined variable value by combining the formula and the variable. Under the condition that the existing variables of the template are not changed, a single variable is used in a business scene and is converted into a value with a specified format, multiple dimensions and specified precision, so that different business scenes are sent, the use of the business is more fit, the flexibility and the utilization rate of the variable are effectively improved, the occupation of variable resources is reduced, the labor cost maintenance of enterprises is reduced, and the working efficiency is improved.

Description

Formula conversion method and system based on template variables
Technical Field
The invention relates to the technical field of data processing, in particular to a formula conversion method and system based on template variables.
Background
The existing APP (application software) is a unified message management platform integrating multiple message channels such as short messages, WeChat, voice, mails and the like. When the service system issues information, a variable, such as dynamic account information, is often used in a used message template, and the amount of money is generally used as a variable, such as "$ { money }". The amount of money may change each time a transaction is made, and the variable is given a different value each time during the transaction, which may satisfy the situation that one variable is reused in the template. The application of variables brings great convenience to this scenario, but it also has certain drawbacks and limitations:
1. the value format corresponding to the variable in the message is fixed. For example, when the user assigns a format of "yyyy (year) MM (month) dd (day) HH (hour) MM (minute) ss (second)", the issued message can only be the assigned format, cannot be flexibly applied, meets the requirements of the format specified by the client, and can only modify the source data format according to the format to be sent, and increase the time for confirming the data format and manual operation.
2. A variable in a single message can only correspond to one value. If the variable "abc" can only correspond to the value "123", when the required variables are the same and the variables need to take values in different ranges according to different service scenes, the general variables cannot meet the scene, and can only be adapted by increasing the variables of multiple dimensions, which is equivalent to phase change and reduction of the repeated utilization rate of the variables.
3. The precision of the variable is fixed. When a value is given to a variable, the displayed value can only be a character or a number with a corresponding length, and a scene in which only a part of the position, the length, or the numerical precision of the value corresponding to the variable is to be displayed cannot be satisfied.
Disclosure of Invention
The invention provides a formula conversion method and a formula conversion system based on template variables, wherein when the variables are used in a template, values of fixed format or length are transmitted and converted into corresponding format or precision values according to user requirements, so that the requirements of different service scenes are met, and the method and the system are flexible and convenient.
The invention provides a formula conversion method based on template variables, which comprises the following steps:
analyzing the template content through a regular expression to obtain a formula expression;
obtaining an implementation object through the template content and the formula expression;
and processing the formula prefix carried in the implementation object through a factory generation class to generate a formula processing class, and converting the generated formula processing class into text content.
Further, the generating a formula processing class by processing the formula prefix carried in the implementation object through the factory generation class includes:
performing specific formula processing on the template variable through a factory generation class of a specific formula to obtain specific formula processing data;
carrying out digital formatting processing on the template variable through a digital formatting formula processing class to obtain digital formatting processing data;
performing digital formatting processing on the template variable through a date formatting formula processing class to obtain date formatting processing data;
performing character string interception processing on the template variable through the character string interception class to obtain character string interception processing data;
performing enumeration conversion processing on the template variable through an enumeration conversion formula processing class to obtain enumeration conversion processing data;
and processing the specific formula processing data, the digital formatting processing data, the date formatting processing data, the character string intercepting processing data and the enumeration conversion processing data to obtain a formula processing class.
Further, after obtaining the formula expression, the method further includes:
and storing the formula expression by a double-layer Map structure.
Further, the formula expression is stored through a double-layer Map structure, specifically:
and storing the template variable names in a first-layer Map structure, and storing the original formula content in a second-layer Map structure.
The second aspect of the present invention provides a formula transformation system based on template variables, comprising:
the analysis module is used for analyzing the template content through the regular expression to obtain a formula expression;
the acquisition module is used for acquiring an implementation object through the template content and the formula expression;
and the conversion module is used for processing the formula prefix carried in the implementation object through a factory generation class, generating a formula processing class and converting the generated formula processing class into text content.
Further, the conversion module is further configured to:
performing specific formula processing on the template variable through a factory generation class of a specific formula to obtain specific formula processing data;
carrying out digital formatting processing on the template variable through a digital formatting formula processing class to obtain digital formatting processing data;
performing digital formatting processing on the template variable through a date formatting formula processing class to obtain date formatting processing data;
performing character string interception processing on the template variable through the character string interception class to obtain character string interception processing data;
performing enumeration conversion processing on the template variable through an enumeration conversion formula processing class to obtain enumeration conversion processing data;
and processing the specific formula processing data, the digital formatting processing data, the date formatting processing data, the character string intercepting processing data and the enumeration conversion processing data to obtain a formula processing class.
Further, the formula conversion system based on the template variable further includes:
and the storage module is used for storing the formula expression through a double-layer Map structure.
Further, the formula conversion system based on the template variable, the storage module, further configured to:
and storing the template variable names in a first-layer Map structure, and storing the original formula content in a second-layer Map structure.
A third aspect of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the template variable-based formula transformation method according to any one of the first aspects.
A fourth aspect of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the method for formula conversion based on template variables according to any one of the above first aspects.
Compared with the prior art, the embodiment of the invention has the beneficial effects that:
the invention provides a formula conversion method and a system based on template variables, which comprises the following steps: analyzing the template content through a regular expression to obtain a formula expression; obtaining an implementation object through the template content and the formula expression; and processing the formula prefix carried in the implementation object through a factory generation class to generate a formula processing class, and converting the generated formula processing class into text content. According to the invention, through the combination of the formula and the variables, the relationship between the variables and the values in the template is improved from 1:1 to 1: N, the fixed format of time change is realized, and the precision of the customized variable values is realized. Under the condition that the existing variables of the template are not changed, a single variable is used in a business scene and is converted into a value with a specified format, multiple dimensions and specified precision, so that different business scenes are sent, the use of the business is more fit, the flexibility and the utilization rate of the variable are effectively improved, the occupation of variable resources is reduced, the labor cost maintenance of enterprises is reduced, and the working efficiency is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for formula transformation based on template variables according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for formula transformation based on template variables according to another embodiment of the present invention;
FIG. 3 is a diagram of an apparatus for a template variable based formula transformation system according to an embodiment of the present invention;
FIG. 4 is a diagram of an apparatus for a template variable based formula transformation system according to another embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that the step numbers used herein are for convenience of description only and are not intended as limitations on the order in which the steps are performed.
It is to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The terms "comprises" and "comprising" indicate the presence of the described features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The term "and/or" refers to and includes any and all possible combinations of one or more of the associated listed items.
In using template content, the template content is often fixed or simply supports variable replacement. If some content needs to be formatted, replaced by an enumeration value, intercepted by the length of the content, etc., the operation needs to be realized by modifying codes. This is not conducive to the client adjusting the content of the message template. In order to allow a client to conveniently format some contents in the template, the invention provides a method and a system for converting a variable formula.
A first aspect.
Referring to fig. 1-2, an embodiment of the present invention provides a method for formula transformation based on template variables, including:
and S10, analyzing the template content through the regular expression to obtain a formula expression.
And S20, acquiring an implementation object through the template content and the formula expression.
And S30, generating classes through factories, processing formula prefixes carried in the implementation objects, generating formula processing classes, and converting the generated formula processing classes into text contents.
In a specific implementation manner of the embodiment of the present invention, the generating a class through a factory to process a formula prefix carried in the implementation object to generate a formula processing class includes:
performing specific formula processing on the template variable through a factory generation class of a specific formula to obtain specific formula processing data;
carrying out digital formatting processing on the template variable through a digital formatting formula processing class to obtain digital formatting processing data;
performing digital formatting processing on the template variable through a date formatting formula processing class to obtain date formatting processing data;
performing character string interception processing on the template variable through the character string interception class to obtain character string interception processing data;
performing enumeration conversion processing on the template variable through an enumeration conversion formula processing class to obtain enumeration conversion processing data;
and processing the specific formula processing data, the digital formatting processing data, the date formatting processing data, the character string intercepting processing data and the enumeration conversion processing data to obtain a formula processing class.
In a specific implementation manner of the embodiment of the present invention, after the step S20, the method further includes:
and S21, storing the formula expression through a double-layer Map structure.
Specifically, the method comprises the following steps: and storing the template variable names in a first-layer Map structure, and storing the original formula content in a second-layer Map structure.
The method provided by the invention realizes the fixed format of time change and the precision of the user-defined variable value by combining the formula and the variable. Under the condition that the existing variables of the template are not changed, a single variable is used in a business scene and is converted into a value with a specified format, multiple dimensions and specified precision, so that different business scenes are sent, the use of the business is more fit, the flexibility and the utilization rate of the variable are effectively improved, the occupation of variable resources is reduced, the labor cost maintenance of enterprises is reduced, and the working efficiency is improved.
In another embodiment of the present invention, a method for formula transformation based on template variables includes:
1) and analyzing the template content. And extracting a formula expression through the regular expression.
2) And storing the formula expression in a double-layer Map structure. The key of the Map of the first layer is the name of the template variable; the key of Map of the second layer is the original formula content, and value is the expressparam object.
3) And finding a corresponding expressonaparam object through the template variables and the formula content.
4) And generating a corresponding formula processing class by using a BizTemplateExpressIndustleFactory factory class according to an expressPrefix formula prefix in an expressParam object.
5) After the formula processing class is obtained, the formula expression can be converted into the final text content.
Specifically, the method comprises the following steps:
the processing method of the formula uses the factory mode + the strategy mode for code organization.
The biztemplateexpressonstratachandler is an abstract class for formula processing, and defines two methods, handleExpression and doHandle. handleExpression is an entry method that executes a formula; doHandle is an abstract method, implemented by subclasses, that defines the concrete functions of each formula.
BizTemplateExpressionHandleFactory is a factory generated class of a specific formula. The method is used for generating a specific formula processing method through formula prefixes.
The NumberFormatExpressionHandler is a digital formatting formula processing class, rewrites a doHandle method, and performs digital formatting processing on template variables.
The DateFormatExpressionHandler is a date formatting formula processing class, rewrites a doHandle method, and performs date formatting processing on template variables.
SubStrExpressInHandler is a character string interception class, rewrites the doHandle method, and performs character string interception processing on template variables.
The EnumExpressonHandler is an enumeration conversion formula processing class, rewrites a doHandle method, and performs enumeration conversion processing on template variables.
The invention defines the formula needed at present: formatting a number decimal point, formatting a date, intercepting a character string and converting an enumeration value; an expression of a formula is required to be defined, and the expression is used for distinguishing common text contents and contents which need formula conversion; analyzing the formula expression, and identifying the identification, the variable and the input parameter of the formula; converting the variables according to different formula rules to obtain a final conversion result;
a second aspect.
Referring to fig. 3-4, an embodiment of the present invention provides a template variable-based formula transformation system, including:
and the analysis module 10 is used for analyzing the template content through the regular expression to obtain a formula expression.
And the obtaining module 20 is configured to obtain the implementation object through the template content and the formula expression.
The conversion module 30 is configured to generate a class through a factory, process the formula prefix carried in the implementation object, generate a formula processing class, and convert the generated formula processing class into text content.
In a specific implementation manner of the embodiment of the present invention, the conversion module 30 is further configured to:
performing specific formula processing on the template variable through a factory generation class of a specific formula to obtain specific formula processing data;
carrying out digital formatting processing on the template variable through a digital formatting formula processing class to obtain digital formatting processing data;
performing digital formatting processing on the template variable through a date formatting formula processing class to obtain date formatting processing data;
performing character string interception processing on the template variable through the character string interception class to obtain character string interception processing data;
performing enumeration conversion processing on the template variable through an enumeration conversion formula processing class to obtain enumeration conversion processing data;
and processing the specific formula processing data, the digital formatting processing data, the date formatting processing data, the character string intercepting processing data and the enumeration conversion processing data to obtain a formula processing class.
In a specific implementation manner of the embodiment of the present invention, the formula conversion system based on the template variable further includes:
and the storage module 40 is used for storing the formula expression through a double-layer Map structure.
The storage module 40 is further configured to store the template variable name in the first-layer Map structure, and store the original formula content in the second-layer Map structure.
The system provided by the invention realizes the fixed format of time change and the precision of the user-defined variable value by combining the formula and the variable. Under the condition that the existing variables of the template are not changed, a single variable is used in a business scene and is converted into a value with a specified format, multiple dimensions and specified precision, so that different business scenes are sent, the use of the business is more fit, the flexibility and the utilization rate of the variable are effectively improved, the occupation of variable resources is reduced, the labor cost maintenance of enterprises is reduced, and the working efficiency is improved.
In a third aspect.
The present invention provides an electronic device, including:
a processor, a memory, and a bus;
the bus is used for connecting the processor and the memory;
the memory is used for storing operation instructions;
the processor is configured to call the operation instruction, and the executable instruction enables the processor to perform an operation corresponding to the template variable-based formula conversion method shown in the first aspect of the present application.
In an alternative embodiment, an electronic device is provided, as shown in fig. 5, the electronic device 5000 shown in fig. 5 includes: a processor 5001 and a memory 5003. The processor 5001 and the memory 5003 are coupled, such as via a bus 5002. Optionally, the electronic device 5000 may also include a transceiver 5004. It should be noted that the transceiver 5004 is not limited to one in practical application, and the structure of the electronic device 5000 is not limited to the embodiment of the present application.
The processor 5001 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 5001 may also be a combination of processors implementing computing functionality, e.g., a combination comprising one or more microprocessors, a combination of DSPs and microprocessors, or the like.
Bus 5002 can include a path that conveys information between the aforementioned components. The bus 5002 may be a PCI bus or EISA bus, etc. The bus 5002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The memory 5003 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The memory 5003 is used for storing application program codes for executing the present solution, and the execution is controlled by the processor 5001. The processor 5001 is configured to execute application program code stored in the memory 5003 to implement the teachings of any of the foregoing method embodiments.
Among them, electronic devices include but are not limited to: mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like.
A fourth aspect.
The present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for template variable-based formula transformation as set forth in the first aspect of the present application.
Yet another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when run on a computer, enables the computer to perform the corresponding content in the aforementioned method embodiments.

Claims (10)

1. A formula conversion method based on template variables is characterized by comprising the following steps:
analyzing the template content through a regular expression to obtain a formula expression;
obtaining an implementation object through the template content and the formula expression;
and processing the formula prefix carried in the implementation object through a factory generation class to generate a formula processing class, and converting the generated formula processing class into text content.
2. The method of claim 1, wherein the generating a formula processing class by processing a formula prefix carried in the implementation object through a factory generated class comprises:
performing specific formula processing on the template variable through a factory generation class of a specific formula to obtain specific formula processing data;
carrying out digital formatting processing on the template variable through a digital formatting formula processing class to obtain digital formatting processing data;
performing digital formatting processing on the template variable through a date formatting formula processing class to obtain date formatting processing data;
performing character string interception processing on the template variable through the character string interception class to obtain character string interception processing data;
performing enumeration conversion processing on the template variable through an enumeration conversion formula processing class to obtain enumeration conversion processing data;
and processing the specific formula processing data, the digital formatting processing data, the date formatting processing data, the character string intercepting processing data and the enumeration conversion processing data to obtain a formula processing class.
3. The method of claim 1, wherein after obtaining the formula expression, the method further comprises:
and storing the formula expression by a double-layer Map structure.
4. The template variable-based formula transformation method of claim 3, wherein the formula expression is stored through a two-layer Map structure, specifically:
and storing the template variable names in a first-layer Map structure, and storing the original formula content in a second-layer Map structure.
5. A template variable based formula transformation system, comprising:
the analysis module is used for analyzing the template content through the regular expression to obtain a formula expression;
the acquisition module is used for acquiring an implementation object through the template content and the formula expression;
and the conversion module is used for processing the formula prefix carried in the implementation object through a factory generation class, generating a formula processing class and converting the generated formula processing class into text content.
6. The template variable-based formula transformation system of claim 5, wherein the transformation module is further configured to:
performing specific formula processing on the template variable through a factory generation class of a specific formula to obtain specific formula processing data;
carrying out digital formatting processing on the template variable through a digital formatting formula processing class to obtain digital formatting processing data;
performing digital formatting processing on the template variable through a date formatting formula processing class to obtain date formatting processing data;
performing character string interception processing on the template variable through the character string interception class to obtain character string interception processing data;
performing enumeration conversion processing on the template variable through an enumeration conversion formula processing class to obtain enumeration conversion processing data;
and processing the specific formula processing data, the digital formatting processing data, the date formatting processing data, the character string intercepting processing data and the enumeration conversion processing data to obtain a formula processing class.
7. The template variable-based formula transformation system of claim 5, further comprising:
and the storage module is used for storing the formula expression through a double-layer Map structure.
8. The template variable-based formula transformation system of claim 7, wherein the storage module is further configured to:
and storing the template variable names in a first-layer Map structure, and storing the original formula content in a second-layer Map structure.
9. An electronic device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the template variable-based formula transformation method of any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, comprising a stored computer program, wherein the computer program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the template variable-based formula transformation method according to any one of claims 1 to 4.
CN202111163571.3A 2021-09-30 2021-09-30 Formula conversion method and system based on template variables Pending CN113947297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111163571.3A CN113947297A (en) 2021-09-30 2021-09-30 Formula conversion method and system based on template variables

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111163571.3A CN113947297A (en) 2021-09-30 2021-09-30 Formula conversion method and system based on template variables

Publications (1)

Publication Number Publication Date
CN113947297A true CN113947297A (en) 2022-01-18

Family

ID=79329768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111163571.3A Pending CN113947297A (en) 2021-09-30 2021-09-30 Formula conversion method and system based on template variables

Country Status (1)

Country Link
CN (1) CN113947297A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115081393A (en) * 2022-07-19 2022-09-20 上海中汇亿达金融信息技术有限公司 Method for real-time assembling and displaying characters by expression

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160087925A1 (en) * 2014-09-24 2016-03-24 Yahoo! Inc. System and method for auto-formatting messages based on learned message templates
CN108628603A (en) * 2017-03-16 2018-10-09 北京京东尚科信息技术有限公司 A kind of method, apparatus, equipment and storage medium that time setting value is provided
CN110209377A (en) * 2019-04-26 2019-09-06 平安科技(深圳)有限公司 Interface packet processing method, device, equipment and storage medium based on factory class

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160087925A1 (en) * 2014-09-24 2016-03-24 Yahoo! Inc. System and method for auto-formatting messages based on learned message templates
CN108628603A (en) * 2017-03-16 2018-10-09 北京京东尚科信息技术有限公司 A kind of method, apparatus, equipment and storage medium that time setting value is provided
CN110209377A (en) * 2019-04-26 2019-09-06 平安科技(深圳)有限公司 Interface packet processing method, device, equipment and storage medium based on factory class

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115081393A (en) * 2022-07-19 2022-09-20 上海中汇亿达金融信息技术有限公司 Method for real-time assembling and displaying characters by expression
CN115081393B (en) * 2022-07-19 2023-09-15 上海中汇亿达金融信息技术有限公司 Method for real-time assembling text display of expressions

Similar Documents

Publication Publication Date Title
CN112052242A (en) Data query method and device, electronic equipment and storage medium
CN109062906B (en) Translation method and device for program language resources
CN111367895B (en) Data migration method and device
CN112181542A (en) Function calling method and device, electronic equipment and storage medium
CN115357761A (en) Link tracking method and device, electronic equipment and storage medium
CN111783415A (en) Template configuration method and device
CN113947297A (en) Formula conversion method and system based on template variables
CN111046640A (en) Dynamic generation method and device of certification document
CN111445319A (en) Voucher generation method and device, computer equipment and storage medium
CN113515271B (en) Service code generation method and device, electronic equipment and readable storage medium
CN114282129A (en) Information system page generation method, system, electronic equipment and storage medium
CN115543440A (en) Method for migrating android project to android-like system, electronic equipment and storage medium
CN113296752A (en) Method, system, device and storage medium for generating API document
CN110377891B (en) Method, device and equipment for generating event analysis article and computer readable storage medium
CN112799678A (en) Data pushing method and device, electronic equipment and storage medium
CN117314139A (en) Modeling method and device for business process, terminal equipment and storage medium
CN109582476B (en) Data processing method, device and system
CN111414154A (en) Method and device for front-end development, electronic equipment and storage medium
CN116226921A (en) Desensitization processing method and device
CN111813769B (en) Data processing method and device
CN114661289A (en) Knowledge and data driving-based micro application development system and method
CN111652580A (en) Method and device for processing data of nodes
CN114117291A (en) WeChat template-based message variable conversion method and system
CN112199428B (en) Application management system, method and terminal equipment of functional data block
CN114282510B (en) Document generation method and device, storage medium and electronic equipment

Legal Events

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

Application publication date: 20220118