CN110751565A - Data calculation method and device - Google Patents

Data calculation method and device Download PDF

Info

Publication number
CN110751565A
CN110751565A CN201910880896.XA CN201910880896A CN110751565A CN 110751565 A CN110751565 A CN 110751565A CN 201910880896 A CN201910880896 A CN 201910880896A CN 110751565 A CN110751565 A CN 110751565A
Authority
CN
China
Prior art keywords
stored
keyword
service
formula
time
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
CN201910880896.XA
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.)
Shenzhen Rongyimai Information Technology Co Ltd
Original Assignee
Shenzhen Rongyimai Information 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 Shenzhen Rongyimai Information Technology Co Ltd filed Critical Shenzhen Rongyimai Information Technology Co Ltd
Priority to CN201910880896.XA priority Critical patent/CN110751565A/en
Publication of CN110751565A publication Critical patent/CN110751565A/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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/06Asset management; Financial planning or analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Human Resources & Organizations (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Mathematical Physics (AREA)
  • Game Theory and Decision Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Operations Research (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application is applicable to the technical field of data processing, and provides a data calculation method, which comprises the following steps: acquiring a time keyword; screening out a target formula corresponding to a pre-stored service keyword and the time keyword from a pre-stored formula; and calculating the service data corresponding to the pre-stored service keywords according to the target formula. By the method, the calculation efficiency of the service data can be improved.

Description

Data calculation method and device
Technical Field
The present application belongs to the field of data processing technologies, and in particular, to a data calculation method and apparatus.
Background
Today, each company typically involves multiple services, with different services corresponding to different formulas, and with one service, the formulas corresponding to different times may be different.
For example, the financial company a relates to businesses such as trust share delivery and current interest distribution, and taking trust share delivery as an example, the formula corresponding to trust share delivery on 1 month and 1 day is different from the formula corresponding to trust share delivery on 1 month and 2 days. Assuming that a formula corresponding to the trust share release in 1 month and 1 day is a first formula, and a formula corresponding to the trust share release in 1 month and 2 days is a second formula, in order to calculate service data corresponding to the trust share release in 1 month and 1 day, a financial company A staff needs to input a complete first formula in excel, obtain the service data corresponding to the trust share release in 1 month and 1 day through excel, and analogize in turn to obtain the service data corresponding to the trust share release in 1 month and 2 days and the service data corresponding to interest allocation in the current period. However, in this process, the computation of the traffic data is inefficient.
Disclosure of Invention
The embodiment of the application provides a data calculation method and device, and can solve the problem that the calculation efficiency of service data is low under the condition that the service is related to formulas corresponding to different times.
In a first aspect, an embodiment of the present application provides a data calculation method, including:
acquiring a time keyword;
screening out a target formula corresponding to a pre-stored service keyword and the time keyword from a pre-stored formula;
and calculating the service data corresponding to the pre-stored service keywords according to the target formula. In a first possible implementation manner of the first aspect, before the screening out a target formula corresponding to a pre-stored service keyword and a pre-stored time keyword from a pre-stored formula, the method includes:
determining a fund management mode, wherein the fund management mode is a management mode of fund sources or/and fund uses;
correspondingly, the screening out a target formula corresponding to the pre-stored service keyword and the time keyword from the pre-stored formulas includes:
and screening out a target formula corresponding to the fund management mode, the pre-stored service keywords and the time keywords from the pre-stored formulas.
In a second possible implementation manner of the first aspect, the screening out a target formula corresponding to a pre-stored service keyword and the time keyword from pre-stored formulas includes:
screening out formulas corresponding to pre-stored service keywords from pre-stored formulas, wherein each pre-stored service keyword at least corresponds to one formula, and each formula corresponding to each pre-stored service keyword corresponds to a preset time range;
and screening out a target formula corresponding to the time keyword from the pre-stored formulas corresponding to the service keywords according to the preset time range and the time keyword.
In a third possible implementation manner of the first aspect, if each pre-stored formula corresponds to a priority level, correspondingly, a target formula corresponding to a pre-stored service keyword and the time keyword is screened from the pre-stored formulas, including:
and screening out a target formula corresponding to the pre-stored service key words and the time key words from the pre-stored formulas according to the priority level of the pre-stored formulas.
In a fourth possible implementation manner of the first aspect, after the obtaining the time keyword, the method includes:
and if the pre-stored formula does not comprise a target formula corresponding to the pre-stored service key words and the time key words, generating a calculation failure result.
In a fifth possible implementation manner of the first aspect, after the calculating, according to the target formula, service data corresponding to the pre-stored service keyword, the method includes:
and storing the service data into a database.
In a sixth possible implementation manner of the first aspect, if the number of the pre-stored service keywords is greater than one, the step of screening out a target formula corresponding to the pre-stored service keywords and the time keywords from the pre-stored formulas, and calculating service data corresponding to the pre-stored service keywords according to the target formula includes:
executing the following steps for each pre-stored service keyword:
screening out a target formula corresponding to a single pre-stored service keyword and the time keyword from pre-stored formulas;
and calculating the service data corresponding to the single pre-stored service keyword according to the target formula.
In a second aspect, an embodiment of the present application provides a data computing apparatus, including:
a keyword acquisition unit configured to acquire a time keyword;
the screening unit is used for screening out a target formula corresponding to the pre-stored service key words and the time key words from the pre-stored formulas;
and the calculation unit is used for calculating the service data corresponding to the pre-stored service keywords according to the target formula.
In a third aspect, an embodiment of the present application provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the data calculation method as described when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the data computation method as described.
In a fifth aspect, the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the steps of the data calculation method according to any one of the above first aspects.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that: the target formula corresponding to the pre-stored service key words and the pre-stored time key words can be screened out from the pre-stored formulas, and the service data corresponding to the pre-stored service key words are calculated according to the target formula, so that under the condition that services are related to different formulas corresponding to different times, the corresponding target formula can be quickly and accurately determined by combining the service key words and the time key words, a user does not need to input a complete formula, the service data can be calculated according to the quickly determined target formula, and the calculation efficiency of the service data is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram illustrating a data calculation method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating a data calculation method according to another embodiment of the present application;
FIG. 3 is a schematic structural diagram of a data computing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated 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.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The data calculation method provided by the embodiment of the application can be applied to terminal devices such as a mobile phone, a tablet personal computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the embodiment of the application does not limit the specific type of the terminal device at all.
The first embodiment is as follows:
fig. 1 shows a schematic flow chart of a first data calculation method provided in an embodiment of the present application, which is detailed as follows:
step S101, acquiring time keywords.
Wherein the time key includes but is not limited to: the date key word or/and the time key word or/and the minute key word or/and the second key word.
By way of example and not limitation, the step S101 may be embodied as acquiring a date keyword, for example, the date keyword is 7 months and 13 days.
And S102, screening out a target formula corresponding to the pre-stored service key words and the time key words from the pre-stored formulas.
Specifically, a formula corresponding to a pre-stored service keyword is screened out from formulas pre-stored in a designated formula configuration table, and a target formula corresponding to the time keyword is screened out from the formulas corresponding to the pre-stored service keyword, where the designated formula configuration table is used to store: the pre-stored service key words and the corresponding formulas of the pre-stored service key words.
Wherein, the pre-stored service keywords include but are not limited to: a pre-stored credit commission allotment share, or/and a pre-stored current interest allocation, or/and a pre-stored current principal allocation.
Optionally, since the business of each company may change or the formula corresponding to the business needs to change with the change of the actual requirement, in order to adapt to the above situation, the business keyword or/and the formula corresponding to the business keyword needs to be adjusted, and in order to improve the adjustment efficiency of the user, before the step S102, the method includes: modifying the specified formula configuration table according to a first modification instruction, the first modification instruction including but not limited to: and adding or deleting the instruction of the business key word, or adding or deleting the instruction of the formula corresponding to the business key word.
Alternatively, each formula generally has a certain applicable time range, where the applicable time range corresponds to the preset time range described below, in order to be able to screen out the target formula more accurately, therefore, the step S102 includes:
a1, screening out formulas corresponding to pre-stored service keywords from pre-stored formulas, wherein each pre-stored service keyword corresponds to at least one formula, and each formula corresponding to each pre-stored service keyword corresponds to a preset time range.
And A2, screening out a target formula corresponding to the time keyword from the pre-stored formulas corresponding to the service keyword according to the preset time range and the time keyword.
Specifically, the step a2 includes: each preset time range corresponds to a formula processing rule Identity (ID), different preset time ranges can correspond to the same formula processing rule ID, a formula processing rule ID corresponding to a preset time range corresponding to a formula corresponding to the pre-stored service keyword is determined, and a target formula corresponding to the time keyword is screened from the formulas corresponding to the pre-stored service keyword according to the formula processing rule corresponding to the formula processing rule ID, the preset time range and the time keyword, wherein the formula processing rule can be: and screening the screening rule of the target formula corresponding to the time key word from the pre-stored formulas corresponding to the service key word according to the pre-set time range and the time key word corresponding to the pre-stored formula corresponding to the service key word.
As an example and not by way of limitation, assuming that the time keyword is 11 month and 1 day, the formula corresponding to the pre-stored service keyword screened from the pre-stored formulas is formula a, the preset time range corresponding to formula a is 7 month and 1 day to 12 month and 1 day, the formula processing rule ID corresponding to 7 month and 1 day to 12 month and 1 day is 001, and the formula processing rule corresponding to 001 is: and determining a preset time range including time corresponding to the time key from the preset time range corresponding to the formula corresponding to the pre-stored service key, and determining the formula corresponding to the determined preset time range as a target formula corresponding to the time key. Since the preset time range including 11 month and 1 day is determined to be 7 month and 1 day to 12 month and 1 day from the preset time range corresponding to the formula corresponding to the pre-stored service keyword, the formula a is determined to be the target formula corresponding to the time keyword.
Optionally, in order to improve the management efficiency of the preset time range and the formula processing rule ID corresponding to the preset time range, therefore, the determining the formula processing rule ID corresponding to the preset time range corresponding to the formula corresponding to the pre-stored service keyword includes: determining a formula processing rule ID corresponding to a preset time range corresponding to a formula corresponding to the pre-stored service keyword according to a specified time module configuration table, wherein the specified time module configuration table is used for: and storing all the preset time ranges and the corresponding formula processing rule IDs thereof.
Optionally, in a real situation, as an actual requirement changes, an applicable time range corresponding to a formula or/and a formula processing rule ID also needs to be changed, so as to facilitate a user to adjust the applicable time range and/or the formula processing rule ID, therefore, before determining the formula processing rule ID corresponding to the preset time range corresponding to the formula corresponding to the pre-stored business keyword, the method includes: modifying the specified time module configuration table according to a second modification instruction, wherein the second modification instruction comprises but is not limited to: and modifying the time range corresponding to the formula or/and the formula processing rule ID corresponding to the time range.
Optionally, in order to improve the screening efficiency of the target formula, if each pre-stored formula corresponds to a priority level, the step S102 includes: and screening out a target formula corresponding to the pre-stored service key words and the time key words from the pre-stored formulas according to the priority level of the pre-stored formulas.
Specifically, if at least 2 formulas corresponding to the pre-stored service keywords and the time keywords are screened out from the pre-stored formulas, the formula with the highest priority level is screened out again from the screened formulas according to the priority level of the pre-stored formulas to serve as the target formula.
Alternatively, in order to make the user know more about the calculation process, after step S101, the method includes: and if the pre-stored formula does not comprise a target formula corresponding to the pre-stored service key words and the time key words, generating a calculation failure result.
By way of example and not limitation, the expression of the calculation failure result includes, but is not limited to, numbers and/or words. For example, if the expression form of the calculation failure result is digital 0, the generating of the calculation failure result specifically includes: a calculation failure result 0 is generated.
Optionally, in order to enable the user to more intuitively know the calculation failure result, after the generating the calculation failure result, the method includes: and writing the calculation failure result into a service data table in a database.
And step S103, calculating the service data corresponding to the pre-stored service keywords according to the target formula.
As an example and not by way of limitation, it is assumed that the pre-stored service keyword is pre-stored interest allocation in the current period, and the service data corresponding to the pre-stored interest allocation in the current period is a ratio of the amount of money allocated to the subject a to the interest in the current period and a ratio of the amount of money allocated to the subject b to the interest in the current period, that is, step S103 specifically includes: and calculating the proportion of the sum of money allocated to the object A to the interest of the current period and the proportion of the sum of money allocated to the object B to the interest of the current period according to the target formula.
Optionally, in order to facilitate future use of the service data, after step S103, the method includes: and storing the service data into a database.
Specifically, the service data is written into a service data table of a database.
Optionally, when the number of the pre-stored service keywords is greater than one, the calculation amount of the service data is relatively large, and in order to enable the calculation of the service data to be performed orderly, if the number of the pre-stored service keywords is greater than one, the step of screening out a target formula corresponding to the pre-stored service keywords and the time keywords from the pre-stored formula, and calculating the service data corresponding to the pre-stored service keywords according to the target formula includes: executing the following steps for each pre-stored service keyword: screening out a target formula corresponding to a single pre-stored service keyword and the time keyword from pre-stored formulas; and calculating the service data corresponding to the single pre-stored service keyword according to the target formula.
As an example and not by way of limitation, assuming that the number of the pre-stored service keywords is two, the pre-stored service keywords include: a pre-stored current interest allocation and a pre-stored current principal allocation. Screening out a target formula corresponding to the pre-stored current interest allocation and the time keywords from the pre-stored formulas; and calculating the service data corresponding to the pre-stored current interest allocation according to the target formula corresponding to the pre-stored current interest allocation and the time key words. Screening out a target formula corresponding to the pre-stored current principal allocation and the time keywords from the pre-stored formulas; and calculating the service data corresponding to the pre-stored current principal allocation according to the target formula corresponding to the pre-stored current principal allocation and the time key words.
In the embodiment of the application, the target formula corresponding to the pre-stored service key words and the pre-stored time key words can be screened out from the pre-stored formula, and the service data corresponding to the pre-stored service key words can be calculated according to the target formula, so that under the condition that services correspond to different formulas at different times, the corresponding target formula can be quickly and accurately determined by combining the service key words and the time key words, a user does not need to input a complete formula, the service data can also be calculated according to the quickly determined target formula, and the calculation efficiency of the service data is greatly improved.
Example two:
fig. 2 shows a schematic flow chart of a second data calculation method provided in the embodiment of the present application, where steps S202 and S204 in this embodiment are respectively the same as steps S101 and S103 in the first embodiment, and are not repeated here:
step S201, determining a fund management mode, wherein the fund management mode is a fund source or/and fund use management mode.
By way of example and not limitation, the fund management mode may be: a credit delegation mode or a stock buying and selling mode, that is, step S201 specifically includes: determining the fund management mode as a credit delegation mode or a stock buying and selling mode.
Step S202, acquiring time keywords.
Step S203, screening out target formulas corresponding to the fund management mode, the pre-stored service keywords and the time keywords from the pre-stored formulas.
Specifically, a formula corresponding to the fund management mode is screened out from pre-stored formulas, and then a target formula corresponding to pre-stored business keywords and the time keywords is screened out from the formulas corresponding to the fund management mode.
And step S204, calculating the service data corresponding to the pre-stored service keywords according to the target formula.
In the embodiment of the application, because the fund management mode can be determined, the target formulas corresponding to the fund management mode, the pre-stored service keywords and the time keywords are screened out from the pre-stored formulas, and the service data corresponding to the pre-stored service keywords are calculated according to the target formulas, under the condition that different fund management modes correspond to different formulas, the corresponding target formulas can be quickly and accurately determined by combining the fund management mode, the service keywords and the time keywords, so that a user does not need to input a complete formula, and the service data can be calculated according to the quickly determined target formulas, thereby greatly improving the calculation efficiency of the service data.
Example three:
corresponding to the above embodiments, fig. 3 shows a schematic structural diagram of a data computing apparatus provided in the embodiments of the present application, and for convenience of description, only the portions related to the embodiments of the present application are shown.
The data calculation apparatus includes: a keyword acquisition unit 301, a filtering unit 302, and a calculation unit 303.
The keyword obtaining unit 301 is configured to obtain a time keyword.
Wherein the time key includes but is not limited to: the date key word or/and the time key word or/and the minute key word or/and the second key word.
The screening unit 302 is configured to screen out a target formula corresponding to a pre-stored service keyword and the time keyword from pre-stored formulas.
The screening unit 302 is specifically configured to: screening out a formula corresponding to a pre-stored service keyword from formulas pre-stored in a designated formula configuration table, and screening out a target formula corresponding to the time keyword from the formulas corresponding to the pre-stored service keyword, wherein the designated formula configuration table is used for storing: the pre-stored service key words and the corresponding formulas of the pre-stored service key words.
Wherein, the pre-stored service keywords include but are not limited to: a pre-stored credit commission allotment share, or/and a pre-stored current interest allocation, or/and a pre-stored current principal allocation.
Optionally, since the business of each company may change or the formula corresponding to the business needs to change with the change of the actual requirement, in order to adapt to the above situation, the business keyword or/and the formula corresponding to the business keyword needs to be adjusted, and in order to improve the adjustment efficiency of the user, the data calculation apparatus further includes: a first modification unit.
The first modification unit is configured to: before the screening unit 302 performs the screening of the target formula corresponding to the pre-stored service keyword and the time keyword from the pre-stored formulas, the specified formula configuration table is modified according to a first modification instruction, which includes but is not limited to: and adding or deleting the instruction of the business key word, or adding or deleting the instruction of the formula corresponding to the business key word.
Alternatively, each formula generally has a certain applicable time range, where the applicable time range corresponds to the preset time range described below, in order to be able to screen out the target formula more accurately, therefore, the screening unit 302 includes: a first screening subunit and a second screening subunit.
The first screening subunit is configured to screen out a formula corresponding to a pre-stored service keyword from pre-stored formulas, where each pre-stored service keyword corresponds to at least one formula, and each formula corresponding to each pre-stored service keyword corresponds to a preset time range.
And the second screening subunit is used for screening out a target formula corresponding to the time keyword from the pre-stored formulas corresponding to the service keyword according to the preset time range and the time keyword.
The second screening subunit is specifically configured to: each preset time range corresponds to a formula processing rule Identity (ID), different preset time ranges can correspond to the same formula processing rule ID, a formula processing rule ID corresponding to a preset time range corresponding to a formula corresponding to the pre-stored service keyword is determined, and a target formula corresponding to the time keyword is screened from the formulas corresponding to the pre-stored service keyword according to the formula processing rule corresponding to the formula processing rule ID, the preset time range and the time keyword, wherein the formula processing rule can be: and screening the screening rule of the target formula corresponding to the time key word from the pre-stored formulas corresponding to the service key word according to the pre-set time range and the time key word corresponding to the pre-stored formula corresponding to the service key word.
Optionally, in order to improve the management efficiency of the preset time range and the formula processing rule ID corresponding to the preset time range, therefore, when the second screening subunit executes the formula processing rule ID corresponding to the preset time range corresponding to the formula corresponding to the pre-stored service keyword, the second screening subunit is specifically configured to: determining a formula processing rule ID corresponding to a preset time range corresponding to a formula corresponding to the pre-stored service keyword according to a specified time module configuration table, wherein the specified time module configuration table is used for: and storing all the preset time ranges and the corresponding formula processing rule IDs thereof.
Optionally, in a real-world situation, as the actual requirement changes, the applicable time range corresponding to the formula or/and the formula processing rule ID also need to change, so as to facilitate the user to adjust the applicable time range, and therefore, the data calculation apparatus further includes: a second modification unit.
The second modification unit is configured to: before the second screening subunit executes the formula processing rule ID corresponding to the preset time range corresponding to the formula corresponding to the pre-stored service keyword, modifying the specified time module configuration table according to a second modification instruction, where the second modification instruction includes but is not limited to: and modifying the time range corresponding to the formula or/and the formula processing rule ID corresponding to the time range.
Optionally, in order to improve the screening efficiency of the target formula, if each pre-stored formula corresponds to one priority level, correspondingly, the screening unit 302 is specifically configured to: and screening out a target formula corresponding to the pre-stored service key words and the time key words from the pre-stored formulas according to the priority level of the pre-stored formulas.
Optionally, the data computing device further comprises: a mode determination unit.
The mode determination unit is to: before the screening unit 302 performs the screening of the target formula corresponding to the pre-stored service keyword and the time keyword from the pre-stored formulas, determining a fund management mode, wherein the fund management mode is a management mode of a fund source or/and a fund use; correspondingly, when the screening unit 302 is configured to screen out the target formula corresponding to the pre-stored service keyword and the time keyword from the pre-stored formulas, it is specifically configured to: and screening out a target formula corresponding to the fund management mode, the pre-stored service keywords and the time keywords from the pre-stored formulas.
Optionally, in order to enable the user to learn more about the calculation process, therefore, the data calculation apparatus further comprises: and a result generation unit.
The result generation unit is used for: after the keyword obtaining unit 301 executes the obtaining time keyword, if the pre-stored formula does not include the target formula corresponding to the pre-stored service keyword and the time keyword, a calculation failure result is generated.
Optionally, in order to enable the user to more intuitively know the calculation failure result, the data calculation apparatus further includes: the result is written into the cell.
The result writing unit is to: and after the result writing unit executes the generated calculation failure result, writing the calculation failure result into a service data table in a database.
A calculating unit 303, configured to calculate, according to the target formula, service data corresponding to the pre-stored service keyword.
Optionally, in order to facilitate future use of the service data, therefore, the data calculation apparatus further includes: and a data writing unit.
The data writing unit includes: after the calculating unit 303 executes the service data corresponding to the pre-stored service keyword calculated according to the target formula, the service data is stored in a database.
In the embodiment of the application, the target formula corresponding to the pre-stored service key words and the pre-stored time key words can be screened out from the pre-stored formula, and the service data corresponding to the pre-stored service key words can be calculated according to the target formula, so that under the condition that services correspond to different formulas at different times, the corresponding target formula can be quickly and accurately determined by combining the service key words and the time key words, a user does not need to input a complete formula, the service data can also be calculated according to the quickly determined target formula, and the calculation efficiency of the service data is greatly improved.
Example four:
fig. 4 is a schematic structural diagram of a data computing terminal device according to an embodiment of the present application. As shown in fig. 4, the data calculation terminal device 4 of the embodiment includes: at least one processor 40 (only one shown in fig. 4), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the processor 40 implementing the steps in any of the various data calculation method embodiments described above when executing the computer program 42.
The data computing terminal device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The data computing terminal device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of the data computing terminal device 4, and does not constitute a limitation of the data computing terminal device 4, and may include more or less components than those shown, or combine some components, or different components, such as input output devices, network access devices, and the like.
The Processor 40 may be a Central Processing Unit (CPU), and the Processor 40 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may in some embodiments be an internal storage unit of the data computing terminal device 4, such as a hard disk or a memory of the data computing terminal device 4. In other embodiments, the memory 41 may also be an external storage device of the data computing terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), or the like, provided on the data computing terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the data computation terminal device 4. The memory 41 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, because the contents of information interaction, execution process, and the like between the above units are based on the same concept as that of the embodiment of the method of the present application, specific functions and technical effects thereof may be specifically referred to a part of the embodiment of the method, and details thereof are not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a photographing terminal device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed network device and method may be implemented in other ways. For example, the above described network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A data computing method, comprising:
acquiring a time keyword;
screening out a target formula corresponding to a pre-stored service keyword and the time keyword from a pre-stored formula;
and calculating the service data corresponding to the pre-stored service keywords according to the target formula.
2. The data calculation method of claim 1, wherein before the screening out the target formula corresponding to the pre-stored business keyword and the time keyword from the pre-stored formulas, comprising:
determining a fund management mode, wherein the fund management mode is a management mode of fund sources or/and fund uses;
correspondingly, the screening out a target formula corresponding to the pre-stored service keyword and the time keyword from the pre-stored formulas includes:
and screening out a target formula corresponding to the fund management mode, the pre-stored service keywords and the time keywords from the pre-stored formulas.
3. The data calculation method of claim 1, wherein the screening out a target formula corresponding to a pre-stored business keyword and the time keyword from the pre-stored formulas comprises:
screening out formulas corresponding to pre-stored service keywords from pre-stored formulas, wherein each pre-stored service keyword at least corresponds to one formula, and each formula corresponding to each pre-stored service keyword corresponds to a preset time range;
and screening out a target formula corresponding to the time keyword from the pre-stored formulas corresponding to the service keywords according to the preset time range and the time keyword.
4. The data calculation method of claim 1, wherein if each pre-stored formula corresponds to a priority level, correspondingly, a target formula corresponding to the pre-stored service keyword and the time keyword is selected from the pre-stored formulas, comprising:
and screening out a target formula corresponding to the pre-stored service key words and the time key words from the pre-stored formulas according to the priority level of the pre-stored formulas.
5. The data calculation method of claim 1, after the obtaining of the time key, comprising:
and if the pre-stored formula does not comprise a target formula corresponding to the pre-stored service key words and the time key words, generating a calculation failure result.
6. The data calculation method according to claim 1, wherein after calculating the service data corresponding to the pre-stored service keyword according to the target formula, the method comprises:
and storing the service data into a database.
7. The data calculation method according to claim 1, wherein if the number of the pre-stored service keywords is greater than one, the step of screening out a target formula corresponding to the pre-stored service keywords and the time keywords from the pre-stored formula, and calculating the service data corresponding to the pre-stored service keywords according to the target formula comprises:
executing the following steps for each pre-stored service keyword:
screening out a target formula corresponding to a single pre-stored service keyword and the time keyword from pre-stored formulas;
and calculating the service data corresponding to the single pre-stored service keyword according to the target formula.
8. A data computing apparatus, comprising:
a keyword acquisition unit configured to acquire a time keyword;
the screening unit is used for screening out a target formula corresponding to the pre-stored service key words and the time key words from the pre-stored formulas;
and the calculation unit is used for calculating the service data corresponding to the pre-stored service keywords according to the target formula.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201910880896.XA 2019-09-18 2019-09-18 Data calculation method and device Pending CN110751565A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910880896.XA CN110751565A (en) 2019-09-18 2019-09-18 Data calculation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910880896.XA CN110751565A (en) 2019-09-18 2019-09-18 Data calculation method and device

Publications (1)

Publication Number Publication Date
CN110751565A true CN110751565A (en) 2020-02-04

Family

ID=69276658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910880896.XA Pending CN110751565A (en) 2019-09-18 2019-09-18 Data calculation method and device

Country Status (1)

Country Link
CN (1) CN110751565A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351273A1 (en) * 2013-05-24 2014-11-27 Samsung Sds Co., Ltd. System and method for searching information
CN104360989A (en) * 2014-12-04 2015-02-18 北京久其软件股份有限公司 Method and system for converting business receipt into financial certificate
CN105279856A (en) * 2015-10-16 2016-01-27 北京恒华伟业科技股份有限公司 Electricity billing method and system
CN106021355A (en) * 2016-05-10 2016-10-12 重庆大学 Statistics method among plurality of tables, user-defined rule building method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351273A1 (en) * 2013-05-24 2014-11-27 Samsung Sds Co., Ltd. System and method for searching information
CN104360989A (en) * 2014-12-04 2015-02-18 北京久其软件股份有限公司 Method and system for converting business receipt into financial certificate
CN105279856A (en) * 2015-10-16 2016-01-27 北京恒华伟业科技股份有限公司 Electricity billing method and system
CN106021355A (en) * 2016-05-10 2016-10-12 重庆大学 Statistics method among plurality of tables, user-defined rule building method, device and system

Similar Documents

Publication Publication Date Title
CN106899666B (en) Data processing method and device for service identification
CN107784063B (en) Algorithm generation method and terminal equipment
CN111427971B (en) Business modeling method, device, system and medium for computer system
CN109285069B (en) Resource transfer method, device and server
CN111899008B (en) Resource transfer method, device, equipment and system
CN111736922B (en) Plug-in calling method and device, electronic equipment and storage medium
CN110597511A (en) Page automatic generation method, system, terminal equipment and storage medium
CN111461763A (en) Resource allocation method and device
CN111709777A (en) Payment mode recommendation method, system, terminal device and storage medium
CN110750530A (en) Service system and data checking method thereof
CN109271564A (en) Declaration form querying method and equipment
CN110598993B (en) Data processing method and device
CN110489418B (en) Data aggregation method and system
CN111899111A (en) Capital matching method, device, server and storage medium
CN111612616A (en) Block chain account evaluation method and device, terminal device and computer readable medium
CN112258306B (en) Account information checking method, device, electronic equipment and storage medium
CN110489394B (en) Intermediate data processing method and device
CN110278241B (en) Registration request processing method and device
CN111190910B (en) Method and device for processing quota resources, electronic equipment and readable storage medium
CN115760404A (en) Stock reduction scheme generation method, system, terminal and storage medium
CN110751565A (en) Data calculation method and device
CN115268734A (en) Quotation generation method, device, equipment and storage medium based on quotation tool
CN111815272B (en) Application auditing method and device, electronic equipment and storage medium
CN115185904A (en) Cloud storage data processing method and device, electronic equipment and readable storage medium
CN108985758B (en) Data processing method, data processing system and terminal 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200204

WD01 Invention patent application deemed withdrawn after publication