A profit sharing calculation method, system, device and storage medium

Through the online acquisition and processing of the distribution rules, conditional data and calculation methods of the distribution calculation module, the problems of low efficiency and high cost of distribution calculation in the existing technology are solved, and the efficiency and convenience of distribution calculation are achieved.

CN112163948BActive Publication Date: 2024-11-22SHENZHEN LEXIN SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010989247.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-18
Publication Date
2024-11-22
Estimated Expiration
2040-09-18

AI Technical Summary

Technical Problem

In the prior art, the calculation method of splitting the power is inefficient, requires cumbersome manual operation, and SQL needs to be re-written when adding splitting the power is new, resulting in high efficiency and cost.

Method used

Through the profit sharing calculation module, the profit sharing rules of the funder are obtained from the profit sharing rule configuration module, and the profit sharing condition data and calculation methods are obtained according to the rules, online profit sharing calculation is realized and manual intervention is reduced.

Benefits of technology

It improves the convenience and efficiency of power distribution calculation, reduces labor costs, and realizes flexible online configuration and efficient calculation of power distribution rules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112163948B_ABST
    Figure CN112163948B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose a profit calculation method, system, device and storage medium. The method includes: obtaining the profit rules of at least one funding party from the profit rule configuration module through the profit calculation module; obtaining the profit condition data corresponding to each funding party according to each profit rule through the profit calculation module; obtaining the profit calculation data and profit calculation method corresponding to each funding party according to the profit condition data through the profit calculation module; performing profit calculation on each profit calculation data according to each profit calculation method through the profit calculation module to obtain the profit calculation result corresponding to each funding party. The method can flexibly configure profit rules online, has efficient calculation, low calculation cost and is easy to check.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular, to a profit sharing calculation method, system, device and storage medium. Background Art

[0002] During the transaction process between the two parties, one party needs to settle profits with the funding party. For example, in scenarios such as rebates, collection exemptions, etc., profit sharing calculations need to be performed.

[0003] The existing profit calculation method is to write profit calculation SQL (Structured Query Language) according to the profit sharing rules of the funding party among the two transaction parties, manually obtain the original data by executing SQL offline, determine the profit calculation results according to the profit sharing rules, and manually organize the profit calculation results.

[0004] In the existing technical solutions, the relationship between the funding party, profit-sharing rules, SQL, original data, and profit-sharing calculation results is determined manually, which consumes manpower and has problems such as low efficiency, difficulty in verification, and high verification costs. Especially when adding new profit-sharing rules, it is necessary to rewrite SQL and manually execute the entire profit-sharing calculation process, which is cumbersome. Summary of the invention

[0005] The embodiments of the present invention provide a profit sharing calculation method, system, device and storage medium, and the profit sharing rules and calculations can be flexibly configured online, thereby improving the convenience and efficiency of profit sharing calculation.

[0006] In a first aspect, an embodiment of the present invention provides a profit sharing calculation method, the method comprising:

[0007] Obtain at least one funding party's profit sharing rule from the profit sharing rule configuration module through the profit sharing calculation module;

[0008] Obtaining profit sharing condition data corresponding to each of the funding parties according to each of the profit sharing rules through the profit sharing calculation module;

[0009] Obtaining profit calculation data and profit calculation methods corresponding to each of the funding parties according to the profit condition data through the profit calculation module;

[0010] The profit calculation module performs profit calculation on each of the profit calculation data according to each of the profit calculation methods to obtain the profit calculation results corresponding to each of the funding parties.

[0011] In a second aspect, an embodiment of the present invention further provides a profit calculation system, which includes: a profit rule configuration module and a profit calculation module, wherein the profit rule configuration module is communicatively connected with the profit calculation module, wherein:

[0012] The profit sharing rule configuration module is used to store profit sharing rules of multiple funding parties;

[0013] The profit calculation module is used to obtain the profit condition data corresponding to each of the funding parties according to the profit rules, obtain the profit calculation data and profit calculation method corresponding to each of the funding parties according to the profit condition data, and perform profit calculation on each of the profit calculation data according to the profit calculation method to obtain the profit calculation results corresponding to each of the funding parties.

[0014] In a third aspect, an embodiment of the present invention further provides a computer device, the device comprising:

[0015] one or more processors;

[0016] a storage device for storing one or more programs,

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any embodiment of the present invention.

[0018] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of the present invention.

