CN112163948A - Method, system, equipment and storage medium for separately-moistening calculation - Google Patents

Method, system, equipment and storage medium for separately-moistening calculation Download PDF

Info

Publication number
CN112163948A
CN112163948A CN202010989247.6A CN202010989247A CN112163948A CN 112163948 A CN112163948 A CN 112163948A CN 202010989247 A CN202010989247 A CN 202010989247A CN 112163948 A CN112163948 A CN 112163948A
Authority
CN
China
Prior art keywords
calculation
lubrication
module
data
partial
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
CN202010989247.6A
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 Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software 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 Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN202010989247.6A priority Critical patent/CN112163948A/en
Publication of CN112163948A publication Critical patent/CN112163948A/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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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
    • G06F16/2433Query languages
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Computing Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses a partial lubrication calculation method, a partial lubrication calculation system, partial lubrication calculation equipment and a storage medium. The method comprises the following steps: obtaining the partial wetting rule of at least one fund party from a partial wetting rule configuration module through a partial wetting calculation module; acquiring the lubrication condition data corresponding to each fund party according to each lubrication rule through a lubrication calculation module; obtaining the sub-wetting calculation data and the sub-wetting calculation mode corresponding to each fund party through a sub-wetting calculation module according to the sub-wetting condition data; and performing lubrication calculation on the lubrication calculation data through a lubrication calculation module according to the lubrication calculation modes to obtain the lubrication calculation results corresponding to the fund parties. The method can flexibly configure the lubrication rule on line, has high calculation efficiency and low calculation cost and is convenient to check.

Description

