Method, device, computer equipment and storage medium for settling business placement fees
Through multi-threaded computing and flexible settlement mode, the settlement efficiency of business deployment expenses is improved, the problem of inefficiency in the traditional settlement process is solved, and faster expense management is achieved.
Patent Information
- Application Number
- CN202111134805.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-27
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2041-09-27
AI Technical Summary
The settlement process of traditional business investment fees is inefficient, requiring offline manual entry and layered approval, which is difficult to meet the company's complex business needs.
提供一种业务投放费用的结算方法,通过接收费用结算指令,根据结算时间范围和结算模式标识筛选待结算账户,使用多线程计算各待结算账户的业务投放费用,并支持CPA固定价格、CPA阶梯价格和CPM结算模式。
It improves settlement efficiency, realizes flexible connection between different settlement models, simplifies the cost modification and approval process, and reduces the time and energy of manual operations.
Smart Images

Figure CN113988999B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of fee settlement, and in particular to a method, device, computer equipment and storage medium for settling business delivery fees. Background Art
[0002] The expenses of various channels of traditional business delivery need to be collected offline and then uploaded through the background. The modification of expenses and the change record of unit price need to be realized by manual entry offline. The approval of expense results is mainly submitted to the finance department after offline approval and signature. The settlement of expenses also relies on the project manager to calculate offline through EXCEL. The project manager will upload the expenses every day in the unit of promotion link every month, and then the expenses will be displayed in the report. After uploading the modified expenses, the project manager needs to notify the data group to refresh the data by email. In terms of expense application, the project manager also needs to check the offline EXCEL expense report details with the previously uploaded online expenses, and then send the offline EXCEL expense report details and settlement confirmation letter to the corresponding agent for mutual verification. The entire settlement process is inefficient. Once the account is wrong, it can only be traced back from the result, which is time-consuming and labor-intensive, and it is difficult to meet the needs of the company's increasingly complex business. Summary of the invention
[0003] Based on this, it is necessary to provide a settlement method, device, computer equipment and storage medium for business investment expenses that can flexibly connect to different settlement modes and improve settlement efficiency in response to the above technical problems.
[0004] The first aspect of the present application provides a method for settling service delivery fees, the method comprising:
[0005] receiving a fee settlement instruction, the fee settlement instruction including a settlement time range and at least one settlement mode identifier;
[0006] Filtering all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range;
[0007] Create multiple threads according to the number of all accounts to be settled, calculate the business delivery fee of each account to be settled among all accounts to be settled through the multiple threads, and each thread in the multiple threads is used to process the business delivery fee of one account to be settled at a time;
[0008] The processing of the business delivery fee of any one of all the accounts to be settled through any one of the multiple threads includes:
[0009] Determine the target business delivery system and settlement mode identifier corresponding to any account to be settled through any thread;
[0010] Acquire business delivery data of any account to be settled from the target business delivery system according to the settlement mode identifier, the business delivery data including the target settlement rule corresponding to the settlement mode identifier of any account to be settled within the settlement time range and the assessment data corresponding to the target settlement rule;
[0011] The assessment data is calculated according to the target settlement rules to obtain the business investment cost of any account to be settled.
[0012] In some embodiments, selecting all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range includes:
[0013] Filter out all valid promotion accounts corresponding to the settlement time range from all promotion accounts;
[0014] All accounts to be settled corresponding to the at least one settlement mode identifier are screened out from all valid promotion accounts, and the at least one settlement mode identifier includes one or more of a CPA fixed price settlement mode identifier, a CPA tiered price settlement mode identifier, and a CPM settlement mode identifier.
[0015] In some embodiments, when it is determined that the settlement mode identifier corresponding to any account to be settled is a CPA fixed price settlement mode identifier, obtaining business delivery data of any account to be settled from the target business delivery system according to the settlement mode identifier includes:
[0016] Determine all the links contained in any account to be settled;
[0017] Obtaining the CPA fixed price settlement rule corresponding to the CPA fixed price settlement mode identifier and the first assessment data corresponding to the CPA fixed price settlement rule for each link in all links within the settlement time range;
[0018] Calculate the assessment data according to the target settlement rules to obtain the business investment costs of any account to be settled, including:
[0019] The business delivery fee of any account to be settled is obtained by performing calculations according to the CPA fixed price settlement rule corresponding to each link in all the links and the first assessment data corresponding to the CPA fixed price settlement rule.
[0020] In some embodiments, when it is determined that the settlement mode identifier corresponding to any account to be settled is the CPA tiered price settlement mode identifier, obtaining the business delivery data of any account to be settled from the target business delivery system according to the settlement mode identifier includes:
[0021] Obtain the CPA tiered price settlement rule corresponding to the CPA tiered price settlement mode identifier and the second assessment data corresponding to the CPA tiered price settlement rule for any account to be settled within the settlement time range;
[0022] Calculate the assessment data according to the target settlement rules to obtain the business investment costs of any account to be settled, including:
[0023] The second assessment data is calculated according to the CPA tiered price settlement rules to obtain the business delivery fee of any account to be settled.
[0024] In some embodiments, when it is determined that the settlement mode identifier corresponding to any account to be settled is the CPM settlement mode identifier, obtaining the business delivery data of any account to be settled from the target business delivery system according to the settlement mode identifier includes:
[0025] Obtain the CPM settlement rules corresponding to the CPM settlement mode identifier and the CPM assessment data corresponding to the CPM settlement rules for any account to be settled within the settlement time range;
[0026] Calculate the assessment data according to the target settlement rules to obtain the business investment costs of any account to be settled, including:
[0027] The CPM assessment data is calculated according to the CPM settlement rules to obtain the business delivery cost of any account to be settled.
[0028] In some embodiments, the method further comprises:
[0029] When receiving a fee settlement instruction, recording a first log corresponding to the fee settlement instruction, the first log being used to record that the fee settlement instruction is in a pending execution state at the first time point;
[0030] After calculating the service delivery fee of each of all the accounts to be settled through the multiple threads, the method further includes:
[0031] Detecting whether the operation of calculating the business delivery fee of each of all the accounts to be settled by the multiple threads is successfully executed;
[0032] When the operation of calculating the business delivery fee of each of all the accounts to be settled by the multiple threads is successfully executed, a second log is recorded, where the second log is used to record that the fee settlement instruction is in a successful execution state at the second time point;
[0033] When the multiple threads fail to calculate the business delivery fee of each of all the accounts to be settled, re-execute the multiple threads to calculate the business delivery fee of each of all the accounts to be settled, and detect whether the multiple threads succeed in calculating the business delivery fee of each of all the accounts to be settled within a preset number of retries;
[0034] When the multiple threads successfully calculate the business investment fee of each of all the accounts to be settled within the preset number of retries, return to the step of recording the second log; when the multiple threads fail to calculate the business investment fee of each of all the accounts to be settled within the preset number of retries, record a third log, and the third log is used to record that the fee settlement instruction is in an execution failure state at a third time point.
[0035] In some embodiments, after calculating the service delivery fee of each of all accounts to be settled through the multiple threads, the method further includes:
[0036] The business delivery expenses of each account to be settled among all the accounts to be settled are stored in the business delivery expense data table, and a snapshot data is generated based on the target settlement rules and assessment data corresponding to the business delivery expenses of each account to be settled, and the snapshot data is stored in the business delivery expense data table;
[0037] In some embodiments, the method further comprises:
[0038] When a manual operation that affects the service delivery cost is detected, a snapshot data is generated for each manual operation and stored in a relational database. The snapshot data includes the operation subject, operation object, operation time and operation content.
[0039] A second aspect of the present application provides a settlement device for service delivery fees, the device comprising:
[0040] An instruction receiving module, used for receiving a fee settlement instruction, wherein the fee settlement instruction includes a settlement time range and at least one settlement mode identifier;
[0041] An account screening module, used to screen out all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range;
[0042] A fee calculation module, used to create multiple threads according to the number of all accounts to be settled, and calculate the business delivery fee of each account to be settled among all accounts to be settled through the multiple threads, and each thread in the multiple threads is used to process the business delivery fee of one account to be settled at a time;
[0043] Cost calculation module, including:
[0044] A target business delivery system determination unit, used to determine a target business delivery system and a settlement mode identifier corresponding to any account to be settled through any thread;
[0045] A business delivery data acquisition unit is used to acquire business delivery data of any account to be settled from a target business delivery system according to a settlement mode identifier, wherein the business delivery data includes a target settlement rule corresponding to the settlement mode identifier of any account to be settled within a settlement time range and assessment data corresponding to the target settlement rule;
[0046] The business delivery cost calculation unit is used to calculate the assessment data according to the target settlement rules to obtain the business delivery cost of any account to be settled.
[0047] A third aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above method embodiments when executing the computer program.
[0048] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of an embodiment of any of the above methods are implemented.
[0049] The settlement method, device, computer equipment and storage medium of the above-mentioned business delivery fee are as follows: the fee settlement system receives a fee settlement instruction, the fee settlement instruction includes a settlement time range and at least one settlement mode identifier, and the at least one settlement mode identifier can be flexibly configured as needed; all corresponding accounts to be settled are screened out from all promotion accounts according to the at least one settlement mode identifier and the settlement time range; multiple threads are created according to the number of all accounts to be settled, and the business delivery fee of each account to be settled among all accounts to be settled is calculated through the multiple threads, and each thread in the multiple threads is used to process the business delivery fee of one account to be settled at a time. The above-mentioned method can flexibly connect one or more settlement modes by configuring the settlement mode identifier contained in the fee settlement instruction, and has better compatibility. The business delivery fee is also calculated in parallel through multiple threads, thereby improving the settlement efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 This is an application environment diagram of a method for settling business delivery fees in an embodiment;
[0051] Figure 2 A flowchart of a method for settling service delivery fees in one embodiment;
[0052] Figure 3An example of a CPA fixed price settlement rule in an embodiment;
[0053] Figure 4 This is an example of a CPA tiered price settlement rule in an embodiment;
[0054] Figure 5 A flowchart of a method for settling service delivery fees in another embodiment;
[0055] Figure 6 It is a structural block diagram of a settlement device for service delivery fees in one embodiment;
[0056] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0058] Embodiment 1
[0059] The settlement method of the service delivery fee provided in this application can be applied to Figure 1In the application environment shown. The fee settlement system 102 communicates with the plurality of business delivery systems 104 through a network. The fee settlement system 102 responds to the fee settlement instruction, and according to the settlement time range and at least one settlement mode identifier contained in the fee settlement instruction, selects all corresponding accounts to be settled from all promotion accounts, and then creates a plurality of threads according to the number of all accounts to be settled, and calculates the business delivery fee of each account to be settled among all accounts to be settled through the plurality of threads, and each thread in the plurality of threads is used to process the business delivery fee of one account to be settled at a time; wherein any one of the plurality of threads processes the business delivery fee of any one of all accounts to be settled, specifically including: the fee settlement system 102 determines the target business delivery system and the settlement mode identifier corresponding to any account to be settled through any thread; then, according to the settlement mode identifier, obtains the business delivery data of any account to be settled from the target business delivery system, the business delivery data including the target settlement rule corresponding to the settlement mode identifier of any account to be settled within the settlement time range and the assessment data corresponding to the target settlement rule; the assessment data is calculated according to the target settlement rule to obtain the business delivery fee of any account to be settled, and the target business delivery system may be any one of the plurality of business delivery systems 104. The fee settlement system 102 and each business delivery system 104 may be implemented using an independent server or a server cluster consisting of multiple servers.
[0060] This embodiment provides a method for settling service delivery fees. Figure 2 As shown, this method is applied to Figure 1 The fee settlement system in is taken as an example to illustrate, including the following steps:
[0061] Step 100: Receive a fee settlement instruction, which includes a settlement time range and at least one settlement mode identifier.
[0062] Among them, the settlement time range can be a preset month, week or day, such as the current month settlement, last week settlement or previous day settlement commonly used in financial settlement. The settlement time range can also be a period of time. When the day is the smallest settlement unit, the settlement time range can be a specific date range. For example, the fee settlement instruction contains the settlement time range information "20210805, 20210820", and the corresponding settlement time range is August 5, 2021 to August 20, 2021. At the same time, the fee settlement instruction may contain one or more settlement mode identifiers, each of which is used to represent a settlement mode. Since different settlement modes may need to be used in the actual fee settlement process, the above-mentioned settlement mode identifier can be a CPA fixed price settlement mode identifier, a CPA tiered price settlement mode identifier or a CPM settlement mode identifier.
[0063] Specifically, the fee settlement system responds to the received fee settlement instruction and starts to perform fee settlement work. The fee settlement instruction can be an instruction generated by a timer trigger or an instruction manually input into the fee settlement system by a staff member. In addition, the fee settlement system can also be set so that the fee settlement system automatically triggers the generation of fee settlement instructions when it is in an idle state to perform fee settlement work, thereby avoiding the busy period of the system, making better use of the system computing resources, and improving settlement efficiency.
[0064] Step 200: Filter out all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range.
[0065] Among them, all promotion accounts may include all promotion accounts opened by the enterprise in different advertising operation companies. Each advertising operation company has its corresponding business delivery system, so these promotion accounts are located on different business delivery systems; and the accounts to be settled are promotion accounts that meet the requirements of the at least one settlement mode identifier and the settlement time range. Any account to be settled can correspond to one or more settlement mode identifiers among the above-mentioned at least one settlement mode identifier.
[0066] Specifically, the fee settlement system selects all corresponding accounts to be settled from all promotional accounts according to at least one settlement mode identifier and settlement time range contained in the fee settlement instruction. That is to say, the fee settlement system selects the promotional accounts corresponding to the at least one settlement mode identifier within the settlement time range from all promotional accounts and treats them as accounts to be settled.
[0067] In some embodiments, the fee settlement system filters out all valid promotion accounts corresponding to the settlement time range from all promotion accounts, and then filters out all accounts to be settled corresponding to the at least one settlement mode identifier from all valid promotion accounts, and the at least one settlement mode identifier includes one or more of a CPA fixed price settlement mode identifier, a CPA tiered price settlement mode identifier, and a CPM settlement mode identifier.
[0068] Among them, all valid promotion accounts corresponding to the settlement time range refer to all promotion accounts valid within the settlement time range, and each valid promotion account corresponds to at least one settlement mode identifier. During the actual business launch, there is a binding relationship between the promotion account and the advertising operation company. This binding relationship has a validity period. During the validity period, one or more settlement rules can be set for the promotion account. Each settlement rule also has a rule time range, and the rule time ranges of different settlement rules do not overlap. For example, promotion account A1 is bound to advertising operation company A, and the validity period of the binding relationship is throughout 2021. If the settlement time range is from August 5, 2021 to August 20, 2021, promotion account A1 is valid within the settlement time range; during the period when promotion account A1 is bound to advertising operation company A, promotion account A1 can be set to have multiple settlement rules, among which, promotion account A1 corresponds to a CPA fixed price settlement rule between August 1, 2021 and August 15, 2021, and corresponds to a CPA tiered price settlement rule between August 16, 2021 and August 30, 2021. Within the settlement time range, promotion account A1 uses the above CPA fixed price settlement rule for settlement between August 5, 2021 and August 15, 2021, and uses the above CPA tiered price settlement rule for settlement between August 16, 2021 and August 20, 2021.
[0069] In the advertising industry, common forms of measuring advertising effectiveness include CPA and CPM. CPA (Cost Per Action) means charging by action. The A in CPA refers to action, but there are many kinds of actions. The specific action needs to be agreed upon by the advertiser and the agency when the advertisement is placed. Generally, A can be registration, interaction, download, order, purchase, etc. In the process of advertising, as long as the agreed action is not generated, no matter how many times it is displayed or how many clicks are generated, it is free of charge. Only when the agreed action is generated, it is charged by volume. CPM (Cost Per Mille), also known as the cost per thousand impressions, is another basic form of measuring advertising effectiveness. It is the cost of each thousand people showing the advertisement. Advertisements billed in the CPM billing model only look at the number of impressions and charge according to the number of impressions, regardless of clicks, downloads, registrations, etc. For example, in online advertising, very high-quality advertising positions such as video patches and portal banners usually adopt the CPM charging model.
[0070] In this embodiment, the CPA fixed price settlement mode identifier corresponds to the CPA fixed price settlement mode, and the corresponding settlement rules usually stipulate that a certain action is a settlement indicator. No matter how many times the action occurs, the settlement price corresponding to each action is fixed. Similarly, it can be seen that the CPA ladder price settlement mode identifier corresponds to the CPA ladder price settlement mode, and the corresponding settlement rules usually stipulate that a certain action is a settlement indicator, and the ladder settlement price is set according to the number of times the action occurs.
[0071] The CPM settlement mode identifier corresponds to the CPM settlement mode. The corresponding settlement rules usually use the display volume as the settlement indicator, and the delivery fee is settled based on the display volume.
[0072] Step 300: create multiple threads according to the number of all accounts to be settled, calculate the service delivery fee of each account to be settled among all accounts to be settled through the multiple threads, and each thread in the multiple threads is used to process the service delivery fee of one account to be settled each time.
[0073] Specifically, the fee settlement system obtains the number of all accounts to be settled by statistics, determines the number of threads to be created according to the number of all accounts to be settled, and then creates multiple threads according to the number of threads to be created, that is, the number of the multiple threads is equal to the above number of threads to be created.
[0074] In this embodiment, the multiple threads are used to concurrently process the business investment expenses of the accounts to be settled. The number of computing channels for processing data can be set by adjusting the concurrency of the multiple threads. On the one hand, the higher the concurrency of the threads, the more computing channels there are, which can improve the data processing efficiency of the fee settlement system. On the other hand, too many concurrent threads may also put pressure on the performance of the downstream system, so the number of concurrent threads cannot be set too much.
[0075] The processing of the business delivery fee of any one of all the accounts to be settled through any one of the multiple threads includes:
[0076] Step 302: Determine the target business delivery system and settlement mode identifier corresponding to any account to be settled through any thread.
[0077] Among them, the target business delivery system corresponding to any account to be settled can be the business delivery system where the account to be settled is located. One account to be settled can only correspond to one target business delivery system, and different business delivery systems correspond to different advertising operation companies; the settlement mode identifier corresponding to each account to be settled can be one or more.
[0078] Specifically, the fee settlement system determines the target business delivery system and settlement mode identifier corresponding to any account to be settled through any thread. For example, the fee settlement system determines through any thread that the target business delivery system corresponding to the account to be settled being processed by the thread is the business delivery system of advertising operation company A, and the settlement mode identifier corresponding to the account to be settled is the CPM settlement mode identifier, or determines that the account to be settled corresponds to two settlement mode identifiers, one is the CPM settlement mode identifier, and the other is the CPA fixed price settlement mode identifier.
[0079] Step 304, obtaining business delivery data of any account to be settled from the target business delivery system according to the settlement mode identifier, the business delivery data including the target settlement rule corresponding to the settlement mode identifier of any account to be settled within the settlement time range and the assessment data corresponding to the target settlement rule.
[0080] Among them, what is obtained from the target business delivery system according to the settlement mode identifier is the business delivery data of any account to be settled within the settlement time range; it is known that an account to be settled can correspond to one or more settlement mode identifiers, and the same settlement mode identifier can also correspond to at least one settlement rule, then any account to be settled can have one or more target settlement rules corresponding to the settlement mode identifier within the settlement time range, the effective times of multiple target settlement rules do not overlap, and different target settlement rules correspond to different assessment data.
[0081] Specifically, the fee settlement system obtains, through a thread, the business delivery data of the account to be settled within the settlement time range from the target business delivery system corresponding to the account to be settled being processed by the thread. For example, the fee settlement system processes the account A1 to be settled through thread L1, and the account A1 to be settled is located in the business delivery system of advertising operation company A. Then, thread L1 obtains the business delivery data of the account A1 to be settled from the business delivery system of advertising operation company A. When the settlement mode identifier corresponding to the account A1 to be settled is the CPM settlement mode identifier, its business delivery data includes the target settlement rule corresponding to the CPM settlement mode identifier of the account A1 to be settled within the settlement time range and the assessment data corresponding to the target settlement rule; when the account A1 to be settled corresponds to two settlement mode identifiers, one is the CPM settlement mode identifier and the other is the CPA fixed price settlement mode identifier, its business delivery data includes not only at least one target settlement rule corresponding to the CPM settlement mode identifier of the account A1 to be settled within the settlement time range and the assessment data corresponding to the above target settlement rule, but also includes at least one target settlement rule corresponding to the CPA fixed price settlement mode identifier of the account A1 to be settled within the settlement time range and the assessment data corresponding to the above target settlement rule, and the effective time ranges corresponding to different target settlement rules do not overlap.
[0082] Step 306, calculating the assessment data according to the target settlement rule to obtain the business delivery fee of any account to be settled.
[0083] Among them, the account to be settled may have only one or more target settlement rules corresponding to the same settlement mode identifier within the settlement time range. For example, when the settlement time range is from August 5, 2021 to August 20, 2021, the settlement mode identifier corresponding to the account to be settled is the CPA fixed price settlement mode identifier. The account to be settled may correspond to one CPA fixed price settlement rule in the time period from August 5, 2021 to August 10, 2021, and correspond to another different CPA fixed price settlement rule in the time period from August 11, 2021 to August 20, 2021. The assessment data corresponding to the above two settlement rules respectively may be the number of occurrences of the corresponding behaviors of the settlement indicators adopted by the two settlement rules respectively.
[0084] Specifically, the fee settlement system calculates the assessment data corresponding to the target settlement rule of the account to be settled through a thread according to the target settlement rule of the account to be settled, and obtains the business delivery fee of the account to be settled.
[0085] A settlement method for business delivery costs provided in this embodiment, the cost settlement system receives a cost settlement instruction, the cost settlement instruction includes a settlement time range and at least one settlement mode identifier; all corresponding accounts to be settled are screened out from all promotion accounts according to the at least one settlement mode identifier and the settlement time range; multiple threads are created according to the number of all accounts to be settled, and the business delivery costs of each account to be settled among all accounts to be settled are calculated through the multiple threads, and each thread in the multiple threads is used to process the business delivery costs of one account to be settled at a time. The above method can flexibly connect to one or more settlement modes by configuring the settlement mode identifier included in the cost settlement instruction, with better compatibility, and also performs parallel calculation of business delivery costs through multiple threads, thereby improving settlement efficiency.
[0086] Embodiment 2
[0087] Based on the above-mentioned first embodiment, in this embodiment, a commonly used settlement mode is taken as an example to explain in detail the settlement method of the service delivery fee.
[0088] In some implementations, determining that the settlement mode identifier corresponding to any account to be settled is a CPA fixed price settlement mode identifier, and acquiring business delivery data of any account to be settled from a target business delivery system according to the settlement mode identifier includes:
[0089] Determine all the links contained in any account to be settled.
[0090] The CPA fixed price settlement rule corresponding to the CPA fixed price settlement mode identifier and the first assessment data corresponding to the CPA fixed price settlement rule are obtained for each link in all the links within the settlement time range.
[0091] Among them, the CPA fixed price settlement rules include the effective time range of the pricing settlement rules, the pricing settlement indicators and the settlement unit prices corresponding to the pricing settlement indicators. The first assessment data is the number of behaviors that occur in the to-be-settled link within the effective time range of the pricing settlement rules.
[0092] The assessment data is calculated according to the target settlement rule to obtain the business delivery cost of any account to be settled, including: calculating according to the CPA fixed price settlement rule corresponding to each link in all the links and the first assessment data corresponding to the CPA fixed price settlement rule to obtain the business delivery cost of any account to be settled.
[0093] like Figure 3As shown, the CPA fixed price settlement rules adopted in Link 1 and Link 2 are used as examples for explanation. Among them, credit and application completion are concepts representing user behavior types. In the business system, a user generally goes through multiple stages such as registration, first login, information entry, face recognition, credit, application completion, and loan issuance. Each stage represents a behavior type of the user. When settling accounts, a specific behavior type will be used as a settlement indicator. For example, an account to be settled contains two links, Link 1 and Link 2. Link 1 uses the behavior type of credit as the pricing and settlement indicator. Then, the number of credit behaviors under Link 1 in the date range of 20190601 to 20190611 is multiplied by the settlement unit price of 200 to obtain a product, and the number of credit behaviors under Link 1 in the date range of 20190612 to 20190630 is multiplied by the settlement unit price of 300 to obtain another product. The sum of the above two products can be used to obtain the delivery cost of Link 1. Similarly, the delivery cost of Link 2 can be calculated. The total cost of the account to be settled is obtained by summing the delivery costs of Link 1 and Link 2. Combined with the settlement coefficient, the final business delivery cost of the account to be settled can be obtained.
[0094] In some embodiments, when it is determined that the settlement mode identifier corresponding to any account to be settled is a CPA tiered price settlement mode identifier, business delivery data of any account to be settled is obtained from the target business delivery system according to the settlement mode identifier, including: obtaining the CPA tiered price settlement rules corresponding to the CPA tiered price settlement mode identifier of any account to be settled within the settlement time range and the second assessment data corresponding to the CPA tiered price settlement rules.
[0095] Among them, the CPA tiered price settlement rules include the effective time range of the tiered price settlement rules, the tiered price settlement indicators, multiple quantity level ranges corresponding to the tiered price settlement indicators, and the tiered prices corresponding to each quantity level range. The second assessment data is the sum of the number of behaviors that occur in all promotional links of any account to be settled within the effective time range of the tiered price settlement rules.
[0096] The assessment data is calculated according to the target settlement rules to obtain the business delivery cost of any account to be settled, including: the second assessment data is calculated according to the CPA tiered price settlement rules to obtain the business delivery cost of any account to be settled.
[0097] like Figure 4A CPA tiered price settlement rule is shown, and an account using the CPA fixed price settlement rule is used as an example for explanation. It can be seen that the CPA tiered price settlement rule uses credit behavior as the tiered price settlement indicator, then obtain the sum X of the number of credit behaviors under all links of the account within the effective time range of the tiered price settlement rule, multiply the sum X of the number of credit behaviors by the tiered price corresponding to the quantity level range to obtain the settlement fee, and then combine the settlement coefficient used by the fee settlement system to obtain the final business delivery fee. For example: when the sum X of the number of credit behaviors is 15, the settlement fee is 15*150, and when the sum X of the number of credit behaviors is 30, the settlement fee is 30*500.
[0098] In some embodiments, when it is determined that the settlement mode identifier corresponding to any account to be settled is a CPM settlement mode identifier, business delivery data of any account to be settled is obtained from the target business delivery system according to the settlement mode identifier, including: obtaining the CPM settlement rules corresponding to the CPM settlement mode identifier of any account to be settled within the settlement time range and the CPM assessment data corresponding to the CPM settlement rules.
[0099] The assessment data is calculated according to the target settlement rules to obtain the business delivery cost of any account to be settled, including: the CPM assessment data is calculated according to the CPM settlement rules to obtain the business delivery cost of any account to be settled.
[0100] Among them, the CPM settlement rules include the effective time range of the CPM rules and the settlement coefficient, and the CPM assessment data can include the cash expenditure amount and the preset rebate rate of any account to be settled. The finest time granularity of the effective time range of the CPM settlement rules is generally set to monthly.
[0101] In the settlement process of actual business investment expenses, the cash expenditure amount is the amount of funds flow retrieved by the expense settlement system through the data interface of each investment platform. The rebate rate is only available to the accounting company and is generally maintained in the account attributes. The fees settled by the enterprise to the accounting company through mainstream channels are usually referred to as actual consumption. The actual consumption of a single account = the cash expenditure amount during the effective period of the account / (1+rebate rate).
[0102] When the settlement mode identifier corresponding to any account to be settled is the CPM settlement mode identifier, the fee settlement system can calculate the actual operating expenses based on the actual consumption and settlement coefficient of multiple accounts. The settlement coefficient can be a preset fixed settlement coefficient or a KPI assessment settlement coefficient calculated according to a preset formula.
[0103] When the KPI assessment settlement coefficient is used as the settlement coefficient, the above preset formula is:
[0104] Settlement coefficient = basic service rate * magnitude coefficient * cost coefficient
[0105] In the actual settlement process, you can set: magnitude coefficient = actual magnitude / target magnitude * a
[0106] Actual level = target level * (number of days in the effective period / total number of days in the month)
[0107] Cost coefficient = 1-(actual cost-target cost)*b
[0108] Actual cost = actual consumption * (1 + basic service rate) / actual level
[0109] In summary, settlement coefficient = (ac(be+1)*actual magnitude+abc(c-1)*actual consumption) / d
[0110] Wherein, c is the basic service rate, d is the target magnitude, e is the target cost, a is the magnitude coefficient calculation parameter, b is the cost coefficient calculation parameter, actual consumption = the sum of the actual consumption of each account, actual consumption of a single account = the cash expenditure amount during the effective period of the account / (1+rebate rate).
[0111] In some implementations, the basic service rate (c), target level (d), target cost (e), level coefficient calculation parameter (a) and cost coefficient calculation parameter (b) are all parameters pre-prepared according to the business delivery requirements, and the basic service rate (c), target level (d), target cost (e), level coefficient calculation parameter (a) and cost coefficient calculation parameter (b) and other parameters are from the same business process, while the actual consumption, actual level and other parameters are from other different business processes. In the process of actual business delivery, if one of the above business processes is adjusted, it will not affect the parameters generated by other business processes. Therefore, the parameters used in the settlement coefficient formula can be dynamically modified, so as to flexibly support the different settlement requirements of settlement modes such as CPA and CPM.
[0112] The settlement method for business delivery fees provided in this embodiment has strong compatibility. By setting the settlement mode identifier in the fee settlement instruction, it can flexibly realize pluggable docking with different settlement mode systems, and support a variety of different settlement modes to calculate business delivery data, so as to better be compatible with different advertising operation channels and meet the complex needs of the company's business. Please note that the settlement modes that can be used in this technical solution are not limited to the several settlement modes listed above, and settlement modes of other advertising promotion industries can also be adopted, such as CPC (Cost Per Click, cost per click) settlement mode, etc.
[0113] Embodiment 3
[0114] Based on the above-mentioned embodiment 1 and embodiment 2, as Figure 5 As shown, this embodiment provides a method for settling service delivery fees, the method comprising:
[0115] Step 402: Receive a fee settlement instruction, which includes a settlement time range and at least one settlement mode identifier.
[0116] Step 404: When a fee settlement instruction is received, a first log corresponding to the fee settlement instruction is recorded, where the first log is used to record that the fee settlement instruction is in a pending execution state at a first time point.
[0117] Step 406: Filter out all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range.
[0118] Step 408: create multiple threads according to the number of all accounts to be settled, calculate the service delivery fee of each account to be settled among all accounts to be settled through the multiple threads, and each thread in the multiple threads is used to process the service delivery fee of one account to be settled each time.
[0119] Step 410 , detecting whether the operation of calculating the service delivery fee of each of all the accounts to be settled by the multiple threads is executed successfully.
[0120] Step 412: If yes, record a second log, where the second log is used to record that the fee settlement instruction is in a successful execution state at the second time point.
[0121] Step 414: If not, re-execute the multiple threads to calculate the service delivery fee of each of all the accounts to be settled.
[0122] Step 416, detecting whether the calculation of the service delivery fee of each of all the accounts to be settled by the multiple threads is successful within the preset number of retries. If so, returning to the step of recording the second log.
[0123] Step 418: If not, record a third log, where the third log is used to record that the fee settlement instruction is in an execution failure state at the third time point.
[0124] The above method provided in this embodiment records the log of each operation status of the fee settlement instruction, which is convenient for subsequent problem tracing.
[0125] In order to further facilitate the tracking of the fee settlement process, in some embodiments, after calculating the business investment fee of each account to be settled among all accounts to be settled through multiple threads, the method also includes: storing the business investment fee of each account to be settled among all accounts to be settled in a business investment fee data table, and generating a snapshot data for the target settlement rules and assessment data corresponding to the business investment fee of each account to be settled, and storing the snapshot data in the business investment fee data table.
[0126] In the above implementation, the fee settlement system stores the business investment fees of each account to be settled in a table, and records the settlement rules and assessment data used for fee settlement in a snapshot manner, which provides great convenience for tracing back subsequent problems and calculating settlement fees.
[0127] In some embodiments, the method further comprises:
[0128] When a manual operation that affects the service delivery cost is detected, a snapshot data is generated for each manual operation and stored in a relational database. The snapshot data includes the operation subject, operation object, operation time and operation content.
[0129] Among them, manual operations refer to manual operations that will affect the calculation of business investment costs, such as modifying the account association validity period, modifying the rebate rate, and modifying the basic service fee rate.
[0130] In the above implementation, the fee settlement system generates a detailed snapshot data for each manual operation. The snapshot data includes the operation subject, operation object, operation time and operation content. Not only is there no limit on the tracing time, the user's operations throughout the entire link can be seen, and because it is stored in a relational database, it can be summarized and sorted according to the specified fields, which is more convenient and achieves the purpose of making every manual operation traceable.
[0131] It should be understood that although Figure 2-5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0132] Embodiment 4
[0133] This embodiment provides a settlement device for service delivery fees, such as Figure 6 As shown, including:
[0134] An instruction receiving module 110 is used to receive a fee settlement instruction, wherein the fee settlement instruction includes a settlement time range and at least one settlement mode identifier;
[0135] An account screening module 120, configured to screen all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range;
[0136] The fee calculation module 130 is used to create multiple threads according to the number of all accounts to be settled, and calculate the service delivery fee of each account to be settled among all accounts to be settled through the multiple threads, and each thread in the multiple threads is used to process the service delivery fee of one account to be settled at a time;
[0137] The cost calculation module 130 includes:
[0138] The target business delivery system determination unit 1302 is used to determine the target business delivery system and settlement mode identifier corresponding to any account to be settled through any thread;
[0139] The business delivery data acquisition unit 1304 is used to acquire business delivery data of any account to be settled from the target business delivery system according to the settlement mode identifier, wherein the business delivery data includes a target settlement rule corresponding to the settlement mode identifier of any account to be settled within a settlement time range and assessment data corresponding to the target settlement rule;
[0140] The business delivery cost calculation unit 1306 is used to calculate the assessment data according to the target settlement rule to obtain the business delivery cost of any account to be settled.
[0141] In some embodiments, the account screening module 120 is specifically used to screen out all valid promotion accounts corresponding to the settlement time range from all promotion accounts; and screen out all accounts to be settled corresponding to the at least one settlement mode identifier from all valid promotion accounts, wherein the at least one settlement mode identifier includes one or more of a CPA fixed price settlement mode identifier, a CPA tiered price settlement mode identifier, and a CPM settlement mode identifier.
[0142] In some embodiments, when it is determined that the settlement mode identifier corresponding to any account to be settled is the CPA fixed price settlement mode identifier, the business delivery data acquisition unit 1304 is specifically used to determine all links contained in any account to be settled; obtain the CPA fixed price settlement rule corresponding to the CPA fixed price settlement mode identifier for each link among all links within the settlement time range and the first assessment data corresponding to the CPA fixed price settlement rule; the business delivery fee calculation unit 1306 is specifically used to calculate according to the CPA fixed price settlement rule corresponding to each link among all links and the first assessment data corresponding to the CPA fixed price settlement rule, so as to obtain the business delivery fee of any account to be settled.
[0143] In some embodiments, when it is determined that the settlement mode identifier corresponding to any account to be settled is the CPA tiered price settlement mode identifier, the business delivery data acquisition unit 1304 is specifically used to obtain the CPA tiered price settlement rules corresponding to the CPA tiered price settlement mode identifier for any account to be settled within the settlement time range and the second assessment data corresponding to the CPA tiered price settlement rules; the business delivery fee calculation unit 1306 is specifically used to calculate the second assessment data according to the CPA tiered price settlement rules to obtain the business delivery fee of any account to be settled.
[0144] In some embodiments, when it is determined that the settlement mode identifier corresponding to any account to be settled is a CPM settlement mode identifier, the business delivery data acquisition unit 1304 is specifically used to obtain the CPM settlement rules corresponding to the CPM settlement mode identifier of any account to be settled within the settlement time range and the CPM assessment data corresponding to the CPM settlement rules; the business delivery fee calculation unit 1306 is specifically used to calculate the CPM assessment data according to the CPM settlement rules to obtain the business delivery fee of any account to be settled.
[0145] In some embodiments, the device further includes a log recording module, which is used to record a first log corresponding to the fee settlement instruction when receiving the fee settlement instruction, the first log being used to record that the fee settlement instruction is in a pending execution state at a first time point; and detect whether the operation of calculating the business delivery fee of each of all the accounts to be settled by the multiple threads is successfully executed; when the operation of calculating the business delivery fee of each of all the accounts to be settled by the multiple threads is successfully executed, record a second log, the second log being used to record that the fee settlement instruction is in a successful execution state at a second time point; when the operation of calculating the business delivery fee of each of all the accounts to be settled by the multiple threads is successfully executed, When the operation of placing the fee fails to be executed, the multiple threads are re-executed to calculate the business placement fee of each of all the accounts to be settled, and it is detected whether the multiple threads have successfully executed the calculation of the business placement fee of each of all the accounts to be settled within the preset number of retries; when the multiple threads have successfully executed the calculation of the business placement fee of each of all the accounts to be settled within the preset number of retries, the step of recording the second log is returned; when the multiple threads have failed to execute the calculation of the business placement fee of each of all the accounts to be settled within the preset number of retries, a third log is recorded, and the third log is used to record that the fee settlement instruction is in an execution failure state at a third time point.
[0146] In some embodiments, the device further includes a snapshot recording module, the snapshot recording module being used to store the business delivery expense of each to-be-settled account in all the to-be-settled accounts into the business delivery expense data table, and to generate a snapshot data according to the target settlement rule and assessment data corresponding to the business delivery expense of each to-be-settled account, and to store the snapshot data into the business delivery expense data table;
[0147] In some embodiments, the snapshot recording module is also used to generate a snapshot data for each manual operation that affects the business delivery cost when a manual operation is detected, and store it in a relational database. The snapshot data includes the operation subject, operation object, operation time and operation content.
[0148] The specific definition of the settlement device for the service placement fee can be found in the definition of the settlement method for the service placement fee above, which will not be repeated here. Each module in the above-mentioned settlement device for the service placement fee can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0149] Embodiment 5
[0150] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the processor executes the computer program, a method for settling business delivery fees as described in the above-mentioned embodiments one, two and three is implemented.
[0151] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0152] Embodiment 6
[0153] In this embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, a method for settling a service placement fee as described in the above-mentioned embodiments 1, 2, and 3 is implemented. A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium, and when the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0154] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0155] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for settling service delivery costs, characterized in that: The method comprises: receiving a fee settlement instruction, wherein the fee settlement instruction includes a settlement time range and at least one settlement mode identifier; Filtering all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range; wherein, filtering all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range includes: filtering all valid promotion accounts corresponding to the settlement time range from all promotion accounts; filtering all accounts to be settled corresponding to the at least one settlement mode identifier from all valid promotion accounts, wherein the at least one settlement mode identifier includes one or more of a CPA fixed price settlement mode identifier, a CPA tiered price settlement mode identifier, and a CPM settlement mode identifier; Creating a plurality of threads according to the number of all the accounts to be settled, calculating the service delivery fee of each of the accounts to be settled through the plurality of threads, each of the plurality of threads being used to process the service delivery fee of one of the accounts to be settled at a time; Wherein, processing the business delivery fee of any one of all the accounts to be settled through any one of the multiple threads includes: Determine, through any one of the threads, the target business delivery system and the settlement mode identifier corresponding to any one of the accounts to be settled; Acquiring the business delivery data of any one of the accounts to be settled from the target business delivery system according to the settlement mode identifier, the business delivery data including the target settlement rule corresponding to the settlement mode identifier of any one of the accounts to be settled within the settlement time range and the assessment data corresponding to the target settlement rule; wherein, when it is determined that the settlement mode identifier corresponding to any one of the accounts to be settled is the CPA fixed price settlement mode identifier, acquiring the business delivery data of any one of the accounts to be settled from the target business delivery system according to the settlement mode identifier comprises: determining all links contained in any one of the accounts to be settled; acquiring the CPA fixed price settlement rule corresponding to the CPA fixed price settlement mode identifier of each link in all the links within the settlement time range and the first assessment data corresponding to the CPA fixed price settlement rule; The assessment data is calculated according to the target settlement rule to obtain the business investment fee of any one of the accounts to be settled; wherein, the assessment data is calculated according to the target settlement rule to obtain the business investment fee of any one of the accounts to be settled, including: calculating according to the CPA fixed price settlement rule corresponding to each link in all the links and the first assessment data corresponding to the CPA fixed price settlement rule, to obtain the business investment fee of any one of the accounts to be settled.
2. The method according to claim 1, characterized in that When it is determined that the settlement mode identifier corresponding to the any one of the accounts to be settled is a CPA tiered price settlement mode identifier, acquiring the business delivery data of the any one of the accounts to be settled from the target business delivery system according to the settlement mode identifier includes: Obtain the CPA tiered price settlement rule corresponding to the CPA tiered price settlement mode identifier for any one of the accounts to be settled within the settlement time range and the second assessment data corresponding to the CPA tiered price settlement rule; The calculation of the assessment data according to the target settlement rule to obtain the business delivery fee of any account to be settled includes: The second assessment data is calculated according to the CPA tiered price settlement rule to obtain the business delivery fee of any account to be settled.
3. The method according to claim 1, characterized in that When it is determined that the settlement mode identifier corresponding to the any one of the accounts to be settled is the CPM settlement mode identifier, acquiring the business delivery data of the any one of the accounts to be settled from the target business delivery system according to the settlement mode identifier includes: Obtaining the CPM settlement rule corresponding to the CPM settlement mode identifier for the any account to be settled within the settlement time range and the CPM assessment data corresponding to the CPM settlement rule; The calculation of the assessment data according to the target settlement rule to obtain the business delivery fee of any account to be settled includes: The CPM assessment data is calculated according to the CPM settlement rules to obtain the business delivery fee of any account to be settled.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: When receiving the fee settlement instruction, recording a first log corresponding to the fee settlement instruction, wherein the first log is used to record that the fee settlement instruction is in a pending execution state at a first time point; After calculating the service delivery fee of each of the accounts to be settled through the multiple threads, the method further includes: Detecting whether the operations of calculating the business delivery fee of each of all the accounts to be settled by the multiple threads are successfully performed; When the operation of calculating the service delivery fee of each of all the accounts to be settled by the multiple threads is successfully executed, a second log is recorded, wherein the second log is used to record that the fee settlement instruction is in a successful execution state at the second time point; When the operation of calculating the business delivery fee of each of all the accounts to be settled by the multiple threads fails, re-executing the calculation of the business delivery fee of each of all the accounts to be settled by the multiple threads, and detecting whether the calculation of the business delivery fee of each of all the accounts to be settled by the multiple threads is successful within a preset number of retries; When the multiple threads successfully calculate the business investment fee of each of all the accounts to be settled within the preset number of retries, return to the step of recording the second log; when the multiple threads fail to calculate the business investment fee of each of all the accounts to be settled within the preset number of retries, record a third log, and the third log is used to record that the fee settlement instruction is in an execution failure state at a third time point.
5. The method according to any one of claims 1 to 3, characterized in that: After calculating the service delivery fee of each of the accounts to be settled through the multiple threads, the method further includes: storing the business delivery fee of each account to be settled among all the accounts to be settled in a business delivery fee data table, generating a snapshot data according to the target settlement rule and the assessment data corresponding to the business delivery fee of each account to be settled, and storing the snapshot data in the business delivery fee data table; The method further comprises: When a manual operation that affects the service delivery cost is detected, a snapshot data is generated for each manual operation and stored in a relational database, wherein the snapshot data includes the operation subject, operation object, operation time and operation content.
6. A settlement device for service delivery fees, characterized in that: The device comprises: An instruction receiving module, used for receiving a fee settlement instruction, wherein the fee settlement instruction includes a settlement time range and at least one settlement mode identifier; An account screening module, used to screen out all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range; wherein the account screening module is specifically used to screen out all valid promotion accounts corresponding to the settlement time range from all promotion accounts; and to screen out all accounts to be settled corresponding to the at least one settlement mode identifier from all valid promotion accounts, wherein the at least one settlement mode identifier includes one or more of a CPA fixed price settlement mode identifier, a CPA tiered price settlement mode identifier and a CPM settlement mode identifier; A fee calculation module, used to create multiple threads according to the number of all the accounts to be settled, and calculate the service delivery fee of each of the accounts to be settled through the multiple threads, wherein each of the multiple threads is used to process the service delivery fee of one of the accounts to be settled at a time; The fee calculation module includes: A target business delivery system determination unit, configured to determine a target business delivery system and a settlement mode identifier corresponding to any one of the to-be-settled accounts through any one of the threads; A business delivery data acquisition unit is used to acquire the business delivery data of any one of the accounts to be settled from the target business delivery system according to the settlement mode identifier, wherein the business delivery data includes a target settlement rule corresponding to the settlement mode identifier of any one of the accounts to be settled within the settlement time range and assessment data corresponding to the target settlement rule; wherein, when it is determined that the settlement mode identifier corresponding to any one of the accounts to be settled is a CPA fixed price settlement mode identifier, the business delivery data acquisition unit is specifically used to determine all links included in the any one of the accounts to be settled; and acquire the CPA fixed price settlement rule corresponding to the CPA fixed price settlement mode identifier of each link in all the links within the settlement time range and the first assessment data corresponding to the CPA fixed price settlement rule; A business delivery fee calculation unit is used to calculate the assessment data according to the target settlement rule to obtain the business delivery fee of any one of the accounts to be settled; wherein the business delivery fee calculation unit is specifically used to calculate according to the CPA fixed price settlement rule corresponding to each link in all the links and the first assessment data corresponding to the CPA fixed price settlement rule, to obtain the business delivery fee of any one of the accounts to be settled.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Settlement data processing method and device, computer equipment and storage medium
CN107886424A
Resource clearing method and device, computer equipment and storage medium
CN110232565A