[0019] The technical solution of the embodiment of the present invention obtains the profit sharing rule of at least one funding party from the profit sharing rule configuration module through the profit sharing calculation module; obtains the profit sharing condition data corresponding to each funding party according to each profit sharing rule through the profit sharing calculation module; obtains the profit sharing calculation data and profit sharing calculation method corresponding to each funding party according to the profit sharing condition data through the profit sharing calculation module; performs profit sharing calculation on each profit sharing calculation data according to each profit sharing calculation method through the profit sharing calculation module to obtain the profit sharing calculation result corresponding to each funding party, which solves the problem of online calculation of profit sharing and realizes the flexible online configuration of profit sharing rules, thereby improving the convenience and efficiency of profit sharing calculation. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of a profit sharing calculation method provided in Example 1 of the present invention;

[0021] Figure 2 This is a flow chart of a profit sharing calculation method provided in Embodiment 2 of the present invention;

[0022] Figure 3 It is a structural diagram of a profit sharing calculation system provided in Embodiment 3 of the present invention;

[0023] Figure 4It is a structural diagram of a computer device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0025] Embodiment 1

[0026] Figure 1 is a flow chart of a profit sharing calculation method provided in the first embodiment of the present invention. This embodiment is applicable to the case of calculating the profit sharing results of multiple funding parties online. The method can be executed by a profit sharing calculation system. The system can be implemented by software and / or hardware. The system can be integrated in a computer device, such as Figure 1 As shown, the method specifically includes:

[0027] Step 110: Obtain at least one funding party's profit sharing rule from the profit sharing rule configuration module through the profit sharing calculation module.

[0028] Among them, profit sharing refers to the profit that the funding party needs to return to the other party in the process of money transactions between one party and the funding party in the transaction. The profit sharing rule refers to the calculation rule used by each funding party to calculate the returned profit. For example, the profit sharing rule of the funding party can be the sum of the product obtained by multiplying the interest of the funds by the proportion of the interest, and the product obtained by multiplying the interest by the proportion of the interest. Furthermore, time conditions, transaction number conditions or transaction amount conditions can also be set in the profit sharing rules. For example, the time condition, transaction number condition or transaction amount condition can mean that the proportions used in calculating the profit sharing can be different within different time intervals, different transaction numbers, or different transaction amount ranges.

[0029] The profit-sharing rule configuration module and the profit-sharing calculation module can be integrated in the same computer device, or can be configured in a distributed system, that is, the profit-sharing rule configuration module and the profit-sharing calculation module can be configured in the sub-devices in the cluster. The number of profit-sharing rule configuration modules can be one or more, and the number of profit-sharing calculation modules can be one or more, and the number of profit-sharing rule configuration modules and profit-sharing calculation modules can be the same or different, and the embodiment of the present invention does not limit this. For example, when the number of profit-sharing rules is relatively large, that is, when the number of funding parties is large and the profit-sharing rules of each funding party are different, the profit-sharing rule configuration module can be configured in multiple computer devices to perform profit calculations for multiple funding parties in parallel. Different computer devices configured with profit calculation modules and profit rule configuration modules can be connected through network communication to achieve data interaction.

[0030] Optionally, in order to facilitate the configuration of profit-sharing rules in the profit-sharing rule configuration module, the profit-sharing rule configuration module can be set to a visual interface form to verify whether the entered profit-sharing rules are consistent with the corresponding contract rules in the transaction, thereby ensuring the correctness of the profit-sharing calculation results. The profit-sharing rules can be dynamically updated through the profit-sharing rule configuration module. For example, adding, deleting or modifying profit-sharing rules can all be flexibly set. When configuring profit-sharing rules in the profit-sharing rule configuration module, the funding party identity identification data can be configured accordingly to establish a mapping relationship between the funding party and the profit-sharing rules. The so-called configuration can be the entry of a single piece of information in sequence, or it can be the batch import of multiple pieces of information. The embodiment of the present invention does not limit this.

[0031] In an embodiment of the present invention, the profit calculation module can obtain the profit rules of at least one funding party from the profit rule configuration module. The profit calculation module can obtain the profit rules of the funding party from the profit rule configuration module in various forms. For example, the profit calculation module can obtain the currently updated profit rules in the profit rule configuration module in real time. Or, the profit calculation module can obtain all the profit rules in the profit rule configuration module. Or, the profit calculation module can obtain the corresponding profit rules in the profit rule configuration module according to the profit calculation requirements. Among them, the profit calculation requirements can be the requirements determined by the user according to the actual needs of the funding party participating in the profit calculation. The user can input the profit calculation requirements into the profit calculation module. For example, the user can input one or more funding party identity identification data into the profit calculation module to indicate the acquisition of the corresponding profit rules. After the profit calculation module obtains the profit rules, the profit calculation module can store the profit rules for convenience of profit calculation. The storage can be in various forms, for example, it can be cached, or long-term storage, etc. Among them, the storage can be updated according to the update of the profit rules in the profit rule configuration module.

[0032] Step 120: Obtain profit sharing condition data corresponding to each funding party according to each profit sharing rule through the profit sharing calculation module.

[0033] Among them, the profit-sharing rules can be mapped to the funding party, and the profit-sharing calculation module can determine the corresponding funding party according to the profit-sharing rules, or can also obtain the corresponding profit-sharing rules according to the funding party. The profit-sharing rules may contain the data types required for profit calculation, such as interest, yield, ratio, and data date. The profit-sharing condition data can be used to indicate the acquisition of profit calculation data and the profit calculation method. For example, the profit-sharing condition data can be a data acquisition instruction formed according to the data type required for profit calculation, and the profit calculation data can be acquired according to the data acquisition instruction. Alternatively, the profit-sharing condition data can also be a pre-set data acquisition instruction corresponding to the funding party. Alternatively, the profit-sharing condition data can also include the identification information of the funding party or the identification information of the profit-sharing rules, etc., which can facilitate the acquisition of the corresponding profit calculation method.

[0034] In an embodiment of the present invention, corresponding profit sharing condition data can be obtained according to the funding party corresponding to the profit sharing rule or the data type required for profit sharing calculation. Exemplarily, the profit sharing calculation module can obtain the profit sharing rule corresponding to the funding party that needs to be calculated from the profit sharing rule configuration module. According to the obtained profit sharing rule, the data content required for profit sharing calculation can be determined. The profit sharing calculation module can obtain profit sharing condition data that can be used to obtain profit sharing calculation data and profit sharing calculation method according to the required data content or funding party.

[0035] In one implementation of an embodiment of the present invention, optionally, the profit sharing condition data includes SQL data and funding party identity data.

[0036] Among them, SQL data is a programming language used to access data and query, update and manage database systems. The way in which SQL data is formed can be diverse. For example, SQL data can be formed by the profit calculation module according to the required data type and database, and SQL data can be used to indicate the acquisition of profit calculation data. The profit calculation module forms SQL data according to the required data type and database to reduce manual operations and improve the speed and accuracy of obtaining profit calculation data. Alternatively, SQL data can also be written in advance according to profit rules, and SQL data can be stored in the profit calculation module. When SQL data is written in advance according to profit rules, the profit calculation module can directly obtain SQL data without forming SQL data before obtaining profit calculation data, which can further improve the speed of obtaining profit calculation data.

[0037] The funding party identity identification data may be identification information used to represent the funding party. In different application scenarios, the method of obtaining the funding party identity identification data may be different. For example, when the profit-sharing calculation module obtains the profit-sharing rules required for profit-sharing calculation, the funding party identity identification data may be determined based on the profit-sharing rules and represent the funding party that needs to perform profit-sharing calculation. Alternatively, when the profit-sharing calculation module obtains updated profit-sharing rules or all profit-sharing rules, and these profit-sharing rules are not all the profit-sharing rules required for profit-sharing calculation, the funding party identity identification data may be determined based on the funding party that needs to participate in the profit-sharing calculation obtained by the profit-sharing calculation module. In other words, the profit-sharing calculation module can receive the user's operation instructions and determine the funding party identity identification data based on the user's operation instructions.

[0038] The profit-sharing calculation module obtains SQL data corresponding to the identity data of the funding party, that is, it can only obtain the SQL data required to participate in the profit-sharing calculation, and the specific way of forming the SQL data can be any of the above-mentioned methods.

[0039] Step 130: Obtain the profit calculation data and profit calculation method corresponding to each funding party according to the profit condition data through the profit calculation module.

[0040] Among them, the profit calculation data may be data required for profit calculation, for example, financial data such as cost, interest, ratio, and data time. The profit calculation method may be a formula or rule for calculating the profit calculation data. For example, the capital data of funding party A before November 2018 adopts profit calculation formula a; the capital data of funding party A after November 2018 adopts profit calculation formula b. Among them, the contents of formulas a and b may be different, specifically, the types of parameters in the formulas may be different, or the values ​​corresponding to the same parameter may be different, and the embodiments of the present invention do not limit this.

[0041] In an embodiment of the present invention, the profit calculation module may also obtain the profit calculation data and profit calculation method corresponding to each funding party according to the profit condition data. The way in which the profit calculation module obtains the profit calculation data and the profit calculation method may be to obtain the profit calculation data and the profit calculation method in a manner corresponding to the profit condition data. For example, the profit calculation module may obtain the profit calculation data according to the data acquisition instruction in the profit condition data. The data acquisition instruction may specify which funding party's corresponding data is to be obtained, and which types of data. Alternatively, the profit calculation module may also obtain the corresponding profit calculation method according to the identification information of the funding party in the profit condition data or the identification information of the profit rule, etc.

[0042] The profit calculation data can be pre-stored in a data storage database, and the profit calculation module can maintain a network communication connection with the data storage database for data interaction. The data storage database for storing profit calculation data can be set in the device where the profit calculation data is located, or it can also be set in an independently running device. The data storage database can be in various forms, and optionally, it can be stored in Hive (data warehouse tool). Accordingly, the method for obtaining profit calculation data can be to read relevant data from the data storage database according to the profit condition data.

[0043] The profit calculation method can be a method for performing profit calculation determined by the data calculation module in the profit calculation module according to the profit rules. Alternatively, the profit calculation method can also be a method for performing profit calculation according to the corresponding configuration of the profit rules when configuring the profit rules in the profit rule configuration module. The profit calculation module can obtain the profit calculation method from the data calculation module or the profit rule configuration module according to the profit condition data.

[0044] In one implementation of an embodiment of the present invention, optionally, the profit calculation data and profit calculation method corresponding to each funding party are obtained according to the profit condition data through the profit calculation module, including: querying the profit calculation data corresponding to each funding party from the data storage database according to SQL data through the profit calculation module; obtaining the profit calculation method corresponding to each funding party from the data calculation module according to the funding party identity identification data through the profit calculation module.

[0045] Among them, the data storage database can be used to store data, such as profit calculation data. The data storage database can be set in the computer device where the profit calculation module is located to improve the efficiency of data acquisition; or, the data storage database can also be in other computer devices and maintain a network communication connection with the profit calculation module. SQL data can indicate the acquisition of data corresponding to the funding party, and the data type can be specified through SQL data. The profit calculation method of the funding party corresponding to the funding party identity identification data can be obtained from the data calculation module through the funding party identity identification data. The data calculation module can be a part of the profit calculation module, which can determine or obtain the profit calculation method; it can also determine or obtain SQL data, and obtain the profit calculation data corresponding to the SQL data.

[0046] It should be noted that a funding party can configure multiple profit sharing rules, and multiple profit sharing rules of a funding party can be stored as a whole. The funding party identity identification data can only represent the funding party. When performing profit sharing calculation, multiple profit sharing rules of the funding party can be obtained according to the funding party identity identification data. The profit sharing calculation module can match the data type specified in the SQL data with the data type required when using each profit sharing rule for profit sharing calculation to determine the profit sharing rule. The profit sharing calculation module obtains profit sharing calculation data according to the SQL data, and calculates the profit sharing calculation data according to the profit sharing calculation method corresponding to the determined profit sharing rule. For example, the funding party identity identification data represents funding party B, and the profit sharing calculation data obtained by the profit sharing calculation module according to the SQL data is the transaction data before June 2015, and the determined profit sharing rule can be the profit sharing rule that should be adopted by funding party B before November 2015. Alternatively, multiple profit sharing rules of a funding party can be stored separately, and the funding party identity identification data can represent the funding party and the profit sharing rule. When performing profit sharing calculation, the profit sharing calculation module can determine a profit sharing rule of the funding party according to the funding party identity identification data. The profit calculation module can obtain profit calculation data according to SQL data, and determine the profit calculation method according to the determined profit rules to calculate the profit calculation data.

[0047] Step 140: Perform profit calculation on each profit calculation data according to each profit calculation method through the profit calculation module to obtain the profit calculation result corresponding to each funding party.

[0048] The profit calculation module can perform profit calculations for multiple funding parties in parallel. The data calculation module configured in the profit calculation module can perform calculations online or offline. In order to maximize the calculation efficiency of data, the data calculation module can use big data offline calculations, and can quickly calculate a large amount of raw data through the ability of big data offline calculations to determine the profit calculation results.

[0049] In this embodiment, by configuring the profit sharing rules of each funding party through the profit sharing rule configuration module, the online flexible configuration of the profit sharing rules can be realized, and the problem of repeatedly determining the profit sharing rules when performing offline profit sharing calculations can be avoided. The profit sharing calculation module obtains the profit sharing condition data according to the profit sharing rules to obtain the profit sharing calculation data and the profit sharing calculation method, and performs profit sharing calculations. An online correspondence can be established for the funding party, profit sharing rules, profit sharing calculation data, and profit sharing calculation method, which can improve the calculation efficiency and reduce the calculation cost, and avoid the use of manual offline calculation methods. The need to manually establish a correspondence between the funding party, profit sharing rules, profit sharing calculation data, and the profit sharing calculation method is prone to errors, low efficiency, and high labor costs.

[0050] The technical solution of this embodiment obtains the profit sharing rules of at least one funding party from the profit sharing rule configuration module through the profit sharing calculation module, so as to obtain the profit sharing condition data corresponding to each funding party according to each profit sharing rule, and obtain the profit sharing calculation data and profit sharing calculation method corresponding to each funding party according to the profit sharing condition data, so as to perform profit sharing calculation on each profit sharing calculation data according to each profit sharing calculation method, so as to obtain the profit sharing calculation result corresponding to each funding party, which solves the problems of high labor cost and verification cost and low calculation efficiency in manual offline profit sharing calculation for a single funding party, and realizes the effect of flexible online configuration of profit sharing rules, efficient calculation and low calculation cost.

[0051] Embodiment 2

[0052] Figure 2 This is a flow chart of a profit sharing calculation method provided by the second embodiment of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 2 As shown, the method includes:

[0053] Step 210: Obtain the profit sharing rules of all funding parties from the profit sharing rule configuration module through the rule configuration center module, and establish a mapping relationship between the funding parties and the profit sharing rules.

[0054] Among them, the rule configuration center module can be used to store the profit rules entered by the user through the profit rule configuration module, and dynamically publish the stored profit rules, so that the subscriber (such as the profit calculation module) can obtain the update of the profit rules in real time without stopping and restarting. In conventional technology, the configuration required by the module (such as the profit rule configuration required by the profit rule configuration module) needs to be written into the configuration file, and the module and the configuration file are packaged and deployed together when the module goes online. The module needs to read the configuration in the configuration file to meet the module requirements. However, when there are changes in the parameters in the configuration file (such as the update of the profit rules), the already running module cannot perceive the changes in the configuration file and thus cannot obtain the latest configuration. If the module wants to obtain the latest configuration, it needs to stop and restart and initiate an application request to re-read the configuration file, obtain the latest configuration, and implement the update.

[0055] In this embodiment, the profit calculation module can be directly connected to the rule configuration center module. When the profit rules in the profit rule configuration module are updated, the rule configuration center module can publish the updated profit rules in real time and dynamically to push them to the profit calculation module. That is, the profit calculation module can obtain the latest configuration information of the profit rules without shutting down and restarting, and restarting does not involve module requests. Among them, the rule configuration center module can be implemented using the zookeeper (distributed coordination) framework or the Apollo framework. The rule configuration center module, the profit rule configuration module and the profit calculation module can be integrated in the same or different computer devices.

[0056] In order to facilitate the management of profit-sharing rules, when entering profit-sharing rules in the profit-sharing rule configuration module, they can be entered based on the funding party. For example, the profit-sharing rules of funding party A, the profit-sharing rules of funding party B, the profit-sharing rules of funding party C, and the profit-sharing rules of funding party D, etc. can be entered. When storing profit-sharing rules, the rule configuration center module can be synchronized based on the funding party as the dimension. That is, a mapping relationship between funding parties and profit-sharing rules can be established, and multiple profit-sharing rules of a funding party can be written into the rule configuration center module accordingly. The profit calculation module can subscribe to the configuration of all funding parties in the rule configuration center module. When there is an update to the profit-sharing rules of the funding party, the rule configuration center can push the updated profit rules of the funding party to the profit calculation module without restarting.

[0057] The profit-sharing calculation module can directly determine the funding party that needs to be calculated for profit based on the SQL data and the funding party's identity data, and match a profit-sharing rule in the corresponding funding party according to the data time (such as year information), number of transactions, transaction amount, etc. in the profit-sharing calculation data corresponding to the SQL data, and use the determined profit-sharing calculation method to perform profit calculation on the profit-sharing calculation data.

[0058] Step 220: Obtain the profit sharing rules of at least one funding party from the rule configuration center module through the profit sharing calculation module.

[0059] Among them, the profit calculation module can subscribe to the profit rules of all funding parties from the rule configuration center module, and can update the profit calculation module in real time according to the update of the profit rule configuration module, and the profit calculation module does not need to be restarted. When adding new profit rules, it is only necessary to add the profit rules in the profit rule configuration module, and store the newly added profit rules through the rule configuration center module, and dynamically publish the newly added profit rules to push them to the profit calculation module. When adding new profit rules, it is only necessary to enter the profit rules in the profit rule configuration center module, and the operating logic of the rule configuration center module and the profit calculation module does not need to be changed. On the whole, when there is an update to the profit rules, there is little content that needs to be modified, the operation process is simple, the profit rules can be flexibly configured, and manual offline profit calculation can be avoided. When there is an update to the profit rules, the entire profit calculation process needs to be manually reconfigured, and the operation is complicated and cumbersome.

[0060] Step 230: Obtain profit sharing condition data corresponding to each funding party according to each profit sharing rule through the profit sharing calculation module; the profit sharing condition data includes SQL data and funding party identity identification data.

[0061] Step 240: query the profit calculation data corresponding to each funding party from the data storage database according to the SQL data through the profit calculation module.

[0062] Step 250: The profit calculation module obtains the profit calculation method corresponding to each funding party from the data calculation module according to the funding party's identity identification data.

[0063] Step 260: When the preset profit calculation cycle is reached, the profit calculation module performs profit calculation on each profit calculation data according to each profit calculation method to obtain the profit calculation result corresponding to each funding party.

[0064] The profit calculation module can perform profit calculation in a preset profit calculation period. For example, the preset profit calculation period can be the end of each day, and the calculation method can be offline calculation. Profit calculation can be performed at the end of each day through big data offline computing capabilities, which can improve the efficiency of profit calculation and avoid the situation where there is a lack of data when performing profit calculation.

[0065] Step 270: The profit calculation module stores the profit calculation results corresponding to each funding party in the data storage database of the profit calculation module.

[0066] Step 280: Send the profit calculation results corresponding to each funding party to the profit calculation result processing module through the profit calculation module.

[0067] Among them, the profit calculation result processing module can be in the same computer device or a different computer device as the profit calculation module. The profit calculation result processing module can be a module for processing profit calculation results. The processing of profit calculation results can be, for example: summarizing profit calculation results, merging profit calculation results, or revising profit calculation results. Optionally, the profit calculation module can send the profit calculation results to the profit calculation result processing module in real time through the internal data calculation module. Alternatively, the profit calculation module can also package the profit calculation results stored in the internal data storage database and send them to the profit calculation result processing module in a certain period. Among them, the sending period of the profit calculation results can be set according to actual business needs to save the resources required for data transmission while ensuring the profit calculation speed.

[0068] Step 290: The profit calculation result processing module summarizes the profit calculation results according to a preset data summary method to generate a visual profit data report.

[0069] Among them, the preset data aggregation method can be to aggregate the profit calculation results according to the funding party dimension, data time dimension, and funding type dimension. The profit calculation result processing module can store the summarized profit calculation results in a relational database, such as Oracle, DB2, Microsoft SQL Server, Microsoft Access, or MySQL. When generating a visual profit data report, the profit calculation result processing module can query the summarized profit calculation results in the relational database, generate a visual profit data report according to the summarized profit calculation results according to the time dimension such as day or month, and display it to the relevant management platform to view the profit amount, so as to facilitate the verification of the profit calculation results.

[0070] It should be noted that the above-mentioned profit-sharing rule configuration module, rule configuration center module, profit-sharing calculation module and result processing module can be set in the same computer device. However, in order to improve the efficiency of profit-sharing calculation, the above-mentioned modules can also be set in different computer devices. For modules involving large amounts of data or large amounts of calculation, such as profit-sharing calculation modules, multiple computer devices can be set for parallel calculations. For example, a distributed cluster system can be used.

[0071] The technical solution of this embodiment introduces a rule configuration center module between the profit calculation module and the profit rule configuration module, so as to obtain the profit rules of all funding parties from the profit rule configuration module through the rule configuration center module, and establish a mapping relationship between the funding party and the profit rules, so that the profit calculation module can obtain the profit rules of at least one funding party from the rule configuration center module, and can push the update of the profit rules to the profit calculation module in real time without restarting the profit calculation module. Moreover, when there is an update to the profit rules, the technical solution of this embodiment requires less content to be modified, the operation process is simple, and the profit rules can be flexibly configured, which can avoid the problem of manual offline profit calculation. Once the profit rules are updated, the entire profit calculation process needs to be manually reconfigured, and the operation is complicated and cumbersome.

[0072] Embodiment 3

[0073] Figure 3 Schematic diagram of a profit sharing calculation system provided by Embodiment 3 of the present invention. Figure 3 The system includes: a profit sharing rule configuration module 310 and a profit sharing calculation module 320.

[0074] Among them, the profit sharing rule configuration module 310 is communicated with the profit sharing calculation module 320; the profit sharing rule configuration module 310 is used to store the profit sharing rules of multiple funding parties.

[0075] The profit calculation module 320 is used to obtain profit condition data corresponding to each funding party according to each profit sharing rule, obtain profit calculation data and profit calculation methods corresponding to each funding party according to the profit condition data, and perform profit calculation on each profit calculation data according to each profit calculation method to obtain the profit calculation results corresponding to each funding party.

[0076] The technical solution of this embodiment configures a profit sharing rule configuration module and a profit sharing calculation module in the profit sharing calculation system, stores the profit sharing rules of the funding party through the profit sharing rule configuration module, obtains the profit sharing rules from the profit sharing rule configuration module through the profit sharing calculation module, and obtains the profit sharing condition data according to the profit sharing rules to obtain the profit sharing calculation data and the profit sharing calculation method, thereby performing profit sharing calculation on the profit sharing calculation data using the profit sharing calculation method, solving the problems of high labor cost and verification cost and low calculation efficiency in manual offline profit sharing calculation for a single funding party, and achieving the effect of flexible online configuration of profit sharing rules, efficient calculation and low calculation cost.

[0077] Optionally, the system further includes a rule configuration center module 330, which is communicatively connected to the profit sharing rule configuration module 310 and the profit sharing calculation module 320 respectively.

[0078] Among them, the rule configuration center module 330 is used to obtain the profit-sharing rules of all funding parties from the profit-sharing rule configuration module 310, and establish a mapping relationship between the funding parties and the profit-sharing rules.

[0079] The rule configuration center module 330 is also used to transmit the profit sharing rules of at least one funding party to the profit sharing calculation module 320 .

[0080] Optionally, the profit sharing condition data includes SQL data and funding party identity data.

[0081] Optionally, the profit calculation module 320 is specifically used to query the profit calculation data corresponding to each funding party from the data storage database 322 according to the SQL data; and obtain the profit calculation method corresponding to each funding party from the data calculation module 321 according to the funding party identity identification data.

[0082] Optionally, the profit calculation module 320 is specifically used to perform profit calculation on each profit calculation data according to each profit calculation method when a preset profit calculation cycle is reached.

[0083] Optionally, the profit calculation module 320 is also used to store the profit calculation results corresponding to each funding party in the data storage database 322 of the profit calculation module 320.

[0084] Optionally, the system further includes: a profit sharing calculation result processing module 340;

[0085] The profit calculation result processing module 340 is in communication connection with the profit calculation module 320; the profit calculation module 320 is used to receive the profit calculation result processing module 340 sent by the profit calculation module 320;

[0086] The profit calculation module 320 is also used to summarize the profit calculation results according to a preset data summary method and generate a visual profit data report.

[0087] The profit calculation system provided in the embodiment of the present invention can execute the profit calculation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0088] Embodiment 4

[0089] Figure 4 is a schematic diagram of the structure of a computer device provided by Embodiment 4 of the present invention, such as Figure 4 As shown, the device includes:

[0090] one or more processors 410, Figure 4 A processor 410 is taken as an example;

[0091] Memory 420;

[0092] The device may further include: an input device 430 and an output device 440 .

[0093] The processor 410, memory 420, input device 430 and output device 440 in the device may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0094] The memory 420 is a non-transitory computer-readable storage medium that can be used to store software programs, computer executable programs, and modules, such as program instructions / modules corresponding to a profit sharing calculation method in an embodiment of the present invention (for example, the attached Figure 3 The processor 410 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 420, that is, a profit calculation method of the above method embodiment is implemented, namely:

[0095] Obtain at least one funding party's profit sharing rule from the profit sharing rule configuration module through the profit sharing calculation module;

[0096] Obtaining profit sharing condition data corresponding to each of the funding parties according to each of the profit sharing rules through the profit sharing calculation module;

[0097] Obtaining profit calculation data and profit calculation methods corresponding to each of the funding parties according to the profit condition data through the profit calculation module;

[0098] The profit calculation module performs profit calculation on each of the profit calculation data according to each of the profit calculation methods to obtain the profit calculation results corresponding to each of the funding parties.

[0099] The memory 420 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 420 may optionally include a memory remotely arranged relative to the processor 410, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0100] The input device 430 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the computer device. The output device 440 may include a display device such as a display screen.

[0101] Embodiment 5

[0102] Embodiment 5 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a profit sharing calculation method provided in an embodiment of the present invention is implemented:

[0103] Obtain at least one funding party's profit sharing rule from the profit sharing rule configuration module through the profit sharing calculation module;

[0104] Obtaining profit sharing condition data corresponding to each of the funding parties according to each of the profit sharing rules through the profit sharing calculation module;

[0105] Obtaining profit calculation data and profit calculation methods corresponding to each of the funding parties according to the profit condition data through the profit calculation module;

[0106] The profit calculation module performs profit calculation on each of the profit calculation data according to each of the profit calculation methods to obtain the profit calculation results corresponding to each of the funding parties.