Method, system, equipment and storage medium for separately-moistening calculation
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a method, a system, equipment and a storage medium for performing distributed computation.
Background
In the course of the fund exchange of two parties of transaction, one party needs to calculate profit with the fund party, for example, in the scenes of commission return, income reduction and exemption, etc., the dividend calculation needs to be carried out.
In the prior art, the differentiated calculation mode is to compile a differentiated calculation SQL (Structured Query Language) according to the differentiated rules of the capital parties of the two transaction parties, manually obtain original data by executing the SQL, determine the differentiated calculation result according to the differentiated rules, and manually sort the differentiated calculation result.
In the scheme in the prior art, the relation among a fund party, a dividing and lubricating rule, SQL, original data and a dividing and lubricating calculation result is determined in a manual mode, manpower is consumed, and the problems of low efficiency, difficulty in checking, high checking cost and the like exist. Especially, when the run-out rule is newly added, SQL needs to be written again, the whole run-out calculation process is executed manually, and the operation process is complicated.
Disclosure of Invention
The embodiment of the invention provides a method, a system, equipment and a storage medium for the lubrication calculation, and the lubrication rules and calculation can be flexibly configured on line, so that the convenience and the high efficiency of the lubrication calculation are improved.
In a first aspect, an embodiment of the present invention provides a method for calculating a degree of partial saturation, where the method includes:
obtaining the partial wetting rule of at least one fund party from a partial wetting rule configuration module through a partial wetting calculation module;
obtaining the lubrication condition data corresponding to each fund party according to each lubrication rule through the lubrication calculation module;
obtaining the lubrication division calculation data and the lubrication division calculation mode corresponding to each fund party according to the lubrication division condition data through the lubrication division calculation module;
and performing lubrication calculation on each lubrication calculation data through the lubrication calculation module according to each lubrication calculation mode to obtain a lubrication calculation result corresponding to each fund party.
In a second aspect, an embodiment of the present invention further provides a moist computing system, where the system includes: divide moist rule configuration module and divide moist calculation module, divide moist rule configuration module with divide moist calculation module communication connection, wherein:
the allocation module of the allocation rules is used for storing the allocation rules of a plurality of fund parties;
the partial lubrication calculation module is used for acquiring partial lubrication condition data corresponding to each fund party according to each partial lubrication rule, acquiring partial lubrication calculation data and partial lubrication calculation modes corresponding to each fund party according to the partial lubrication condition data, and performing partial lubrication calculation on each partial lubrication calculation data according to each partial lubrication calculation mode to acquire partial lubrication calculation results corresponding to each fund party.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method according to any embodiment of the invention.
In a fourth aspect, the embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the method according to any of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the wetting rule of at least one fund party is obtained from the wetting rule configuration module through the wetting calculation module; acquiring the lubrication condition data corresponding to each fund party according to each lubrication rule through a lubrication calculation module; obtaining the sub-wetting calculation data and the sub-wetting calculation mode corresponding to each fund party through a sub-wetting calculation module according to the sub-wetting condition data; the sub-lubrication calculation module is used for performing sub-lubrication calculation on the sub-lubrication calculation data according to the sub-lubrication calculation modes to obtain the sub-lubrication calculation results corresponding to the fund parties, so that the on-line calculation problem of sub-lubrication is solved, the on-line flexible allocation of the sub-lubrication rules is realized, and the convenience and the high efficiency of the sub-lubrication calculation are improved.
Drawings
Fig. 1 is a flowchart of a method for calculating partial lubrication according to an embodiment of the present invention;
fig. 2 is a flowchart of a partial lubrication calculation method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a distributed computing system according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for calculating partial coverage, which is applicable to a case of calculating partial coverage results of multiple funders online, where the method may be executed by a partial coverage computing system, the system may be implemented by software and/or hardware, and the system may be integrated in a computer device, as shown in fig. 1, where the method specifically includes:
and step 110, obtaining the partial wetting rule of at least one fund party from the partial wetting rule configuration module through the partial wetting calculation module.
The sub-wetting refers to the profit that the fund party needs to return to one party in the transaction process of the money related to the fund between the party and the fund party. The dividend rule refers to a calculation rule used by each fund party for calculating return profits. For example, the funding rules of the funding party may be the sum of the product of interest of the funding multiplied by the proportion of interest and the product of growth multiplied by the proportion of growth. Furthermore, the differentiation rule may further set a time condition, a transaction number condition, a transaction amount condition, or the like. For example, the time condition, the transaction number condition or the transaction amount condition may mean that the proportion adopted in calculating the degree of dispersion may be different in different time intervals, different transaction numbers or different transaction amount ranges.
The allocation rule configuration module and the allocation calculation module may be integrated in the same computer device, or may be configured in a distributed system, that is, the allocation rule configuration module and the allocation calculation module may be configured in sub-devices in a cluster. The number of the partial wetting rule configuration modules may be one or more, the number of the partial wetting calculation modules may also be one or more, and the number of the partial wetting rule configuration modules and the number of the partial wetting calculation modules may be the same or different, which is not limited in the embodiment of the present invention. For example, when the number of the distribution rules is large, that is, the number of the funding parties is large and the distribution rules of the funding parties are different, the distribution rule configuration module may be configured in a plurality of computer devices to perform the distribution calculation on a plurality of funding parties in parallel. Different computer devices configured with the sub-lubricating calculation module and the sub-lubricating rule configuration module can be connected through network communication so as to realize data interaction.
Optionally, in order to facilitate configuration of the diff rule in the diff rule configuration module, the diff rule configuration module may be set to be in a visual interface form to check whether the entered diff rule is consistent with the corresponding contract rule in the transaction, so as to ensure the correctness of the diff calculation result. The allocation rule configuration module can dynamically update the allocation rule, for example, the allocation rule is added, deleted or modified, and the like, and can be flexibly set. When the allocation rule is configured in the allocation rule configuration module, the identity identification data of the fund party can be configured correspondingly so as to establish the mapping relation between the fund party and the allocation rule. The configuration may be to sequentially enter a single piece of information, or may also be to import multiple pieces of information in batches, which is not limited in the embodiment of the present invention.
In the embodiment of the present invention, the wettability calculation module may obtain the wettability rule of at least one funding party from the wettability rule configuration module. The form of the wettability rule of the fund party acquired by the wettability calculation module from the wettability rule configuration module can be various, for example, the wettability calculation module can acquire the currently updated wettability rule in the wettability rule configuration module in real time. Or, the wettability calculation module may obtain all wettability rules in the wettability rule configuration module. Or, the lubrication division calculation module may obtain the corresponding lubrication division rule in the lubrication division rule configuration module according to the lubrication division calculation requirement. The demand of the differentiated calculation can be the demand determined by the fund party participating in the differentiated calculation according to actual needs. The user may input the triage computing requirements into the triage computing module. For example, a user may input one or more funding party identification data into the semi-moist computing module for instructing retrieval of corresponding semi-moist rules. After the lubrication division calculation module obtains the lubrication division rules, the lubrication division rules can be stored, and the lubrication division calculation is convenient to perform. The form of storage may be varied, for example, it may be a cache, or long-term storage, etc. And the storage can be updated according to the update of the lubrication rules in the lubrication rule configuration module.
And step 120, obtaining the sub-wetting condition data corresponding to each fund party according to each sub-wetting rule through the sub-wetting calculation module.
The allocation rule may have a mapping relationship with the fund party, and the allocation calculation module may determine the corresponding fund party according to the allocation rule, or may obtain the corresponding allocation rule according to the fund party. The data types required by the partial calculation, such as interest, growth, proportion, data date and the like, can be contained in the partial rules. The partial lubrication condition data can be used for indicating the acquisition of partial lubrication calculation data and a partial lubrication calculation mode. For example, the partial lubrication condition data may be a data acquisition instruction formed according to a data type required for the partial lubrication calculation, and the partial lubrication calculation data may be acquired according to the data acquisition instruction. Or, the data of the partial wetting condition can also be a preset data acquisition instruction corresponding to the fund party. Or, the sub-wetting condition data may further include identification information of the fund party or identification information of the sub-wetting rule, and the like, which may facilitate obtaining a corresponding sub-wetting calculation manner.
In the embodiment of the invention, the corresponding sub-wetting condition data can be obtained according to the fund party corresponding to the sub-wetting rule or the data type required by the sub-wetting calculation. For example, the wettability calculation module may obtain the wettability rule corresponding to the fund party needing to be calculated from the wettability rule configuration module. And determining the data content required by the partial lubrication calculation according to the acquired partial lubrication rule. The sub-wetting calculation module can obtain the sub-wetting condition data which can be used for obtaining the sub-wetting calculation data and the sub-wetting calculation mode according to the required data content or the fund party.
In an implementation manner of the embodiment of the present invention, optionally, the condition data includes SQL data and identity data of the funding party.
SQL data is a programming language for accessing data and querying, updating, and managing database systems. The way of forming the SQL data may be various, for example, the SQL data may be formed by the moist computing module according to the required data type and the database, and the SQL data may be used to instruct to obtain the moist computing data. The sub-lubricating calculation module forms SQL data according to the required data type and the database, so that manual operation can be reduced, and the speed and accuracy of acquiring the sub-lubricating calculation data can be improved. Or, the SQL data may be written in advance according to the run-flat rule, and the SQL data may be stored in the run-flat computing module. When the SQL data is compiled and formed according to the diff rule in advance, the diff calculation module can directly acquire the SQL data without forming the SQL data before acquiring the diff calculation data, so that the speed of acquiring the diff calculation data can be further improved.
The funding party identity identification data may be identification information for representing a funding party. In different application scenarios, the manner of obtaining the identity data of the funding party may be different. For example, when the semi-moist calculation module obtains the semi-moist rule required for the semi-moist calculation, the identity data of the fund party may be determined according to the semi-moist rule and represents the fund party required to perform the semi-moist calculation. Or, when the divide-and-moisten calculation module obtains the updated divide-and-moisten rules or all the divide-and-moisten rules, and the divide-and-moisten rules are not all the divide-and-moisten rules required for the divide-and-moisten calculation, the identity data of the fund party may be determined according to the fund party which needs to participate in the divide-and-moisten calculation and is obtained by the divide-and-moisten calculation module. In other words, the moist computing module may receive an operation instruction of the user, and determine the identity data of the funding party according to the operation instruction of the user.
The obtaining of the SQL data by the diff calculation module may be corresponding to the identity data of the funding party, that is, only the SQL data required for participating in the diff calculation may be obtained, and the specific forming manner of the SQL data may be any of the manners described above.
And step 130, acquiring the sub-wetting calculation data and the sub-wetting calculation mode corresponding to each fund party through the sub-wetting calculation module according to the sub-wetting condition data.
The data of the partial wetting calculation can be data required for performing the partial wetting calculation, such as capital data of cost, interest, proportion, data time and the like. The partial lubrication calculation method may be a formula or a rule for calculating partial lubrication calculation data. For example, the fund data of the fund party A before 11 months in 2018 adopts a diff calculation formula; and the fund data of the fund party A after 11 months in 2018 adopts a b-run calculation formula. The contents of the formulas a and b may be different, specifically, the types of parameters in the formulas may be different, or the corresponding numerical values of the same parameter may be different, which is not limited in the embodiment of the present invention.
In the embodiment of the invention, the sub-wetting calculation module can also obtain the sub-wetting calculation data and the sub-wetting calculation mode corresponding to each fund party according to the sub-wetting condition data. The manner in which the sub-wetting calculation module obtains the sub-wetting calculation data and the sub-wetting calculation mode may be to obtain the sub-wetting calculation data and the sub-wetting calculation mode according to the manner corresponding to the sub-wetting condition data. For example, the partial lubrication calculation module may obtain the partial lubrication calculation data according to the data obtaining instruction in the partial lubrication condition data. The data acquisition instructions may specify which funder corresponds to the data to acquire, and which types of data. Or, the sub-wetting calculation module may further obtain a corresponding sub-wetting calculation manner according to the identification information of the fund party or the identification information of the sub-wetting rule in the sub-wetting condition data.
The data of the partial lubrication calculation can be stored in a data storage database in advance, and the partial lubrication calculation module can be in network communication connection with the data storage database for data interaction. The data storage database for storing the data of the divided lubrication calculation can be arranged in the equipment where the data of the divided lubrication calculation is located, and can also be arranged in the equipment which operates independently. The form of the data storage database can be various, and optionally, Hive (data warehouse tool) storage can be adopted. Correspondingly, the obtaining mode of the data of the partial lubrication calculation can be to read related data from the data storage database according to the data of the partial lubrication conditions.
The partial lubrication calculation mode may be a mode determined by the data calculation module in the partial lubrication calculation module according to the partial lubrication rule and used for performing the partial lubrication calculation. Or, the partial lubrication calculation mode may be a mode of performing partial lubrication calculation according to the corresponding allocation of the partial lubrication rules when the partial lubrication rules are allocated in the partial lubrication rule allocation module and are entered. The partial lubrication calculation module can acquire a partial lubrication calculation mode from the data calculation module or the partial lubrication rule configuration module according to the partial lubrication condition data.
In an implementation manner of the embodiment of the present invention, optionally, obtaining, by the wettability computing module, wettability computing data and wettability computing manners corresponding to each fund party according to the wettability condition data includes: inquiring the sub-wetting calculation data corresponding to each fund party from a data storage database according to the SQL data through a sub-wetting calculation module; and acquiring the sub-wetting calculation mode corresponding to each fund party from the data calculation module through the sub-wetting calculation module according to the fund party identity identification data.
The data storage database may be used to store data, such as running calculation data. The data storage database can be arranged in the computer equipment where the sub-lubricating calculation module is arranged so as to improve the efficiency of data acquisition; alternatively, the data storage database may be in network communication with the distributed computing module in another computing device. The SQL data may indicate that data corresponding to the funding party is acquired, and the data type may be specified by the SQL data. The funding party's moistening calculation mode corresponding to the funding party's identification data may be obtained from the data calculation module through the funding party's identification data. The data calculation module can be part of the partial lubrication calculation module and can determine or acquire a partial lubrication calculation mode; the SQL data can also be determined or obtained, and the moist computing data corresponding to the SQL data can also be obtained.
It should be noted that one funding party may configure a plurality of differentiation rules, and the differentiation rules of one funding party may be stored as a whole. The identity data of the fund party can only represent the fund party, and a plurality of wetting rules of the fund party can be obtained according to the identity data of the fund party when the wetting calculation is carried out. The run-out calculation module can match the data types required by run-out calculation by adopting various run-out rules according to the data types specified in the SQL data so as to determine the run-out rules. And the lubrication calculation module acquires the lubrication calculation data according to the SQL data and calculates the lubrication calculation data according to the lubrication calculation mode corresponding to the determined lubrication rule. For example, the identity data of the fund party represents the fund party B, the moisturizing calculation data obtained by the moisturizing calculation module according to the SQL data is transaction data about 6 months before 2015, and the determined moisturizing rule may be a moisturizing rule that should be adopted by the fund party B about 11 months before 2015. Alternatively, a plurality of rules for the funding party may be stored separately, and the funding party identification data may represent the funding party and the rules for the funding party. In performing the run-out calculation, the run-out calculation module may determine a run-out rule for the funding party based on the funding party identity identification data. The partial lubrication calculation module can acquire partial lubrication calculation data according to the SQL data and determine a partial lubrication calculation mode according to the determined partial lubrication rule so as to calculate the partial lubrication calculation data.
And step 140, performing the sub-wetting calculation on the sub-wetting calculation data through the sub-wetting calculation module according to the sub-wetting calculation modes to obtain the sub-wetting calculation results corresponding to the fund parties.
The partial computation module can perform partial computation on a plurality of fund parties in parallel. The data calculation module configured in the sub-lubricating calculation module can perform online or offline calculation. In order to maximize the calculation efficiency of the data, the data calculation module can adopt big data offline calculation, and can quickly calculate a large amount of original data through the capacity of the big data offline calculation to determine the lubrication calculation result.
In this embodiment, the allocation rules of each fund party are configured by the allocation rule configuration module, so that online flexible configuration of the allocation rules can be realized, and the problem that the allocation rules need to be determined repeatedly when performing allocation calculation offline can be avoided. The sub-lubrication condition data is obtained through the sub-lubrication calculation module according to the sub-lubrication rules, the sub-lubrication calculation data and the sub-lubrication calculation mode are obtained, sub-lubrication calculation is carried out, the online corresponding relation can be established for the fund party, the sub-lubrication rules, the sub-lubrication calculation data and the sub-lubrication calculation mode, the calculation efficiency can be improved, the calculation cost is reduced, the problem that due to the fact that the calculation mode under the manual line needs to establish the corresponding relation for the fund party, the sub-lubrication rules, the sub-lubrication calculation data and the sub-lubrication calculation mode manually is solved, errors are prone to occur, efficiency is low, and labor cost is high is solved.
According to the technical scheme of the embodiment, the sub-wetting rule of at least one capital party is obtained from the sub-wetting rule configuration module through the sub-wetting calculation module, the sub-wetting condition data corresponding to each capital party is obtained according to each sub-wetting rule, and the sub-wetting calculation data and the sub-wetting calculation mode corresponding to each capital party are obtained according to the sub-wetting condition data, so that the sub-wetting calculation data are subjected to sub-wetting calculation according to each sub-wetting calculation mode, the sub-wetting calculation results corresponding to each capital party are obtained, the problems that the labor cost and the checking cost are high, the calculation mode efficiency is low and the like when the sub-wetting calculation is carried out on a single capital party under a manual line are solved, and the effects that the sub-wetting rule can be flexibly configured on line, the calculation efficiency is high, and the calculation cost.
Example two
Fig. 2 is a flowchart of a calculation method for partial lubrication according to a second embodiment of the present invention, which is a further refinement of the foregoing technical solution, and the technical solution in this embodiment may be combined with each of the alternatives in one or more of the foregoing embodiments. As shown in fig. 2, the method includes:
and step 210, acquiring the moisturizing rules of all the fund parties from the moisturizing rule configuration module through the rule configuration central module, and establishing a mapping relation between the fund parties and the moisturizing rules.
The rule configuration center module may be configured to store the lubrication rules entered by the user through the lubrication rule configuration module, and dynamically release the stored lubrication rules, so that a subscriber (e.g., the lubrication calculation module) may obtain the update condition of the lubrication rules in real time without shutdown and restart. In the conventional technology, the configuration required by the module (for example, the allocation rule configuration required by the allocation rule configuration module) needs to be written into the configuration file, and when the module is online, the module and the configuration file are packaged and deployed online together. The module needs to read the configuration in the configuration file to fulfill the module requirements. However, when there is a change in a parameter in a configuration file (e.g., an update of the distribution rule), the module that has already been running cannot sense the change in the configuration file, and thus cannot acquire the latest configuration. If the module wants to obtain the latest configuration, the module needs to be stopped and restarted, and an application request is initiated to re-read the configuration file, obtain the latest configuration and realize updating.
In this embodiment, the distribution calculation module may directly interface with the rule configuration center module, and when the distribution rules in the distribution rule configuration module are updated, the rule configuration center module may dynamically issue the updated distribution rules in real time to push the distribution rules to the distribution calculation module. That is, the break-moist computing module can obtain the configuration information of the latest break-moist rule without shutdown and restart, and the restart does not involve module requests. The rule configuration center module can be implemented by adopting a zookeeper (distributed coordination) framework or an Apollo (Apollo) framework. The rule configuration center module, the break-even rule configuration module, and the break-even calculation module may be integrated in the same or different computer devices.
In order to facilitate management of the wettability rules, when the wettability rules are entered in the wettability rule configuration module, the wettability rules may be entered by using the principal as a dimension, for example, the wettability rules of the principal a, the wettability rules of the principal B, the wettability rules of the principal C, and the wettability rules of the principal D may be entered. The rule configuration center module may perform synchronous storage with the funder as the dimension when performing the differentiated rule storage. Namely, a mapping relation between the fund party and the diff rule can be established, and a plurality of diff rules of one fund party are correspondingly written into the rule configuration center module. The sub-wetting calculation module can subscribe the configuration of all fund parties of the rule configuration center module, and when the sub-wetting rules of the fund parties are updated, the rule configuration center can push the update condition of the sub-wetting rules of the fund parties to the sub-wetting calculation module without restarting.
The sub-moist computing module can directly determine the fund party needing sub-moist computing according to the SQL data and the identity data of the fund party, and performs sub-moist computing on the sub-moist computing data by adopting a determined sub-moist computing mode according to a sub-moist rule in the data time (such as year information), transaction stroke data, transaction amount and the like in the sub-moist computing data corresponding to the SQL data and matching the corresponding fund party.
And step 220, acquiring the partial wetting rule of at least one fund party from the rule configuration center module through the partial wetting calculation module.
The sub-wetting calculation module can subscribe the sub-wetting rules of all fund parties from the rule configuration center module, can update the sub-wetting calculation module in real time according to the updating of the sub-wetting rule configuration module, and does not need to be restarted. When the divided lubrication rules are added, the divided lubrication rules are only added in the divided lubrication rule configuration module, the rule configuration central module stores the added divided lubrication rules, and the added divided lubrication rules are dynamically issued to be pushed to the divided lubrication calculation module. When the divide-and-moisten rule is newly added, the divide-and-moisten rule only needs to be recorded in the divide-and-moisten rule configuration central module, and the operation logics of the rule configuration central module and the divide-and-moisten calculation module do not need to be changed. Overall, when having the branch moist rule to update, the content that needs to modify is few, and operation process is simple, can dispose the branch moist rule in a flexible way, can avoid artifical off-line when carrying out the branch moist calculation, when having the update in the branch moist rule, needs the whole branch moist calculation flow of artifical reconfiguration, the complicated loaded down with trivial details problem of operation.
Step 230, obtaining the lubrication condition data corresponding to each fund party according to each lubrication rule through a lubrication calculation module; the condition data includes SQL data and identification data of fund party.
And step 240, inquiring the sub-lubricating calculation data corresponding to each fund party from the data storage database through the sub-lubricating calculation module according to the SQL data.
And step 250, acquiring the partial lubrication calculation mode corresponding to each fund party from the data calculation module through the partial lubrication calculation module according to the fund party identity data.
And step 260, when the preset sub-wetting calculation period is reached, performing sub-wetting calculation on each sub-wetting calculation data through the sub-wetting calculation module according to each sub-wetting calculation mode to obtain a sub-wetting calculation result corresponding to each fund party.
The partial lubrication calculation module may perform partial lubrication calculation according to a preset partial lubrication calculation period, for example, the preset partial lubrication calculation period may be the end of every day, and the calculation mode may be offline calculation. The method can perform the sub-lubrication calculation through the big data offline calculation capacity at the end of each day, can improve the efficiency of the sub-lubrication calculation, and can avoid the condition of data shortage during the sub-lubrication calculation.
And 270, storing the partial lubrication calculation results corresponding to the fund parties into a data storage database of the partial lubrication calculation module through the partial lubrication calculation module.
And step 280, sending the partial lubrication calculation results corresponding to the fund parties to a partial lubrication calculation result processing module through the partial lubrication calculation module.
The partial lubrication calculation result processing module and the partial lubrication calculation module can be in the same computer device or different computer devices. The partial-run calculation result processing module may be a module for processing a partial-run calculation result, and the processing of the partial-run calculation result may be, for example: summarizing the partial lubrication calculation results, merging the partial lubrication calculation results or revising the partial lubrication calculation results and the like. Optionally, the partial lubrication calculation module may send the partial lubrication calculation result to the partial lubrication calculation result processing module in real time through the internal data calculation module. Or, the partial lubrication calculation module may also package the partial lubrication calculation results stored in the internal data storage database according to a certain period and send the result to the partial lubrication calculation result processing module. The sending period of the differentiated service calculation result can be set according to the actual service requirement, so that resources required by data transmission are saved on the premise of ensuring the differentiated service calculation speed.
And 290, summarizing the wettability calculation results through the wettability calculation result processing module according to a preset data summarizing mode to generate a visual wettability data report.
The preset data summarizing mode can summarize the moisturizing calculation results according to the fund side dimension, the data time dimension, the fund type dimension and the like. The moist computing result processing module may store the aggregated moist computing result in a relational database, such as an Oracle, DB2, Microsoft SQL Server, Microsoft Access, or MySQL database. When the distributed computation result processing module generates a visual distributed data report, the summarized distributed computation results in the relational database can be inquired, the visual distributed data report is generated according to the summarized distributed computation results and time dimensions such as days or months, and the visual distributed data report is displayed to a related management platform so as to check distributed money and facilitate checking of the distributed computation results.
It should be noted that the above-mentioned sub-rule configuration module, the rule configuration center module, the sub-rule calculation module, and the result processing module may be disposed in the same computer device. However, in order to improve the efficiency of the saturation calculation, the modules may be provided in different computer devices. For modules involving large amounts of data or large amounts of computation, such as moist computing modules, multiple computer devices may be provided for parallel computation, e.g., a distributed cluster system may be employed.
According to the technical scheme of the embodiment, the rule configuration center module is introduced between the sub-wetting calculation module and the sub-wetting rule configuration module, so that the sub-wetting rules of all fund parties are obtained from the sub-wetting rule configuration module through the rule configuration center module, and the mapping relation between the fund parties and the sub-wetting rules is established, so that the sub-wetting calculation module obtains the sub-wetting rules of at least one fund party from the rule configuration center module, updates of the sub-wetting rules can be pushed to the sub-wetting calculation module in real time, and the sub-wetting calculation module is not required to be restarted. Moreover, when the lubrication division rule is updated, the technical scheme of the embodiment needs less content to be modified, is simple in operation process, can flexibly configure the lubrication division rule, and can avoid the problem that when the lubrication division rule is updated manually, the whole lubrication division calculation process needs to be manually reconfigured once the lubrication division rule is updated, and the operation is complex and tedious.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a distributed computing system according to a third embodiment of the present invention. In connection with fig. 3, the system comprises: a break-run rule configuration module 310 and a break-run calculation module 320.
The lubrication rule configuration module 310 is in communication connection with the lubrication calculation module 320; the break-even configuration module 310 is used to store break-even rules for a plurality of funders.
The sub-wetting calculation module 320 is configured to obtain sub-wetting condition data corresponding to each fund party according to each sub-wetting rule, obtain sub-wetting calculation data and sub-wetting calculation modes corresponding to each fund party according to the sub-wetting condition data, and perform sub-wetting calculation on each sub-wetting calculation data according to each sub-wetting calculation mode to obtain a sub-wetting calculation result corresponding to each fund party.
According to the technical scheme of the embodiment, the sub-wetting rule configuration module and the sub-wetting calculation module are configured in the sub-wetting calculation system, the sub-wetting rule of a capital party is stored through the sub-wetting rule configuration module, the sub-wetting rule is acquired from the sub-wetting rule configuration module through the sub-wetting calculation module, and the sub-wetting condition data is acquired according to the sub-wetting rule so as to acquire the sub-wetting calculation data and the sub-wetting calculation mode, so that the sub-wetting calculation mode is adopted for the sub-wetting calculation data for sub-wetting calculation, the problems that the labor cost and the checking cost are high and the calculation mode efficiency is low in the sub-wetting calculation aiming at a single capital party under a manual line are solved, and the effects of flexibly configuring the sub-wetting rule on line, being high in calculation efficiency and being low.
Optionally, the system further includes a rule configuration center module 330, and the rule configuration center module 330 is connected in communication with the break-and-run rule configuration module 310 and the break-and-run calculation module 320, respectively.
The rule configuration center module 330 is configured to obtain the moisturizing rules of all the funders from the moisturizing rule configuration module 310, and establish a mapping relationship between the funders and the moisturizing rules.
The rule configuration center module 330 is further configured to transmit the reconciliation rules for the at least one funder to the reconciliation calculation module 320.
Optionally, the condition data includes SQL data and funding party identification data.
Optionally, the sub-calculation module 320 is specifically configured to query the sub-calculation data corresponding to each fund party from the data storage database 322 according to the SQL data; and the damping calculation mode corresponding to each fund party is obtained from the data calculation module 321 according to the identity data of the fund party.
Optionally, the sub-damping calculation module 320 is specifically configured to perform sub-damping calculation on each sub-damping calculation data according to each sub-damping calculation mode when the preset sub-damping calculation period is reached.
Optionally, the partial wetting calculation module 320 is further configured to store the partial wetting calculation result corresponding to each fund party into the data storage database 322 of the partial wetting calculation module 320.
Optionally, the system further includes: a partial lubrication calculation result processing module 340;
the partial lubrication calculation result processing module 340 is in communication connection with the partial lubrication calculation module 320; the partial lubrication calculating module 320 is configured to receive the partial lubrication calculating module 320 sent by the partial lubrication calculating module 320;
the sub-lubricating calculation module 320 is further configured to summarize sub-lubricating calculation results according to a preset data summarization mode, and generate a visual sub-lubricating data report.
The sub-wetting computing system provided by the embodiment of the invention can execute the sub-wetting computing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the executing method.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention, and as shown in fig. 4, the computer device includes:
one or more processors 410, one processor 410 being illustrated in FIG. 4;
a memory 420;
the apparatus may further include: an input device 430 and an output device 440.
The processor 410, the memory 420, the input device 430 and the output device 440 of the apparatus may be connected by a bus or other means, for example, in fig. 4.
The memory 420 is a non-transitory computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a break-even calculation method in the embodiment of the present invention (for example, the break-even rule configuration module 310, the break-even calculation module 320, the rule configuration center module 330, and the break-even calculation result processing module 340 shown in fig. 3). The processor 410 executes software programs, instructions and modules stored in the memory 420 to execute various functional applications and data processing of the computer device, that is, to implement a distributed computing method of the above method embodiment, that is:
obtaining the partial wetting rule of at least one fund party from a partial wetting rule configuration module through a partial wetting calculation module;
obtaining the lubrication condition data corresponding to each fund party according to each lubrication rule through the lubrication calculation module;
obtaining the lubrication division calculation data and the lubrication division calculation mode corresponding to each fund party according to the lubrication division condition data through the lubrication division calculation module;
and performing lubrication calculation on each lubrication calculation data through the lubrication calculation module according to each lubrication calculation mode to obtain a lubrication calculation result corresponding to each fund party.
The memory 420 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 420 may optionally include memory located remotely from processor 410, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus. The output device 440 may include a display device such as a display screen.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a distribution calculation method according to an embodiment of the present invention:
obtaining the partial wetting rule of at least one fund party from a partial wetting rule configuration module through a partial wetting calculation module;
obtaining the lubrication condition data corresponding to each fund party according to each lubrication rule through the lubrication calculation module;
obtaining the lubrication division calculation data and the lubrication division calculation mode corresponding to each fund party according to the lubrication division condition data through the lubrication division calculation module;
and performing lubrication calculation on each lubrication calculation data through the lubrication calculation module according to each lubrication calculation mode to obtain a lubrication calculation result corresponding to each fund party.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of moist calculation, comprising:
obtaining the partial wetting rule of at least one fund party from a partial wetting rule configuration module through a partial wetting calculation module;
obtaining the lubrication condition data corresponding to each fund party according to each lubrication rule through the lubrication calculation module;
obtaining the lubrication division calculation data and the lubrication division calculation mode corresponding to each fund party according to the lubrication division condition data through the lubrication division calculation module;
and performing lubrication calculation on each lubrication calculation data through the lubrication calculation module according to each lubrication calculation mode to obtain a lubrication calculation result corresponding to each fund party.
2. The method of claim 1, wherein obtaining the wetting rule of at least one funder from a wetting rule configuration module by a wetting calculation module comprises:
acquiring the wetting rules of all the fund parties from the wetting rule configuration module through a rule configuration central module, and establishing a mapping relation between the fund parties and the wetting rules;
and acquiring the wetting rule of the at least one fund party from the rule configuration center module through the wetting calculation module.
3. The method of claim 1, wherein the condition data comprises Structured Query Language (SQL) data and funding party identification data;
the obtaining, by the divide-and-moisten calculation module, divide-and-moisten calculation data and divide-and-moisten calculation modes corresponding to each of the funders according to the divide-and-moisten condition data includes:
querying the sub-lubricating calculation data corresponding to each fund party from a data storage database according to the SQL data through the sub-lubricating calculation module;
and acquiring a lubrication calculation mode corresponding to each fund party from a data calculation module through the lubrication calculation module according to the fund party identity data.
4. The method according to claim 1, wherein the performing, by the partial computation module, partial computation on each partial computation data according to each partial computation manner comprises:
and when a preset lubrication calculation period is reached, performing lubrication calculation on each lubrication calculation data through the lubrication calculation module according to each lubrication calculation mode.
5. The method according to claim 1, wherein after the performing, by the partial computation module, partial computation on each partial computation data according to each partial computation manner, further comprises:
and storing the partial lubrication calculation results corresponding to the fund parties into a data storage database of the partial lubrication calculation module through the partial lubrication calculation module.
6. The method according to claim 1, wherein after the performing, by the partial computation module, partial computation on each partial computation data according to each partial computation manner, further comprises:
sending the partial lubrication calculation results corresponding to the fund parties to a partial lubrication calculation result processing module through the partial lubrication calculation module;
summarizing the sub-lubricating calculation results according to a preset data summarizing mode through the sub-lubricating calculation result processing module, and generating a visual sub-lubricating data report.
7. The lubrication-sharing computing system is characterized by comprising a lubrication-sharing rule configuration module and a lubrication-sharing computing module, wherein the lubrication-sharing rule configuration module is in communication connection with the lubrication-sharing computing module, and the lubrication-sharing computing module is characterized in that:
the allocation module of the allocation rules is used for storing the allocation rules of a plurality of fund parties;
the partial lubrication calculation module is used for acquiring partial lubrication condition data corresponding to each fund party according to each partial lubrication rule, acquiring partial lubrication calculation data and partial lubrication calculation modes corresponding to each fund party according to the partial lubrication condition data, and performing partial lubrication calculation on each partial lubrication calculation data according to each partial lubrication calculation mode to acquire partial lubrication calculation results corresponding to each fund party.
8. The system of claim 7, further comprising a rule configuration center module communicatively coupled to the diff rule configuration module and the diff calculation module, respectively; wherein:
the rule configuration center module is used for acquiring the moisturizing rules of all the fund parties from the moisturizing rule configuration module and establishing the mapping relation between the fund parties and the moisturizing rules;
the rule configuration center module is further used for transmitting the allocation rule of at least one fund party to the allocation calculation module.
9. A computer device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN202010989247.6A 2020-09-18 2020-09-18 Method, system, equipment and storage medium for separately-moistening calculation Pending CN112163948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010989247.6A CN112163948A (en) 2020-09-18 2020-09-18 Method, system, equipment and storage medium for separately-moistening calculation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010989247.6A CN112163948A (en) 2020-09-18 2020-09-18 Method, system, equipment and storage medium for separately-moistening calculation

