CN113988999A - Method and device for settling service delivery cost, computer equipment and storage medium - Google Patents

Method and device for settling service delivery cost, computer equipment and storage medium Download PDF

Info

Publication number
CN113988999A
CN113988999A CN202111134805.1A CN202111134805A CN113988999A CN 113988999 A CN113988999 A CN 113988999A CN 202111134805 A CN202111134805 A CN 202111134805A CN 113988999 A CN113988999 A CN 113988999A
Authority
CN
China
Prior art keywords
settlement
settled
account
accounts
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111134805.1A
Other languages
Chinese (zh)
Inventor
马腾
曹臻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Shuhe Information Technology Co Ltd
Original Assignee
Shanghai Shuhe Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Shuhe Information Technology Co Ltd filed Critical Shanghai Shuhe Information Technology Co Ltd
Priority to CN202111134805.1A priority Critical patent/CN113988999A/en
Publication of CN113988999A publication Critical patent/CN113988999A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0242Determining effectiveness of advertisements

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a settlement method and device for service delivery cost, computer equipment and a storage medium. The method comprises the following steps: receiving a fee settlement instruction, wherein the fee settlement instruction comprises a settlement time range and at least one settlement mode identifier; screening all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range; and creating a plurality of threads according to the number of all accounts to be settled, calculating the service release cost of each account to be settled in all accounts to be settled through the plurality of threads, wherein each thread in the plurality of threads is used for processing the service release cost of one account to be settled each time. By adopting the method, different settlement modes can be flexibly docked, and the settlement efficiency is improved.

Description