[0107] Any combination of one or more computer-readable media may be used. A 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 electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0108] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0109] 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.

[0110] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0111] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A profit sharing calculation method, It is characterized in that include: Obtaining at least one funding party's profit sharing rule from the profit sharing rule configuration module through the profit sharing calculation module; Obtaining profit sharing condition data corresponding to each of the funding parties according to each of the profit sharing rules through the profit sharing calculation module; Obtaining profit calculation data and profit calculation methods corresponding to each of the funding parties according to the profit condition data through the profit calculation module; Performing profit calculation on each of the profit calculation data according to each of the profit calculation methods by the profit calculation module to obtain profit calculation results corresponding to each of the funding parties; The profit sharing condition data includes structured query language SQL data and funding party identity data; The obtaining, through the profit calculation module, the profit calculation data and profit calculation method corresponding to each of the funding parties according to the profit condition data includes: The profit calculation module queries the profit calculation data corresponding to each of the funding parties from the data storage database according to the SQL data; The profit calculation module obtains the profit calculation method corresponding to each funding party from the data calculation module according to the funding party identity data; Among them, each funding party is configured with multiple profit-sharing rules, and multiple profit-sharing rules of a funding party are stored as a whole; the funding party identity identification data represents the funding party; When the profit calculation module performs profit calculation on each of the profit calculation data according to each of the profit calculation methods, multiple profit rules of the funding party are obtained according to the identity identification data of the funding party, and the data type specified in the SQL data is matched with the data type required for profit calculation using each profit rule to determine the profit rules required for the profit calculation.

2. The method according to claim 1, It is characterized in that The obtaining of at least one funding party's profit sharing rule from the profit sharing rule configuration module through the profit sharing calculation module includes: Obtaining all the profit sharing rules of the funding parties from the profit sharing rule configuration module through the rule configuration center module, and establishing a mapping relationship between the funding parties and the profit sharing rules; The profit-sharing calculation module obtains the profit-sharing rules of at least one funding party from the rule configuration center module.

3. The method according to claim 1, It is characterized in that The performing profit calculation on each of the profit calculation data according to each of the profit calculation methods by the profit calculation module includes: When the preset profit calculation cycle is reached, the profit calculation module performs profit calculation on each of the profit calculation data according to each of the profit calculation methods.

4. The method according to claim 1, It is characterized in that After the profit calculation module performs profit calculation on each of the profit calculation data according to each of the profit calculation methods, the method further includes: The profit calculation module stores the profit calculation results corresponding to each funding party in the data storage database of the profit calculation module.

5. The method according to claim 1, It is characterized in that After the profit calculation module performs profit calculation on each of the profit calculation data according to each of the profit calculation methods, the method further includes: The profit calculation module sends the profit calculation results corresponding to each funding party to the profit calculation result processing module; The profit calculation result processing module summarizes the profit calculation results according to a preset data summary method to generate a visual profit data report.

6. A profit sharing calculation system, It is characterized in that It includes a profit sharing rule configuration module and a profit sharing calculation module, and the profit sharing rule configuration module is in communication connection with the profit sharing calculation module, wherein: The profit sharing rule configuration module is used to store profit sharing rules of multiple funding parties; The profit calculation module is used to obtain profit condition data corresponding to each of the funding parties according to each of the profit sharing rules, obtain profit calculation data and profit calculation methods corresponding to each of the funding parties according to the profit condition data, and perform profit calculation on each of the profit calculation data according to each of the profit calculation methods to obtain profit calculation results corresponding to each of the funding parties; Among them, profit sharing condition data includes SQL data and funding party identity data; Profit calculation module, specifically used for: Query the profit calculation data corresponding to each funding party from the data storage database according to the SQL data; obtain the profit calculation method corresponding to each funding party from the data calculation module according to the funding party's identity data; Among them, each funding party is configured with multiple profit-sharing rules, and multiple profit-sharing rules of a funding party are stored as a whole; the funding party identity identification data represents the funding party; The profit calculation module is specifically used to: obtain multiple profit rules of the funding party based on the funding party's identity identification data, match the data type specified in the SQL data with the data type required when using each profit calculation rule to determine the profit calculation The required profit rules.

7. The system according to claim 6, It is characterized in that The system further includes a rule configuration center module, which is respectively connected to the profit sharing rule configuration module and the profit sharing calculation module in communication; wherein: The rule configuration center module is used to obtain the profit sharing rules of all the funding parties from the profit sharing rule configuration module, and establish a mapping relationship between the funding parties and the profit sharing rules; The rule configuration center module is also used to transmit at least one profit sharing rule of the funding party to the profit sharing calculation module.

8. A computer device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.