Publications (1)

Publication Number Publication Date
CN112163948A true CN112163948A (en) 2021-01-01

Family

ID=73862509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010989247.6A Pending CN112163948A (en) 2020-09-18 2020-09-18 Method, system, equipment and storage medium for separately-moistening calculation

Country Status (1)

Country Link
CN (1) CN112163948A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860745A (en) * 2021-01-29 2021-05-28 拉卡拉支付股份有限公司 Separate settlement method, server and storage medium
CN113673997A (en) * 2021-08-27 2021-11-19 深圳鼎盛电脑科技有限公司 Visualized processing method, device, equipment and medium of fund calculation engine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463611A (en) * 2015-01-07 2015-03-25 上海瀚银信息技术有限公司 Agent management system
CN108205777A (en) * 2017-11-27 2018-06-26 吴树贤 It is a kind of to be sold system of sharing in the benefit
CN109118281A (en) * 2018-08-07 2019-01-01 杭州华箸科技股份有限公司 The management method and device for profit of marketing
CN111598699A (en) * 2020-05-20 2020-08-28 嘉联支付有限公司 Divide moist system based on cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463611A (en) * 2015-01-07 2015-03-25 上海瀚银信息技术有限公司 Agent management system
CN108205777A (en) * 2017-11-27 2018-06-26 吴树贤 It is a kind of to be sold system of sharing in the benefit
CN109118281A (en) * 2018-08-07 2019-01-01 杭州华箸科技股份有限公司 The management method and device for profit of marketing
CN111598699A (en) * 2020-05-20 2020-08-28 嘉联支付有限公司 Divide moist system based on cluster

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860745A (en) * 2021-01-29 2021-05-28 拉卡拉支付股份有限公司 Separate settlement method, server and storage medium
CN112860745B (en) * 2021-01-29 2023-07-04 拉卡拉支付股份有限公司 Method, server and storage medium for clearing and settling
CN113673997A (en) * 2021-08-27 2021-11-19 深圳鼎盛电脑科技有限公司 Visualized processing method, device, equipment and medium of fund calculation engine

Similar Documents

Publication Publication Date Title
CN112800095A (en) Data processing method, device, equipment and storage medium
CN111125178B (en) Data query method, device, terminal, presto query engine and storage medium
CN110134516A (en) Finance data processing method, device, equipment and computer readable storage medium
CN112162980A (en) Data quality control method and system, storage medium and electronic equipment
CN112163948A (en) Method, system, equipment and storage medium for separately-moistening calculation
CN107193749B (en) Test method, device and equipment
CN113849492A (en) System for providing standardized data quality check for multi-scenario service
CN111723004B (en) Measurement method for agile software development, measurement data output method and device
CN115984022B (en) Unified account checking method and device for distributed payment system
CN110297820B (en) Data processing method, device, equipment and storage medium
CN116244383A (en) BOM synchronous processing method, equipment and medium based on BOM middle station
CN115794804A (en) Engineering internal control data visualization processing system and method based on big data technology
CN110968592A (en) Metadata acquisition method and device, computer equipment and computer-readable storage medium
CN115375430A (en) Method, device and equipment for batch analysis and loading of additional data of bank
CN112860700B (en) Data table generation method and device, storage medium and electronic device
CN115599871A (en) Lake and bin integrated data processing system and method
CN110858199A (en) Document data distributed computing method and device
CN115248735A (en) Log data output control method, device, equipment and storage medium
CN112131257B (en) Data query method and device
CN113868138A (en) Method, system, equipment and storage medium for acquiring test data
CN109902067B (en) File processing method and device, storage medium and computer equipment
CN117193956A (en) Distributed data processing system, method, server, and readable storage medium
CN112529456A (en) Supplier evaluation system, supplier evaluation method, background equipment and storage medium
Steinkamp et al. HyDash: A dashboard for real-time business intelligence based on the hyPer Main memory database system
CN112561368B (en) Visual performance calculation method and device for OA approval system

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