Method and device for settling service delivery cost, computer equipment and storage medium
Technical Field
The present application relates to the technical field of fee settlement, and in particular, to a method and an apparatus for settling service delivery fees, a computer device, and a storage medium.
Background
The expenses of each channel of the traditional business release need to be collected offline, and then realized in a background uploading mode, the modification of expenses and the change record of unit price need to be realized in an offline manual entry mode, and the approval of the expense results is mainly submitted to finance after being approved and signed layer by layer through the offline; the settlement of the expense is calculated by an EXCEL on line by a project manager, the project manager uploads the expense every day by taking a promotion link as a unit every month, then the expense is displayed in a report, the project manager needs to inform a data group of a mail to refresh data after the modified expense is uploaded, and in the aspect of expense application, the project manager also needs to check the detailed expense report form of the EXCEL off line and the cost on line uploaded before, then sends the detailed expense report form of the EXCEL off line and a settlement confirmation letter to a corresponding agent, and then checks the two parties. The whole settlement process is low in efficiency, once accounts are mistaken, the results can only be traced, time and labor are wasted, and the requirement that the business of a company is increasingly complicated is difficult to meet.
Disclosure of Invention
In view of the above, it is desirable to provide a settlement method, apparatus, computer device and storage medium for business placement fees, which can flexibly interface different settlement modes and improve settlement efficiency.
In a first aspect, the present application provides a method for settling service delivery costs, where the method includes:
receiving a fee settlement instruction, wherein the fee settlement instruction comprises a settlement time range and at least one settlement mode identifier;
screening all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range;
creating a plurality of threads according to the number of all accounts to be settled, and calculating the service release cost of each account to be settled in all accounts to be settled through the plurality of threads, wherein each thread in the plurality of threads is used for processing the service release cost of one account to be settled each time;
wherein, processing the service release charge of any account to be settled in all accounts to be settled through any thread in the plurality of threads comprises:
determining a target service delivery system and a settlement mode identifier corresponding to any account to be settled through any thread;
acquiring service delivery data of any account to be settled from a target service delivery system according to the settlement mode identifier, wherein the service delivery data comprises a target settlement rule corresponding to the settlement mode identifier and assessment data corresponding to the target settlement rule of any account to be settled within a settlement time range;
and calculating the assessment data according to the target settlement rule to obtain the service delivery cost of any account to be settled.
In some embodiments, screening all accounts to be settled from all promoted accounts according to the at least one settlement mode identifier and the settlement time range includes:
screening all effective promotion accounts corresponding to the settlement time range from all promotion accounts;
and screening all accounts to be settled corresponding to the at least one settlement mode identifier from all the effective promotion accounts, wherein the at least one settlement mode identifier comprises one or more of a CPA fixed price settlement mode identifier, a CPA stepped price settlement mode identifier and a CPM settlement mode identifier.
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, acquiring service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier includes:
determining all links contained in any account to be settled;
acquiring a CPA fixed price settlement rule corresponding to the CPA fixed price settlement mode identifier and first examination data corresponding to the CPA fixed price settlement rule in a settlement time range by each link in all links;
calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled, wherein the method comprises the following steps:
and 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 service release cost of any account to be settled.
In some embodiments, when it is determined that the settlement mode identifier corresponding to any account to be settled is the CPA stepped price settlement mode identifier, acquiring service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier includes:
acquiring a CPA step price settlement rule corresponding to the CPA step price settlement mode identifier and second examination data corresponding to the CPA step price settlement rule of any account to be settled within a settlement time range;
calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled, wherein the method comprises the following steps:
and calculating the second assessment data according to the CPA stepped price settlement rule to obtain the service release cost of any account to be settled.
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, acquiring service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier includes:
acquiring a CPM settlement rule corresponding to the CPM settlement mode identifier and CPM assessment data corresponding to the CPM settlement rule of any account to be settled within a settlement time range;
calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled, wherein the method comprises the following steps:
and calculating the CPM assessment data according to the CPM settlement rule to obtain the service delivery cost of any account to be settled.
In some of these embodiments, the method further comprises:
when receiving a charge settlement instruction, recording a first log corresponding to the charge settlement instruction, wherein the first log is used for recording that the charge settlement instruction is in a state of waiting for execution at a first time point;
after calculating the service placement fee of each account to be settled in all accounts to be settled through the plurality of threads, the method further comprises the following steps:
detecting whether the operation of calculating the service delivery cost of each account to be settled in all accounts to be settled by the multiple threads is successfully executed;
when the operation of calculating the service delivery cost of each account to be settled in all accounts to be settled by the multiple threads is successfully executed, recording a second log, wherein the second log is used for recording that the cost settlement instruction is in an execution success state at a second time point;
when the operation execution of calculating the service release charge of each account to be settled in all accounts to be settled by the multiple threads fails, re-executing the multiple threads to calculate the service release charge of each account to be settled in all accounts to be settled, and detecting whether the operation execution of calculating the service release charge of each account to be settled in all accounts to be settled by the multiple threads is successful within the preset retry times;
when the service release fee of each account to be settled in all accounts to be settled calculated by the multiple threads is successfully executed within the preset retry number, returning to the step of recording a second log; when the plurality of threads calculate the service release fee of each account to be settled in all accounts to be settled, and the execution fails within the preset retry number, recording a third log, wherein the third log is used for recording that the fee settlement instruction is in an execution failure state at a third time point.
In some embodiments, after calculating the service placement cost of each account to be settled in all accounts to be settled through the plurality of threads, the method further comprises:
storing the service release cost of each account to be settled in all accounts to be settled into a service release cost data table, generating a snapshot data by using the target settlement rule and the assessment data corresponding to the service release cost of each account to be settled, and storing the snapshot data into the service release cost data table;
in some of these embodiments, the method further comprises:
when the occurrence of manual operation influencing service delivery cost is detected, snapshot data is generated for each manual operation and is stored in a relational database, and the snapshot data comprises an operation main body, an operation object, operation time and operation content.
A second aspect of the present application provides a settlement apparatus for service placement costs, the apparatus comprising:
the instruction receiving module is used for receiving a charge settlement instruction, and the charge settlement instruction comprises a settlement time range and at least one settlement mode identifier;
the account screening module is used for screening all corresponding accounts to be settled from all the promoted accounts according to the at least one settlement mode identifier and the settlement time range;
the charge calculation module is used for creating a plurality of threads according to the number of all accounts to be settled, calculating the service release charge of each account to be settled in all accounts to be settled through the plurality of threads, wherein each thread in the plurality of threads is used for processing the service release charge of one account to be settled each time;
a fee calculation module comprising:
the system comprises a target service delivery system determining unit, a settlement mode identification determining unit and a settlement module identification determining unit, wherein the target service delivery system determining unit is used for determining a target service delivery system and a settlement mode identification corresponding to any account to be settled through any thread;
the service delivery data acquisition unit is used for acquiring service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier, wherein the service delivery data comprises a target settlement rule corresponding to the settlement mode identifier and assessment data corresponding to the target settlement rule of any account to be settled within a settlement time range;
and the service release charge calculation unit is used for calculating the assessment data according to the target settlement rule to obtain the service release charge of any account to be settled.
A third aspect of the application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the embodiments of the method when executing the computer program.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of an embodiment of any of the methods described above.
The expense settlement system receives an expense settlement instruction, the expense settlement instruction comprises a settlement time range and at least one settlement mode identifier, and the at least one settlement mode identifier can be flexibly configured according to needs; screening all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range; and creating a plurality of threads according to the number of all accounts to be settled, calculating the service release cost of each account to be settled in all accounts to be settled through the plurality of threads, wherein each thread in the plurality of threads is used for processing the service release cost of one account to be settled each time. The method can flexibly interface one or more settlement modes by configuring the settlement mode identification contained in the expense settlement instruction, has better compatibility, and improves settlement efficiency by carrying out parallel calculation on the service delivery expense through multiple threads.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for settling costs associated with a service placement;
FIG. 2 is a flow chart illustrating a method for settling service placement costs according to an embodiment;
FIG. 3 is an example of a CPA fixed price settlement rule in one embodiment;
FIG. 4 is an example of a CPA tiered price settlement rule in one embodiment;
FIG. 5 is a flow chart illustrating a method for settling service placement fees according to another embodiment;
FIG. 6 is a block diagram showing an exemplary embodiment of a settlement apparatus for settlement of service placement costs;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Example one
The method for settling the service delivery cost can be applied to the application environment shown in fig. 1. The expense settlement system 102 is in communication with the plurality of service delivery systems 104 through a network, the expense settlement system 102 responds to an expense settlement instruction, screens out all corresponding accounts to be settled from all promotion accounts according to the settlement instruction including a settlement time range and at least one settlement mode identifier, then creates a plurality of threads according to the number of all accounts to be settled, calculates the service delivery cost of each account to be settled in all accounts through the plurality of threads, and each thread in the plurality of threads is used for processing the service delivery cost of one account to be settled each time; wherein, any thread in the plurality of threads processes the service release fee of any account to be settled in all accounts to be settled, and the method specifically includes: the charge settlement system 102 determines a target service delivery system and a settlement mode identifier corresponding to any account to be settled through any thread; then acquiring service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier, wherein the service delivery data comprises a target settlement rule corresponding to the settlement mode identifier and assessment data corresponding to the target settlement rule of any account to be settled within a settlement time range; and calculating the assessment data according to the target settlement rule to obtain the service delivery cost of any account to be settled, wherein the target service delivery system can be any one of the service delivery systems 104. The fee settlement system 102 and each service delivery system 104 can be implemented by an independent server or a server cluster composed of a plurality of servers.
The present embodiment provides a method for settling service delivery costs, as shown in fig. 2, which is described by taking the application of the method to the cost settlement system in fig. 1 as an example, and includes the following steps:
step 100, receiving a fee settlement instruction, wherein the fee settlement instruction comprises a settlement time range and at least one settlement mode identifier.
The settlement time range may be a preset month, a preset week or a preset day, for example, the current month settlement, the previous week settlement or the previous day settlement, which are commonly used in financial settlement, and the settlement time range may also be a certain period of time, and when the day is taken as the minimum settlement unit, the settlement time range may be a specific date range, for example, the settlement time range information of "20210805, 20210820" is included in the fee settlement instruction, and the corresponding settlement time range is from 8/5/2021/8/20/2021. Meanwhile, the charge settlement instruction may include one or more settlement mode flags, each of which represents one settlement mode, and since different settlement modes may be used in an actual charge settlement process, the settlement mode flag may be a CPA fixed price settlement mode flag, a CPA stepped price settlement mode flag, a CPM settlement mode flag, or the like.
Specifically, the fee settlement system starts to perform the fee settlement work in response to the received fee settlement instruction. The expense settlement instruction can be generated by timing triggering, or can be an instruction manually input into an expense settlement system by a worker, and in addition, the expense settlement system can be set, so that the expense settlement system automatically triggers and generates the expense settlement instruction when in an idle state to perform expense settlement work, thereby avoiding busy time periods of the system, more fully utilizing system computing resources and improving settlement efficiency.
And 200, screening all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range.
All promotion accounts can comprise all promotion accounts which are set up by enterprises in different advertisement operation companies, and each advertisement operation company is provided with a corresponding service delivery system, so that the promotion accounts are positioned on different service delivery systems; the account to be settled is a promotion account which is in accordance with the at least one settlement mode identifier and the condition required by the settlement time range, and any account to be settled can correspond to one or more settlement mode identifiers in the at least one settlement mode identifier.
Specifically, the expense settlement system screens all corresponding accounts to be settled from all promoted accounts according to at least one settlement mode identifier and a settlement time range included in the expense settlement instruction, that is, the expense settlement system screens out promoted accounts corresponding to the at least one settlement mode identifier within the settlement time range from all promoted accounts, and uses the promoted accounts as the accounts to be settled.
In some embodiments, the fee settlement system screens all valid promotion accounts corresponding to the settlement time range from all promotion accounts, and then screens 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 stepped price settlement mode identifier and a CPM settlement mode identifier.
All effective promotion accounts corresponding to the settlement time range refer to all effective promotion accounts within the settlement time range, and each effective promotion account corresponds to at least one settlement mode identifier. When actual business is put in, a binding relationship exists between the promotion account and the advertisement operation company, the binding relationship has a validity period, one or more settlement rules can be set for the promotion account in the validity period, each settlement rule also has a rule time range, and the rule time ranges of different settlement rules are not crossed. For example, the promotion account a1 is bound with the advertising operation company a, the validity period of the binding relationship is 2021 year round, and if the settlement time range is from 8 month 5 days in 2021 year to 8 month 20 days in 2021 year, the promotion account a1 is valid in the settlement time range; during the binding of the promotion account A1 and the advertising carrier A, a plurality of settlement rules can be set for the promotion account A1, wherein the promotion account A1 corresponds to a CPA fixed price settlement rule between 8 month 1 and 2021 year 8 month 15 in 2021, and corresponds to a CPA stepped price settlement rule between 8 month 16 and 2021 year 8 month 30 in 2021, so that the promotion account A1 settles the CPA fixed price settlement rule between 8 month 5 and 2021 year 8 month 15 in 2021 and uses the CPA stepped price settlement rule between 8 month 16 and 2021 year 8 month 20 in 2021 within the settlement time range.
In the advertisement putting industry, common forms for measuring advertisement effect are CPA, CPM and the like. CPA (CostPerAction ) is charging per action, and a in CPA refers to action, i.e. action, but actions are various. Specifically, the advertiser and the agent have to agree on what action to perform when placing the advertisement. Generally, a may be registration, interaction, downloading, ordering, purchasing, etc., and during the process of executing advertisement delivery, as long as no appointed action is generated, no matter how many times the advertisement is displayed or how many clicks are generated, no charge is made, and only when the appointed action is generated, the fee is charged according to the amount. CPM (costpermill, cost per presentation), also known as cost per thousand persons presented, is another basic form of measuring the effectiveness of an advertisement, being the cost that an advertisement needs to spend per thousand persons presented. The advertisement in the CPM charging mode is charged according to the display amount by only viewing the display amount regardless of clicking, downloading, registering, etc., for example, in the internet advertisement, the CPM charging mode is generally adopted for very good quality advertisement spots such as video tiles, portal banners, etc.
In this embodiment, the CPA fixed price settlement mode identifier corresponds to the CPA fixed price settlement mode, and the corresponding settlement rule usually agrees a certain action as the settlement index, and the settlement price corresponding to each action is fixed no matter how many times the action occurs. Similarly, the CPA stepped price settlement mode identifier corresponds to the CPA stepped price settlement mode, and the corresponding settlement rule usually agrees a certain action as the settlement index, and the stepped settlement price is set according to the occurrence frequency of the action.
The CPM settlement mode mark corresponds to a CPM settlement mode, and the corresponding settlement rule usually adopts the display amount as a settlement index and settles the investment cost according to the display amount.
Step 300, creating a plurality of threads according to the number of all accounts to be settled, and calculating the service release cost of each account to be settled in all accounts to be settled through the plurality of threads, wherein each thread in the plurality of threads is used for processing the service release cost of one account to be settled each time.
Specifically, the charge settlement system obtains the number of all accounts to be settled through statistics, determines the thread creation number according to the number of all accounts to be settled, and creates a plurality of threads according to the thread creation number, namely, the number of the plurality of threads is equal to the thread creation number.
In this embodiment, the multiple threads are used for concurrently processing the service delivery cost of the account to be settled, and the number of computing channels for processing data can be set by adjusting the concurrent number of the multiple threads, on one hand, the higher the concurrent number of the threads is, the more the computing channels are, the data processing efficiency of the cost settlement system can be improved, and on the other hand, the too many concurrent threads may also cause pressure on the performance of the downstream system, so the too many concurrent threads cannot be set.
Wherein, processing the service release charge of any account to be settled in all accounts to be settled through any thread in the plurality of threads comprises:
step 302, determining a target service delivery system and a settlement mode identifier corresponding to any account to be settled through any thread.
The target service delivery system corresponding to any account to be settled can be a service delivery system where the account to be settled is located, one account to be settled can only correspond to one target service delivery system, and different service delivery systems correspond to different advertisement operation companies; the settlement mode identifier corresponding to each account to be settled may be one or more.
Specifically, the fee settlement system determines, through any one thread, a target service delivery system and a settlement mode identifier corresponding to any one account to be settled, for example: the expense settlement system determines that a target service delivery system corresponding to an account to be settled, which is processed by the thread, is a service delivery system of an advertisement operation company A through any thread, and a settlement mode identifier corresponding to the account to be settled is a 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 a CPA fixed price settlement mode identifier.
And 304, acquiring service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier, wherein the service delivery data comprises a target settlement rule corresponding to the settlement mode identifier and assessment data corresponding to the target settlement rule of any account to be settled within the settlement time range.
The service release data of any account to be settled within the settlement time range is acquired from the target service release system according to the settlement mode identifier; given that an account to be settled may correspond to one or more settlement mode identifiers, and the same settlement mode identifier may also correspond to at least one settlement rule, then any one account to be settled may also have one or more target settlement rules corresponding to the settlement mode identifier within the settlement time range, the effective times of the plurality of target settlement rules are not crossed, and different target settlement rules respectively correspond to different assessment data.
Specifically, the expense settlement system acquires service release data of the account to be settled within the settlement time range from a target service release system corresponding to the account to be settled which is being processed by the thread through one thread. For example, the expense settlement system processes the account to be settled a1 through the thread L1, the account to be settled a1 is located on the service delivery system of the advertising operation a company, the thread L1 acquires the service delivery data of the account to be settled a1 from the service delivery system of the advertising operation a company, and when the settlement mode identifier corresponding to the account to be settled a1 is the CPM settlement mode identifier, the service delivery data includes the target settlement rule corresponding to the CPM settlement mode identifier and the assessment data corresponding to the target settlement rule of the account to be settled a1 in the settlement time range; when the account to be settled a1 corresponds to two settlement mode identifiers, one is a CPM settlement mode identifier, and the other is a CPA fixed price settlement mode identifier, the service delivery data not only include at least one target settlement rule corresponding to the CPM settlement mode identifier of the account to be settled a1 in the settlement time range and the assessment data corresponding to the target settlement rule, but also include at least one target settlement rule corresponding to the CPA fixed price settlement mode identifier of the account to be settled a1 in the settlement time range and the assessment data corresponding to the target settlement rule, and the effective time ranges corresponding to different target settlement rules are not crossed with each other.
And step 306, calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled.
For example, when the settlement time range is from 8 months 5 days in 2021 to 8 months 20 days in 2021, the settlement mode identifier corresponding to the account to be settled is a CPA fixed price settlement mode identifier, the account to be settled may correspond to one CPA fixed price settlement rule in a time period from 8 months 5 days in 2021 to 8 months 10 days in 2021, and the account to be settled corresponds to another different CPA fixed price settlement rule in a time period from 8 months 11 days in 2021 to 8 months 20 days in 2021, and the check data corresponding to the two settlement rules may be the number of settlement index corresponding to the behavior respectively adopted by the two settlement rules.
Specifically, the expense settlement system calculates assessment data corresponding to the target settlement rule according to the acquired target settlement rule of the account to be settled through a thread to obtain the service delivery expense of the account to be settled.
In the settlement method for the service delivery cost provided in the embodiment, the cost settlement system receives a cost settlement instruction, and the cost settlement instruction comprises a settlement time range and at least one settlement mode identifier; screening all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range; and creating a plurality of threads according to the number of all accounts to be settled, calculating the service release cost of each account to be settled in all accounts to be settled through the plurality of threads, wherein each thread in the plurality of threads is used for processing the service release cost of one account to be settled each time. The method can flexibly interface one or more settlement modes by configuring the settlement mode identification contained in the expense settlement instruction, has better compatibility, and can also perform parallel calculation on the service delivery expense by multithreading so as to improve the settlement efficiency.
Example two
Based on the first embodiment, in this embodiment, the method for settling the service release fee is described in detail by taking a common settlement mode as an example.
In some embodiments, determining that a settlement mode identifier corresponding to any account to be settled is a CPA fixed price settlement mode identifier, and acquiring service delivery data of any account to be settled from a target service delivery system according to the settlement mode identifier includes:
all links contained in any account to be settled are determined.
And acquiring a CPA fixed price settlement rule corresponding to the CPA fixed price settlement mode identifier and first examination data corresponding to the CPA fixed price settlement rule in each link in the settlement time range.
The CPA fixed price settlement rule comprises a pricing settlement rule effective time range, a pricing settlement index and a settlement unit price corresponding to the pricing settlement index, and the first assessment data is the behavior quantity of the pricing settlement index in a link to be settled in the pricing settlement rule effective time range.
Calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled, wherein the method comprises the following steps: and 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 service release cost of any account to be settled.
As shown in fig. 3, the CPA fixed price settlement rule adopted by link 1 and link 2 is explained as an example. In a business system, a user generally goes through a plurality of stages of registration, initial registration, information entry, face recognition, credit granting, completion of claim, payment and the like, each stage represents one behavior type of the user, and a specific behavior type is used as a settlement index during settlement. For example, a certain account to be settled includes two links, namely link 1 and link 2, and the link 1 uses the behavior type of credit as a pricing settlement index, then the number of credit behaviors in the range of 20190601-20190611 under the link 1 is multiplied by the settlement unit price 200 to obtain a product, the number of credit behaviors in the range of 20190612-20190630 under the link 1 is multiplied by the settlement unit price 300 to obtain a product, the two products are summed to obtain the release cost of the link 1, the release cost of the link 2 is obtained by the same calculation, the release cost of the link 1 and the release cost of the link 2 are summed to obtain the total cost of the account to be settled, and then the final service release cost of the account to be settled is obtained by combining the settlement coefficient.
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, acquiring service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier includes: and acquiring a CPA step price settlement rule corresponding to the CPA step price settlement mode identifier and second examination data corresponding to the CPA step price settlement rule of any account to be settled within a settlement time range.
The CPA stepped price settlement rule comprises a stepped price settlement rule effective time range, a stepped price settlement index, a plurality of quantity grade ranges corresponding to the stepped price settlement index and stepped prices corresponding to the quantity grade ranges respectively, and the second assessment data is the sum of the action quantities of the stepped price settlement index in all promotion links of any account to be settled within the stepped price settlement rule effective time range.
Calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled, wherein the method comprises the following steps: and calculating the second assessment data according to the CPA stepped price settlement rule to obtain the service release cost of any account to be settled.
A CPA tiered price settlement rule shown in fig. 4 is described with an example in which the CPA tiered price settlement rule is applied to an account. Therefore, the CPA stepped price settlement rule takes the credit granting behavior as the stepped price settlement index, the sum X of the credit granting behaviors of the account under all links in the effective time range of the stepped price settlement rule is obtained, the sum X of the credit granting behaviors is multiplied by the stepped price corresponding to the quantity grade range to obtain the settlement cost, and the final service release cost can be obtained by combining the settlement coefficient used by the cost settlement system. For example, the following steps: when the sum X of the credit granting actions is 15, the settlement fee is 15 × 150, and when the sum X of the credit granting actions is 30, the settlement fee is 30 × 500.
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, acquiring service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier includes: and acquiring a CPM settlement rule corresponding to the CPM settlement mode identifier and CPM assessment data corresponding to the CPM settlement rule of any account to be settled within a settlement time range.
Calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled, wherein the method comprises the following steps: and calculating the CPM assessment data according to the CPM settlement rule to obtain the service delivery cost of any account to be settled.
The CPM settlement rule comprises a valid time range of the CPM rule and a settlement coefficient, and the CPM assessment data can comprise cash expenditure amount and a preset return point rate of any account to be settled. The finest time granularity set by the CPM settlement rule validity time range is generally a month.
In the settlement process of the actual service release cost, the cash expenditure amount is the capital running amount retrieved by the cost settlement system through the data interface of each release platform, the point return rate is unique to the account-walking company, generally maintained in the account attribute, generally called the cost of the enterprise to the account-walking company through the mainstream channel is the actual consumption, and the actual consumption of a single account is the cash expenditure amount/(1 + point return rate) within the effective time of the account.
When the settlement mode identifier corresponding to any account to be settled is the CPM settlement mode identifier, the fee settlement system may calculate the actual operating fee according to the total actual consumption and settlement coefficient of the plurality of accounts. The settlement coefficient can be a preset fixed settlement coefficient, and can also be a KPI examination settlement coefficient calculated according to a preset formula.
When the KPI examination settlement coefficient is taken as the settlement coefficient, the preset formula is as follows:
settlement coefficient is basic service rate magnitude coefficient cost coefficient
In the actual settlement process, the following can be set: magnitude coefficient is actual magnitude/target magnitude a
Actual magnitude (target magnitude) (effective interval days/total days in month)
Cost coefficient is 1- (actual cost-target cost) b
Actual cost (actual consumption x (1+ basic service rate)/actual magnitude
In summary, the settlement factor is (ac (be +1) × actual magnitude + abc (c-1) × actual consumption)/d
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, the actual consumption is the sum of the actual consumption of each account, and the actual consumption of a single account is the cash expenditure amount/(1 + point return rate) within the effective time of the account.
In some embodiments, the basic service rate (c), the target magnitude (d), the target cost (e), the magnitude coefficient calculation parameter (a), and the cost coefficient calculation parameter (b) are all parameters pre-established according to the service delivery requirement, and the parameters of the basic service rate (c), the target magnitude (d), the target cost (e), the magnitude coefficient calculation parameter (a), and the cost coefficient calculation parameter (b) are from the same service process, while the parameters of actual consumption, actual magnitude, and the like are from different service processes. In the process of actual service delivery, if the certain service process is adjusted, parameters generated by other service processes are not affected, so that various parameters used by the calculation coefficient formula can be dynamically modified, and different settlement requirements of settlement modes such as CPA (cross-correlation access), CPM (continuous processing method) and the like are flexibly supported.
The settlement method for the service delivery cost provided in the embodiment has strong compatibility, and by setting the settlement mode identifier in the cost settlement instruction, pluggable butt joint with different settlement mode systems can be flexibly realized, and meanwhile, various different settlement modes are supported to calculate service delivery data, so that different advertisement operation channels are better compatible, and the complex requirements of company services are met. Note that the settlement modes that can be used in the present embodiment are not limited to the above-mentioned several settlement modes, and other settlement modes in the advertisement promotion industry, such as a CPC (cost per click) settlement mode, may be used.
EXAMPLE III
Based on the first embodiment and the second embodiment, as shown in fig. 5, this embodiment provides a method for settling service placement fees, which includes:
step 402, receiving a fee settlement instruction, wherein the fee settlement instruction comprises a settlement time range and at least one settlement mode identifier.
Step 404, when receiving the expense settlement instruction, recording a first log corresponding to the expense settlement instruction, where the first log is used to record that the expense settlement instruction is in a state of waiting for execution at a first time point.
And 406, screening all corresponding accounts to be settled from all the promoted accounts according to the at least one settlement mode identifier and the settlement time range.
Step 408, creating a plurality of threads according to the number of all accounts to be settled, and calculating the service release fee of each account to be settled in all accounts to be settled through the plurality of threads, wherein each thread in the plurality of threads is used for processing the service release fee of one account to be settled each time.
Step 410, detecting whether the operation of calculating the service release fee of each account to be settled in all accounts to be settled by the multiple threads is successfully executed.
Step 412, if yes, recording a second log, where the second log is used to record that the expense settlement instruction is in a successful execution state at a second time point.
And step 414, if not, re-executing the multiple threads to calculate the service release cost of each account to be settled in all accounts to be settled.
Step 416, detecting whether the service release cost of each account to be settled in all accounts to be settled calculated by the multiple threads is successfully executed within the preset retry number. If yes, returning to the step of recording the second log.
If not, a third log is recorded, and the third log is used for recording that the expense settlement instruction is in the execution failure state at a third time point.
The method provided by the embodiment logs the operation state of the expense settlement instruction every time, so that the follow-up problem tracing is facilitated.
To further facilitate tracking of the charge settlement process, in some embodiments, after calculating the service placement charges for each of all accounts to be settled through the plurality of threads, the method further comprises: and storing the service release cost of each account to be settled in all accounts to be settled into a service release cost data table, generating a snapshot data by using the target settlement rule and the assessment data corresponding to the service release cost of each account to be settled, and storing the snapshot data into the service release cost data table.
In the above embodiment, the fee settlement system stores the service release fee of each account to be settled in a drop form, and records settlement rules and assessment data used for fee settlement in a snapshot manner, thereby providing great convenience for tracing problems in the later period and calculating settlement fees.
In some embodiments, the method further comprises:
when the occurrence of manual operation influencing service delivery cost is detected, snapshot data is generated for each manual operation and is stored in a relational database, and the snapshot data comprises an operation main body, an operation object, operation time and operation content.
The manual operation refers to a manual operation which can affect the calculation of the service delivery cost, such as modifying the account association validity period, modifying the return point rate, modifying the basic service rate, and the like.
In the above embodiment, the fee settlement system generates a detailed snapshot data for each manual operation, where the snapshot data includes an operation subject, an operation object, operation time, and operation content, and not only is there no limitation of time tracing and the operation of the whole link of the user can be seen, but also the snapshot data is stored in the relational database, so that the snapshot data can be summarized and sorted according to the specified fields, which is more convenient and faster, and the purpose of tracing each manual operation is achieved.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Example four
The present embodiment provides a settlement apparatus for service placement costs, as shown in fig. 6, including:
the instruction receiving module 110 is configured to receive a fee settlement instruction, where the fee settlement instruction includes a settlement time range and at least one settlement mode identifier;
the account screening module 120 is configured to screen all corresponding accounts to be settled from all promoted accounts according to the at least one settlement mode identifier and the settlement time range;
the fee calculation module 130 is configured to create a plurality of threads according to the number of all accounts to be settled, and calculate, through the plurality of threads, a service release fee of each account to be settled in all accounts to be settled, where each thread in the plurality of threads is used to process the service release fee of one account to be settled at a time;
a fee calculation module 130 comprising:
a target service delivery system determining unit 1302, configured to determine, through any thread, a target service delivery system and a settlement mode identifier corresponding to any account to be settled;
a service delivery data obtaining unit 1304, configured to obtain service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier, where the service delivery data includes a target settlement rule corresponding to the settlement mode identifier and assessment data corresponding to the target settlement rule of any account to be settled within a settlement time range;
and the service release charge calculation unit 1306 is configured to calculate the assessment data according to the target settlement rule, so as to obtain the service release charge of any account to be settled.
In some embodiments, the account screening module 120 is specifically configured to screen all effective promotion accounts corresponding to the settlement time range from all promotion accounts; and screening all accounts to be settled corresponding to the at least one settlement mode identifier from all the effective promotion accounts, wherein the at least one settlement mode identifier comprises one or more of a CPA fixed price settlement mode identifier, a CPA stepped price settlement mode identifier and a CPM settlement mode identifier.
In some embodiments, when determining that the settlement mode identifier corresponding to any account to be settled is the CPA fixed price settlement mode identifier, the service delivery data obtaining unit 1304 is specifically configured to determine all links included in any account to be settled; acquiring a CPA fixed price settlement rule corresponding to the CPA fixed price settlement mode identifier and first examination data corresponding to the CPA fixed price settlement rule in a settlement time range by each link in all links; the service release charge calculation unit 1306 is specifically configured 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, respectively, to obtain a service release charge of any account to be settled.
In some embodiments, when determining that the settlement mode identifier corresponding to any account to be settled is the CPA stepped price settlement mode identifier, the service delivery data obtaining unit 1304 is specifically configured to obtain a CPA stepped price settlement rule corresponding to the CPA stepped price settlement mode identifier and second assessment data corresponding to the CPA stepped price settlement rule of any account to be settled within the settlement time range; the service release charge calculation unit 1306 is specifically configured to calculate the second assessment data according to the CPA tiered price settlement rule, so as to obtain the service release charge of any account to be settled.
In some embodiments, when determining that the settlement mode identifier corresponding to any account to be settled is the CPM settlement mode identifier, the service delivery data obtaining unit 1304 is specifically configured to obtain a CPM settlement rule corresponding to the CPM settlement mode identifier and CPM assessment data corresponding to the CPM settlement rule of the any account to be settled within a settlement time range; the service delivery charge calculation unit 1306 is specifically configured to calculate the CPM assessment data according to the CPM settlement rule, so as to obtain a service delivery charge of any account to be settled.
In some embodiments, the device further includes a logging module, configured to record, when the charge settlement instruction is received, a first log corresponding to the charge settlement instruction, where the first log is used to record that the charge settlement instruction is in a state to be executed at a first time point; detecting whether the operation of calculating the service delivery cost of each account to be settled in all accounts to be settled by the multiple threads is successfully executed; when the operation of calculating the service delivery cost of each account to be settled in all accounts to be settled by the multiple threads is successfully executed, recording a second log, wherein the second log is used for recording that the cost settlement instruction is in an execution success state at a second time point; when the operation execution of calculating the service release charge of each account to be settled in all accounts to be settled by the multiple threads fails, re-executing the multiple threads to calculate the service release charge of each account to be settled in all accounts to be settled, and detecting whether the operation execution of calculating the service release charge of each account to be settled in all accounts to be settled by the multiple threads is successful within the preset retry times; when the service release fee of each account to be settled in all accounts to be settled calculated by the multiple threads is successfully executed within the preset retry number, returning to the step of recording a second log; when the plurality of threads calculate the service release fee of each account to be settled in all accounts to be settled, and the execution fails within the preset retry number, recording a third log, wherein the third log is used for recording that the fee settlement instruction is in an execution failure state at a third time point.
In some embodiments, the device further includes a snapshot recording module, where the snapshot recording module is configured to store the service release cost of each account to be settled in all accounts to be settled in a service release cost data table, generate a piece of snapshot data from the target settlement rule and the assessment data corresponding to the service release cost of each account to be settled, and store the snapshot data in the service release cost data table;
in some embodiments, the snapshot recording module is further configured to, when it is detected that a manual operation affecting a service placement cost occurs, generate a piece of snapshot data for each manual operation, and store the snapshot data in the relational database, where the snapshot data includes an operation subject, an operation object, an operation time, and operation contents.
The specific definition of the settlement device for the service placement cost can be referred to the definition of the settlement method for the service placement cost in the foregoing, and will not be described herein again. All or part of the modules in the settlement device for the service release cost can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
EXAMPLE five
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The processor executes the computer program to implement a method for settling service placement fees as described in the first, second, and third embodiments.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
EXAMPLE six
In this embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements a method for settling service placement fees as described in the above first, second, and third embodiments. It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for settling service placement fee, the method comprising:
receiving a charge settlement instruction, wherein the charge settlement instruction comprises a settlement time range and at least one settlement mode identifier;
screening all corresponding accounts to be settled from all promotion accounts according to the at least one settlement mode identifier and the settlement time range;
creating a plurality of threads according to the number of all accounts to be settled, and calculating the service release cost of each account to be settled in all accounts to be settled through the plurality of threads, wherein each thread in the plurality of threads is used for processing the service release cost of one account to be settled each time;
wherein, processing the service release fee of any account to be settled in all accounts to be settled through any thread in the plurality of threads comprises:
determining a target service delivery system and a settlement mode identifier corresponding to any account to be settled through any thread;
acquiring service delivery data of any account to be settled from the target service delivery system according to the settlement mode identifier, wherein the service delivery data comprises a target settlement rule corresponding to the settlement mode identifier and assessment data corresponding to the target settlement rule of any account to be settled within the settlement time range;
and calculating the assessment data according to the target settlement rule to obtain the service delivery cost of any account to be settled.
2. The method according to claim 1, wherein the screening out all accounts to be settled from all promoted accounts according to the at least one settlement mode identifier and the settlement time range comprises:
screening all effective promotion accounts corresponding to the settlement time range from all promotion accounts;
and screening all accounts to be settled corresponding to the at least one settlement mode identifier from all the effective promotion accounts, wherein the at least one settlement mode identifier comprises one or more of a CPA fixed price settlement mode identifier, a CPA stepped price settlement mode identifier and a CPM settlement mode identifier.
3. The method according to claim 2, wherein when it is determined that the settlement mode identifier corresponding to the any account to be settled is a CPA fixed price settlement mode identifier, the acquiring, from the target service delivery system, service delivery data of the any account to be settled according to the settlement mode identifier comprises:
determining all links contained in any account to be settled;
acquiring a CPA fixed price settlement rule corresponding to the CPA fixed price settlement mode identifier and first assessment data corresponding to the CPA fixed price settlement rule in the settlement time range by each link in all the links;
the step of calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled comprises the following steps:
and calculating according to the CPA fixed price settlement rule corresponding to each link in all the links and first assessment data corresponding to the CPA fixed price settlement rule to obtain the service release cost of any account to be settled.
4. The method according to claim 3, wherein when it is determined that the settlement mode identifier corresponding to the any account to be settled is a CPA tiered price settlement mode identifier, the acquiring, from the target service delivery system, service delivery data of the any account to be settled according to the settlement mode identifier includes:
acquiring a CPA stepped price settlement rule corresponding to the CPA stepped price settlement mode identifier of any account to be settled in the settlement time range and second assessment data corresponding to the CPA stepped price settlement rule;
the step of calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled comprises the following steps:
and calculating the second assessment data according to the CPA stepped price settlement rule to obtain the service delivery cost of any account to be settled.
5. The method according to claim 3, wherein when it is determined that the settlement model identifier corresponding to the any account to be settled is the CPM settlement model identifier, the acquiring, according to the settlement model identifier, the service delivery data of the any account to be settled from the target service delivery system includes:
acquiring a CPM settlement rule corresponding to the CPM settlement mode identifier and CPM assessment data corresponding to the CPM settlement rule of any account to be settled within the settlement time range;
the step of calculating the assessment data according to the target settlement rule to obtain the service release cost of any account to be settled comprises the following steps:
and calculating the CPM assessment data according to the CPM settlement rule to obtain the service delivery cost of any account to be settled.
6. The method according to any one of claims 1 to 5, further comprising:
when the expense settlement instruction is received, recording a first log corresponding to the expense settlement instruction, wherein the first log is used for recording that the expense settlement instruction is in a state of waiting for execution at a first time point;
after calculating the service placement fee of each account to be settled in the accounts to be settled through the plurality of threads, the method further comprises the following steps:
detecting whether the operation of calculating the service release cost of each account to be settled in all accounts to be settled by the plurality of threads is successfully executed;
when the operation of calculating the service release cost of each account to be settled in all accounts to be settled by the plurality of threads is successfully executed, recording a second log, wherein the second log is used for recording that the cost settlement instruction is in a successful execution state at a second time point;
when the operation of calculating the service release charge of each account to be settled in all accounts to be settled by the plurality of threads fails, re-executing the plurality of threads to calculate the service release charge of each account to be settled in all accounts to be settled, and detecting whether the operation of calculating the service release charge of each account to be settled in all accounts to be settled by the plurality of threads is successfully executed within a preset retry number;
when the plurality of threads calculate the service release fee of each account to be settled in all the accounts to be settled, and the execution is successful within the preset retry number, returning to the step of recording the second log; when the plurality of threads calculate the service release fee of each account to be settled in all accounts to be settled, and the execution fails within the preset retry number, recording a third log, wherein the third log is used for recording that the fee settlement instruction is in an execution failure state at a third time point.
7. The method according to any one of claims 1 to 5, wherein after calculating the service placement cost for each of the accounts to be settled through the plurality of threads, the method further comprises:
storing the service release cost of each account to be settled in all accounts to be settled into a service release cost data table, generating a snapshot data by the target settlement rule corresponding to the service release cost of each account to be settled and the assessment data, and storing the snapshot data into the service release cost data table;
preferably, the method further comprises:
when the occurrence of manual operation influencing service delivery cost is detected, snapshot data is generated for each manual operation and is stored in a relational database, and the snapshot data comprises an operation main body, an operation object, operation time and operation content.
8. An apparatus for settling service placement costs, the apparatus comprising:
the system comprises an instruction receiving module, a payment processing module and a payment processing module, wherein the instruction receiving module is used for receiving a payment settlement instruction, and the payment settlement instruction comprises a settlement time range and at least one settlement mode identifier;
the account screening module is used for screening all corresponding accounts to be settled from all promoted accounts according to the at least one settlement mode identifier and the settlement time range;
the charge calculation module is used for creating a plurality of threads according to the number of all accounts to be settled, calculating the service release charge of each account to be settled in all accounts to be settled through the plurality of threads, wherein each thread in the plurality of threads is used for processing the service release charge of one account to be settled each time;
the fee calculation module comprises:
the target service delivery system determining unit is used for determining a target service delivery system and a settlement mode identifier corresponding to any account to be settled through any thread;
a service delivery data obtaining unit, configured to obtain service delivery data of the any account to be settled from the target service delivery system according to the settlement mode identifier, where the service delivery data includes a target settlement rule corresponding to the settlement mode identifier and assessment data corresponding to the target settlement rule of the any account to be settled within the settlement time range;
and the service release charge calculation unit is used for calculating the assessment data according to the target settlement rule to obtain the service release charge of any account to be settled.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202111134805.1A 2021-09-27 2021-09-27 Method and device for settling service delivery cost, computer equipment and storage medium Pending CN113988999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111134805.1A CN113988999A (en) 2021-09-27 2021-09-27 Method and device for settling service delivery cost, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111134805.1A CN113988999A (en) 2021-09-27 2021-09-27 Method and device for settling service delivery cost, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113988999A true CN113988999A (en) 2022-01-28

Family

ID=79736880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111134805.1A Pending CN113988999A (en) 2021-09-27 2021-09-27 Method and device for settling service delivery cost, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113988999A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117273723A (en) * 2023-09-04 2023-12-22 上海数禾信息科技有限公司 Settlement prediction method, settlement prediction device, computer device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117273723A (en) * 2023-09-04 2023-12-22 上海数禾信息科技有限公司 Settlement prediction method, settlement prediction device, computer device and storage medium

Similar Documents

Publication Publication Date Title
US7945489B2 (en) Flexible cost and revenue allocation for service orders
EP1804211A1 (en) Method and system for providing sponsored content based on previous provided content
EP1811442A1 (en) Content center and method for business process applications
EP1804212A1 (en) Method and system for providing sponsored content based on user information
EP1811448A1 (en) Method and system for deploying a business application
EP1811441A1 (en) Method and system for providing context based content for computer applications
EP1811449A1 (en) Method and system for providing feedback on business transactions using computer applications
US20080201254A1 (en) Method and system for computer-implemented procurement from pre-qualified suppliers
US20070005461A1 (en) Business tax organizing method and system
US10713732B2 (en) System and method for implementing unified billing and unified rating operations
US11961148B2 (en) System and method for managing and editing accounting periods
CN108038776A (en) A kind of data processing method and data processing terminal
CN110555758A (en) Enterprise finance and tax intelligent management system
CN111142855A (en) Software development method and software development system
US8326712B2 (en) Method and system for technology consumption management
CN110706087B (en) Voucher data processing method and device, computer equipment and storage medium
CN113988999A (en) Method and device for settling service delivery cost, computer equipment and storage medium
US20140379417A1 (en) System and Method for Data Quality Business Impact Analysis
US10497066B2 (en) System and methods for creating and using revenue arrangements for efficient revenue management
US20070005516A1 (en) System, method and program to define, approve and draft a contract
CN110796436A (en) Process management system, method, device and readable medium for shared office
CN109711943B (en) Order counting method, device and system
JP2001175779A (en) Automatic classification method in accounting processing, accounting processor and recording medium recording classification program
US20200320637A1 (en) Automated potential risk relationship initial review and finalization via partner platform
Lee et al. ASC 606 and its impact on the franchise industry

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination