[go: up one dir, main page]

CN117611371A - Commission returning method, apparatus, computer-readable storage medium, and electronic device - Google Patents

Commission returning method, apparatus, computer-readable storage medium, and electronic device Download PDF

Info

Publication number
CN117611371A
CN117611371A CN202311688152.0A CN202311688152A CN117611371A CN 117611371 A CN117611371 A CN 117611371A CN 202311688152 A CN202311688152 A CN 202311688152A CN 117611371 A CN117611371 A CN 117611371A
Authority
CN
China
Prior art keywords
agent
rebate
time period
transaction
target
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
CN202311688152.0A
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.)
China Telecom Bestpay Co Ltd
Original Assignee
China Telecom Bestpay 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 China Telecom Bestpay Co Ltd filed Critical China Telecom Bestpay Co Ltd
Priority to CN202311688152.0A priority Critical patent/CN117611371A/en
Publication of CN117611371A publication Critical patent/CN117611371A/en
Pending legal-status Critical Current

Links

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

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

Abstract

The invention discloses a commission returning method, a commission returning device, a computer-readable storage medium and electronic equipment. The method comprises the following steps: acquiring transaction information of a plurality of merchants according to a first time period, and determining an agent corresponding to each merchant, wherein the target platform is used for providing at least one business service for each merchant, and the transaction information is generated when a user uses the business service for the merchant; determining, for each agent, a commission return rule for returning commissions to the agent at the at least one business service in accordance with contract information between the agent and the target platform; for each first time period, calculating a corresponding commission amount of each agent in the first time period according to the commission rule, the transaction information and the business service corresponding to each transaction record in the transaction information; and returning commissions to the agents according to the corresponding commission amounts of the agents in the first time period. The invention solves the technical problem that the efficiency of the returning operation is low because the returning operation is manually executed in the related technology.

Description

返佣方法、装置、计算机可读存储介质及电子设备Rebate methods, devices, computer-readable storage media and electronic equipment

技术领域Technical field

本发明涉及计算机软件应用领域,具体而言,涉及一种返佣方法、装置、计算机可读存储介质及电子设备。The present invention relates to the field of computer software applications, and specifically, to a rebate method, device, computer-readable storage medium and electronic equipment.

背景技术Background technique

随着机构业务的不断发展,机构内关于返佣工作的工作需求也在不断提高。目前,在返佣场景中,大多数机构主要是通过大数据平台人工汇总各代理商的交易金额,继而依赖人工根据交易金额计算得到返佣金额以完成返佣工作,然而,该种返佣算费方式存在自动化程度低、算费方式单一等问题,从而影响返佣效率。With the continuous development of the organization's business, the demand for rebate work within the organization is also increasing. Currently, in the rebate scenario, most institutions mainly use big data platforms to manually summarize the transaction amounts of each agent, and then rely on manual calculations based on the transaction amount to obtain the rebate amount to complete the rebate work. However, this kind of rebate calculation is The fee method has problems such as low degree of automation and single fee calculation method, which affects the commission rebate efficiency.

针对上述的问题,目前尚未提出有效的解决方案。In response to the above problems, no effective solution has yet been proposed.

发明内容Contents of the invention

本发明实施例提供了一种返佣方法、装置、计算机可读存储介质及电子设备,以至少解决相关技术中依赖人工执行返佣作业,从而存在返佣效率低的技术问题。Embodiments of the present invention provide a rebate method, device, computer-readable storage medium, and electronic equipment to at least solve the technical problem of low rebate efficiency in related technologies that relies on manual execution of rebate operations.

根据本发明实施例的一个方面,提供了一种返佣方法,包括:按照第一时间周期获取多个商户的交易信息,并确定每个商户对应的代理商,其中,目标平台用于为每个商户提供至少一种业务服务,交易信息为用户在商户使用业务服务时生成的,代理商用于将目标平台的业务服务代理给商户;对于每个代理商,依据代理商与目标平台之间的合约信息,确定在至少一种业务服务向代理商返佣的返佣规则;对于每个第一时间周期,依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商在第一时间周期对应的返佣金额;依据各个代理商在第一时间周期对应的返佣金额向各个代理商返佣。According to an aspect of an embodiment of the present invention, a rebate method is provided, including: obtaining transaction information of multiple merchants according to a first time period, and determining the agent corresponding to each merchant, wherein the target platform is used to provide each merchant with transaction information. Each merchant provides at least one business service. The transaction information is generated by the user when the merchant uses the business service. The agent is used to proxy the business services of the target platform to the merchant; for each agent, based on the relationship between the agent and the target platform The contract information determines the rebate rules for rebates to agents in at least one business service; for each first time period, calculate the rebate rules, transaction information, and business services corresponding to each transaction record in the transaction information. The rebate amount corresponding to each agent in the first time period; the commission will be rebate to each agent based on the rebate amount corresponding to each agent in the first time period.

进一步地,返佣方法还包括:对于每个合约子信息,确定合约子信息对应的业务服务,得到目标业务服务;获取预设的多个规则模板,并从多个规则模板中确定目标业务服务对应的规则模板,其中,不同的规则模板对应于不同的业务服务;从合约子信息中提取佣金费率,并将佣金费率导入目标业务服务对应的规则模板,得到目标业务服务对应的返佣规则;依据所有目标业务服务对应的返佣规则确定在至少一种业务服务向代理商返佣的返佣规则。Further, the rebate method also includes: for each contract sub-information, determine the business service corresponding to the contract sub-information, and obtain the target business service; obtain multiple preset rule templates, and determine the target business service from the multiple rule templates Corresponding rule templates, where different rule templates correspond to different business services; extract the commission rate from the contract sub-information, and import the commission rate into the rule template corresponding to the target business service to obtain the rebate corresponding to the target business service Rules: Determine the rebate rules for rebates to agents in at least one business service based on the rebate rules corresponding to all target business services.

进一步地,返佣方法还包括:对于第一时间周期内的每条交易记录,依据交易记录对应的代理商的返佣规则、交易记录对应的业务服务以及交易记录,计算得到交易记录对应的返佣金额;对于每个代理商,从所有交易记录确定与代理商对应的交易记录,得到多个目标交易记录;依据多个目标交易记录对应的返佣金额计算代理商在第一时间周期对应的返佣金额。Further, the rebate method also includes: for each transaction record within the first time period, calculate the rebate corresponding to the transaction record based on the rebate rules of the agent corresponding to the transaction record, the business services corresponding to the transaction record, and the transaction record. Commission amount; for each agent, determine the transaction record corresponding to the agent from all transaction records, and obtain multiple target transaction records; calculate the agent's corresponding commission amount in the first time period based on the rebate amount corresponding to the multiple target transaction records. Refund commission amount.

进一步地,返佣方法还包括:依据交易记录对应的业务服务,从代理商与各种业务服务对应的返佣规则中确定目标返佣规则;依据交易记录中的交易内容,从目标返佣规则中确定交易内容匹配的子规则,得到目标子规则;依据目标子规则以及交易内容,计算得到交易记录对应的返佣金额。Further, the rebate method also includes: based on the business services corresponding to the transaction records, determining the target rebate rules from the rebate rules corresponding to the agents and various business services; based on the transaction content in the transaction records, determining the target rebate rules from the rebate rules corresponding to the agents and various business services Determine the sub-rules matching the transaction content and obtain the target sub-rule; based on the target sub-rule and transaction content, calculate the rebate amount corresponding to the transaction record.

进一步地,返佣方法还包括:判断交易记录中的代理商标识所属的代理商的类型;若代理商标识属于总代理,则查找到代理商标识所对应的第一代理商,并确定第一代理商为交易记录对应的代理商;若代理商标识属于子代理,则查找到代理商标识所对应的第二代理商,并将第二代理商以及第二代理商对应的上级代理商确定为交易记录对应的代理商。Further, the rebate method also includes: determining the type of agent to which the agent ID in the transaction record belongs; if the agent ID belongs to a general agent, then finding the first agent corresponding to the agent ID and determining the first The agent is the agent corresponding to the transaction record; if the agent ID belongs to a sub-agent, the second agent corresponding to the agent ID is found, and the second agent and the superior agent corresponding to the second agent are determined as The agent corresponding to the transaction record.

进一步地,返佣方法还包括:对于每个代理商,依据代理商在第一时间周期对应的返佣金额生成代理商的账单,并向代理商发送账单,其中,代理商在确认账单正确后,依据账单生成待支付文件;获取代理商反馈的待支付文件,并将待支付文件发送至目标对象;在接收到目标对象反馈待支付文件正确的信息的情况下,依据待支付文件向代理商返佣。Further, the rebate method also includes: for each agent, generate the agent's bill based on the rebate amount corresponding to the agent in the first time period, and send the bill to the agent, where, after confirming that the bill is correct, the agent , generate a file to be paid based on the bill; obtain the file to be paid as fed back by the agent, and send the file to be paid to the target object; after receiving correct information about the file to be paid from the target object, send the file to the agent based on the file to be paid. Commission rebate.

进一步地,返佣方法还包括:确定代理商对应的返佣周期,其中,返佣周期至少包括:按第一时间周期返佣、按第二时间周期返佣,其中,第一时间时间周期的时间长度小于第二时间周期的时间长度;在返佣周期为按第一时间周期返佣的情况下,依据代理商在第一时间周期对应的返佣金额生成账单;在返佣周期为按第二时间周期返佣的情况下,依据第二时间周期与第一时间周期之间的时间关系,根据代理商在多个第一时间周期对应的返佣金额计算代理商在第二时间周期对应的目标返佣金额,并依据目标返佣金额生成账单。Further, the rebate method also includes: determining the commission cycle corresponding to the agent, wherein the rebate cycle at least includes: rebate according to the first time period, and rebate according to the second time period, wherein the rebate period of the first time period The time length is less than the length of the second time period; when the rebate period is based on the first time period, the bill is generated based on the agent's corresponding rebate amount in the first time period; when the rebate period is based on the second time period In the case of two-time period rebates, based on the time relationship between the second time period and the first time period, the agent's corresponding rebate amount in the second time period is calculated based on the agent's corresponding rebate amounts in multiple first time periods. Target rebate amount, and generate a bill based on the target rebate amount.

根据本发明实施例的另一方面,还提供了一种返佣装置,返佣装置设置于目标平台中,包括:第一确定模块,用于按照第一时间周期获取多个商户的交易信息,并确定每个商户对应的代理商,其中,目标平台用于为每个商户提供至少一种业务服务,交易信息为用户在商户使用业务服务时生成的,代理商用于将目标平台的业务服务代理给商户;第二确定模块,用于对于每个代理商,依据代理商与目标平台之间的合约信息,确定在至少一种业务服务向代理商返佣的返佣规则;计算模块,用于对于每个第一时间周期,依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商在第一时间周期对应的返佣金额;处理模块,用于依据各个代理商在第一时间周期对应的返佣金额向各个代理商返佣。According to another aspect of the embodiment of the present invention, a rebate device is also provided. The rebate device is provided in the target platform and includes: a first determination module for obtaining transaction information of multiple merchants according to a first time period, And determine the agent corresponding to each merchant, where the target platform is used to provide at least one business service for each merchant, the transaction information is generated when the user uses the business service at the merchant, and the agent is used to transfer the business services of the target platform Act as an agent to merchants; the second determination module is used to determine, for each agent, the rebate rules for rebates to the agent in at least one business service based on the contract information between the agent and the target platform; the calculation module uses For each first time period, based on the rebate rules, transaction information and the business services corresponding to each transaction record in the transaction information, calculate the rebate amount corresponding to each agent in the first time period; the processing module is used to calculate The commission amount corresponding to each agent in the first time period will be returned to each agent.

根据本发明实施例的另一方面,还提供了一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,其中,计算机程序被设置为运行时执行上述的返佣方法。According to another aspect of the embodiment of the present invention, a computer-readable storage medium is also provided. A computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above rebate method when running.

根据本发明实施例的另一方面,还提供了一种电子设备,电子设备包括一个或多个处理器;存储器,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理器实现用于运行程序,其中,程序被设置为运行时执行上述的返佣方法。According to another aspect of the embodiment of the present invention, an electronic device is also provided. The electronic device includes one or more processors; a memory for storing one or more programs. When one or more programs are processed by one or more When the processor executes, one or more processors are implemented to run the program, wherein the program is configured to execute the above-mentioned commission method during runtime.

在本发明实施例中,采用自动执行返佣作业的方式,通过按照第一时间周期获取多个商户的交易信息,并确定每个商户对应的代理商,然后对于每个代理商,依据代理商与目标平台之间的合约信息,确定在至少一种业务服务向代理商返佣的返佣规则,接着对于每个第一时间周期,依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商在第一时间周期对应的返佣金额,从而依据各个代理商在第一时间周期对应的返佣金额向各个代理商返佣,其中,目标平台用于为每个商户提供至少一种业务服务,交易信息为用户在商户使用业务服务时生成的,代理商用于将目标平台的业务服务代理给商户。In the embodiment of the present invention, a method of automatically executing rebate operations is adopted, by obtaining transaction information of multiple merchants according to a first time period, and determining the agent corresponding to each merchant, and then for each agent, according to the agent The contract information with the target platform determines the rebate rules for rebates to agents in at least one business service, and then for each first time period, based on the rebate rules, transaction information, and each transaction record in the transaction information The corresponding business service calculates the rebate amount corresponding to each agent in the first time period, and then rebates commission to each agent based on the rebate amount corresponding to each agent in the first time period. Among them, the target platform is used to provide each agent with the corresponding rebate amount. Each merchant provides at least one business service. The transaction information is generated when the user uses the business service at the merchant. The agent is used to represent the business services of the target platform to the merchant.

在上述过程中,通过自动获取商户的交易信息和商户与代理商之间的对应关系,实现了对返佣作业所需要的数据的自动获取,进一步地,通过依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商的返佣金额,实现了对返佣金额的自动计算,从而使得依据返佣金额向代理商返佣时,提高了返佣效率,降低了人工成本和出错率。此外,通过依据合约信息确定在至少一种业务服务向代理商返佣的返佣规则,使得本申请可以有效适配各种复杂佣金计算场景,从而可以有效提高本申请的适用性以及佣金计算的准确性。In the above process, by automatically obtaining the transaction information of the merchant and the corresponding relationship between the merchant and the agent, the data required for the rebate operation is automatically obtained. Furthermore, by based on the rebate rules, transaction information and transaction The business service corresponding to each transaction record in the information calculates the rebate amount of each agent, and realizes the automatic calculation of the rebate amount, thereby improving the rebate efficiency and reducing the rebate amount when rebates to agents based on the rebate amount. labor costs and error rates. In addition, by determining the commission rebate rules for rebates to agents in at least one business service based on contract information, this application can effectively adapt to various complex commission calculation scenarios, thereby effectively improving the applicability of this application and the efficiency of commission calculation. accuracy.

由此可见,本申请所提供的方案达到了自动执行返佣作业的目的,从而实现了提高返佣效率的技术效果,进而解决了相关技术中依赖人工执行返佣作业,从而存在返佣效率低的技术问题。It can be seen that the solution provided by this application achieves the purpose of automatically executing the commission rebate operation, thereby achieving the technical effect of improving the rebate efficiency, thereby solving the problem of low rebate efficiency in related technologies that relies on manual execution of commission rebate operations. technical issues.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present invention and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached picture:

图1是根据本发明实施例的一种可选的返佣方法的示意图;Figure 1 is a schematic diagram of an optional rebate method according to an embodiment of the present invention;

图2是根据本发明实施例的一种可选的目标平台的工作示意图;Figure 2 is a working schematic diagram of an optional target platform according to an embodiment of the present invention;

图3是根据本发明实施例的一种可选的计算返佣金额的示意图;Figure 3 is a schematic diagram of an optional calculation of rebate amount according to an embodiment of the present invention;

图4是根据本发明实施例的一种可选的向代理商返佣的示意图;Figure 4 is a schematic diagram of an optional commission rebate to an agent according to an embodiment of the present invention;

图5是根据本发明实施例的一种可选的计算目标返佣金额的示意图;Figure 5 is a schematic diagram of an optional calculation of the target rebate amount according to an embodiment of the present invention;

图6是根据本发明实施例的一种可选的返佣装置的示意图;Figure 6 is a schematic diagram of an optional rebate device according to an embodiment of the present invention;

图7是根据本发明实施例的一种可选的电子设备的示意图。Figure 7 is a schematic diagram of an optional electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein are capable of being practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.

需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,并且相关数据的收集、使用和处理需要遵守相关地区的相关法律法规和标准,并提供有相应的操作入口,供用户选择授权或者拒绝。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant regions, and a corresponding operation entrance is provided for the user to choose to authorize or refuse.

实施例1Example 1

根据本发明实施例,提供了一种返佣方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a rebate method is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although A logical order is shown in the flowcharts, but in some cases, the steps shown or described may be performed in a different order than herein.

图1是根据本发明实施例的一种可选的返佣方法的示意图,如图1所示,该方法应用于目标平台,包括如下步骤:Figure 1 is a schematic diagram of an optional rebate method according to an embodiment of the present invention. As shown in Figure 1, this method is applied to the target platform and includes the following steps:

步骤S101,按照第一时间周期获取多个商户的交易信息,并确定每个商户对应的代理商,其中,目标平台用于为每个商户提供至少一种业务服务,交易信息为用户在商户使用业务服务时生成的,代理商用于将目标平台的业务服务代理给商户。Step S101: Obtain the transaction information of multiple merchants according to the first time period, and determine the agent corresponding to each merchant. The target platform is used to provide at least one business service for each merchant, and the transaction information is used by the user at the merchant. Business services are generated, and agents are used to proxy the business services of the target platform to merchants.

其中,上述的第一时间周期可以是每天、每周或者是其它时间周期,且在某一第一时间周期所获取的交易信息为在该第一时间周期生成的。可选的,以一种可选的应用场景对目标平台、商户和代理商之间的关系进行说明。例如,目标平台为商户提供扫码支付业务,当用户在商户消费时,用户使用该扫码支付业务以向商户支付费用,商户需要根据用户支付的费用向目标平台提供一定比例的手续费。其中,该扫码支付业务可以是目标平台直接授权商户使用的,该扫码支付业务也可以是代理商代理给商户的,在代理情况下,目标平台还需要依据用户支付的费用向代理商提供一定比例的佣金。The above-mentioned first time period may be daily, weekly or other time periods, and the transaction information obtained in a certain first time period is generated in the first time period. Optional, use an optional application scenario to describe the relationship between the target platform, merchants and agents. For example, the target platform provides merchants with a scan-code payment service. When a user makes a purchase at the merchant, the user uses the scan-code payment service to pay the merchant. The merchant needs to provide a certain percentage of handling fees to the target platform based on the fees paid by the user. Among them, the scan code payment service can be directly authorized by the target platform for merchants to use, or the scan code payment service can be provided by an agent to the merchant. In the case of agency, the target platform also needs to provide the agent with the payment based on the fee paid by the user. A certain percentage of commission.

可选的,在本实施例中,前述的多个商户所使用的业务服务均为代理商所代理的,且业务服务为支付类服务,业务服务可以是扫码付款、金融产品购买等。当用户在商户使用业务服务时,目标平台便可以自动获取到该商户的交易信息,其中,交易信息中存在多条交易记录,一条交易记录对应一次用户交易,交易记录包括但不限于业务服务的标识、用户使用的支付卡的类型、商户标识等。图2是根据本发明实施例的一种可选的目标平台的工作示意图,如图2所示,数据传输系统与商户系统对接,目标平台可以从数据传输系统中获取多个商户的交易信息,数据录入系统用于在商户、代理商与目标平台首次合作时记录商户信息和代理商信息,数据传输系统可以从数据录入系统中获取代理商信息和商户信息。其中,代理商信息包括但不限于代理商标识、代理商与目标平台之间的合约信息,商户信息包括但不限于商户标识等。由于商户信息、商户和代理商之间的关系可能会发生更新,因此,如图2所示,目标平台还可以从数据传输系统中获取商户同步信息、会员同步信息以及会员转移信息,其中,商户同步信息包括商户信息的更新内容,会员同步信息包括商户和代理商之间最新的对应关系,会员转移信息包括商户和代理商之间对应关系的变动信息。其中,对应关系中至少包括代理商所合作的商户以及代理商代理给商户的业务服务的标识,目标平台可以依据会员同步信息确定每个商户对应的代理商。如图2所示,目标平台将获取到的信息存储至返佣数据库。Optionally, in this embodiment, the business services used by the foregoing multiple merchants are all represented by agents, and the business services are payment services. The business services may be QR code payment, financial product purchase, etc. When a user uses business services at a merchant, the target platform can automatically obtain the merchant's transaction information. There are multiple transaction records in the transaction information. One transaction record corresponds to one user transaction. The transaction records include but are not limited to business services. logo, type of payment card used by the user, merchant logo, etc. Figure 2 is a working schematic diagram of an optional target platform according to an embodiment of the present invention. As shown in Figure 2, the data transmission system is connected to the merchant system, and the target platform can obtain transaction information of multiple merchants from the data transmission system. The data entry system is used to record merchant information and agent information when merchants, agents and target platforms cooperate for the first time. The data transmission system can obtain agent information and merchant information from the data entry system. Among them, the agent information includes but is not limited to the agent identification, the contract information between the agent and the target platform, and the merchant information includes but is not limited to the merchant identification, etc. Since merchant information, the relationship between merchants and agents may be updated, as shown in Figure 2, the target platform can also obtain merchant synchronization information, member synchronization information and member transfer information from the data transmission system, where merchant Synchronization information includes updates to merchant information, member synchronization information includes the latest correspondence between merchants and agents, and member transfer information includes information about changes in the correspondence between merchants and agents. Among them, the corresponding relationship at least includes the identification of the merchants the agent cooperates with and the business services provided by the agent to the merchants. The target platform can determine the agent corresponding to each merchant based on the member synchronization information. As shown in Figure 2, the target platform stores the obtained information in the rebate database.

根据应用场景的不同,在商户所使用的业务服务中,未必所有业务服务均需要由目标平台向代理商支付佣金,因此,在获取到交易信息之后,如图2所示,目标平台可以根据预设的筛选规则对交易信息中不需要支付佣金的交易记录进行过滤,从而得到最终需要使用的交易信息,并将这些交易信息同样存储至返佣数据库。可选的,目标平台也可以在后续计算返佣金额时再对所获取的交易信息进行过滤。Depending on the application scenario, among the business services used by merchants, not all business services require the target platform to pay commission to the agent. Therefore, after obtaining the transaction information, as shown in Figure 2, the target platform can The set filtering rules filter the transaction records that do not require commission payment in the transaction information, so as to obtain the transaction information that ultimately needs to be used, and also store this transaction information in the rebate database. Optionally, the target platform can also filter the obtained transaction information when calculating the rebate amount.

步骤S102,对于每个代理商,依据代理商与目标平台之间的合约信息,确定在至少一种业务服务向代理商返佣的返佣规则。Step S102: For each agent, determine the commission rebate rules for rebate to the agent in at least one business service based on the contract information between the agent and the target platform.

可选的,代理商为目标平台代理业务服务时,会与目标平台之间签订合约,合约信息中包括至少一个合约子信息,不同的合约子信息与不同的业务服务对应,每个合约子信息包括代理商所代理的一个业务服务以及该业务服务所对应的佣金费率。可选的,目标平台可以依据合约子信息中的佣金费率确定在至少一种业务服务向代理商返佣的返佣规则。Optionally, when an agent provides business services to the target platform, it will sign a contract with the target platform. The contract information includes at least one contract sub-information. Different contract sub-information corresponds to different business services. Each contract sub-information Including a business service represented by the agent and the commission rate corresponding to the business service. Optionally, the target platform can determine the commission rebate rules for rebates to the agent for at least one business service based on the commission rate in the contract sub-information.

步骤S103,对于每个第一时间周期,依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商在第一时间周期对应的返佣金额。Step S103: For each first time period, calculate the rebate amount corresponding to each agent in the first time period based on the rebate rules, transaction information, and business services corresponding to each transaction record in the transaction information.

可选的,对于每条交易记录,目标平台可以先依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算出每条交易记录对应的返佣金额,然后依据交易记录与代理商之间的对应关系,计算得到各个代理商在第一时间周期对应的返佣金额。其中,目标平台可以基于QUARTZ定时任务框架完成每个第一时间周期的返佣金额的计算。如图2所示,目标平台可以从返佣数据库中获取上述的信息以计算返佣金额,然后进行返佣。Optionally, for each transaction record, the target platform can first calculate the rebate amount corresponding to each transaction record based on the rebate rules, transaction information, and the business services corresponding to each transaction record in the transaction information, and then calculate the rebate amount corresponding to the transaction record based on the transaction record. Based on the corresponding relationship with the agents, the rebate amount corresponding to each agent in the first time period is calculated. Among them, the target platform can complete the calculation of the rebate amount for each first time period based on the QUARTZ scheduled task framework. As shown in Figure 2, the target platform can obtain the above information from the rebate database to calculate the rebate amount and then rebate it.

步骤S104,依据各个代理商在第一时间周期对应的返佣金额向各个代理商返佣。Step S104: Rebate commissions to each agent based on the rebate amount corresponding to each agent in the first time period.

可选的,在每次计算得到各个代理商在第一时间周期对应的返佣金额时,目标平台可以直接将返佣金额返给各个代理商,可选的,目标平台也可以根据各个代理商的返佣周期,向各个代理商返佣。例如,在计算得到代理商在多个第一时间周期对应的返佣金额之后,再向代理商一次性返佣。Optionally, each time the rebate amount corresponding to each agent in the first time period is calculated, the target platform can directly return the rebate amount to each agent. Optionally, the target platform can also calculate the rebate amount according to each agent's calculation. The rebate cycle will rebate commissions to each agent. For example, after calculating the commission amount corresponding to the agent in multiple first time periods, the commission is then returned to the agent in one go.

基于上述步骤S101至步骤S104所限定的方案,可以获知,在本发明实施例中,采用自动执行返佣作业的方式,通过按照第一时间周期获取多个商户的交易信息,并确定每个商户对应的代理商,然后对于每个代理商,依据代理商与目标平台之间的合约信息,确定在至少一种业务服务向代理商返佣的返佣规则,接着对于每个第一时间周期,依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商在第一时间周期对应的返佣金额,从而依据各个代理商在第一时间周期对应的返佣金额向各个代理商返佣,其中,目标平台用于为每个商户提供至少一种业务服务,交易信息为用户在商户使用业务服务时生成的,代理商用于将目标平台的业务服务代理给商户。Based on the solution defined in the above steps S101 to S104, it can be known that in the embodiment of the present invention, the method of automatically executing the rebate operation is adopted, and the transaction information of multiple merchants is obtained according to the first time period, and each merchant is determined The corresponding agent, and then for each agent, based on the contract information between the agent and the target platform, determine the commission rebate rules for at least one business service to the agent, and then for each first time period, Based on the rebate rules, transaction information and the business services corresponding to each transaction record in the transaction information, calculate the rebate amount corresponding to each agent in the first time period, and then calculate the rebate amount corresponding to each agent in the first time period. Commissions are returned to each agent. The target platform is used to provide at least one business service to each merchant. The transaction information is generated when the user uses the business service at the merchant. The agent is used to provide the business services of the target platform to the merchant. .

在上述过程中,通过自动获取商户的交易信息和商户与代理商之间的对应关系,实现了对返佣作业所需要的数据的自动获取,进一步地,通过依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商的返佣金额,实现了对返佣金额的自动计算,从而使得依据返佣金额向代理商返佣时,提高了返佣效率,降低了人工成本和出错率。此外,通过依据合约信息确定在至少一种业务服务向代理商返佣的返佣规则,使得本申请可以有效适配各种复杂佣金计算场景,从而可以有效提高本申请的适用性以及佣金计算的准确性。In the above process, by automatically obtaining the transaction information of the merchant and the corresponding relationship between the merchant and the agent, the data required for the rebate operation is automatically obtained. Furthermore, by based on the rebate rules, transaction information and transaction The business service corresponding to each transaction record in the information calculates the rebate amount of each agent, and realizes the automatic calculation of the rebate amount, thereby improving the rebate efficiency and reducing the rebate amount when rebates to agents based on the rebate amount. labor costs and error rates. In addition, by determining the commission rebate rules for rebates to agents in at least one business service based on contract information, this application can effectively adapt to various complex commission calculation scenarios, thereby effectively improving the applicability of this application and the efficiency of commission calculation. accuracy.

由此可见,本申请所提供的方案达到了自动执行返佣作业的目的,从而实现了提高返佣效率的技术效果,进而解决了相关技术中依赖人工执行返佣作业,从而存在返佣效率低的技术问题。It can be seen that the solution provided by this application achieves the purpose of automatically executing the commission rebate operation, thereby achieving the technical effect of improving the rebate efficiency, thereby solving the problem of low rebate efficiency in related technologies that relies on manual execution of commission rebate operations. technical issues.

在一种可选的实施例中,合约信息包括至少一个合约子信息,不同的合约子信息与不同的业务服务对应,其中,在依据代理商与目标平台之间的合约信息,确定在至少一种业务服务向代理商返佣的返佣规则的过程中,目标平台可以对于每个合约子信息,确定合约子信息对应的业务服务,得到目标业务服务,然后获取预设的多个规则模板,并从多个规则模板中确定目标业务服务对应的规则模板,接着从合约子信息中提取佣金费率,并将佣金费率导入目标业务服务对应的规则模板,得到目标业务服务对应的返佣规则,从而依据所有目标业务服务对应的返佣规则确定在至少一种业务服务向代理商返佣的返佣规则。其中,不同的规则模板对应于不同的业务服务。In an optional embodiment, the contract information includes at least one contract sub-information, and different contract sub-information corresponds to different business services, wherein, based on the contract information between the agent and the target platform, it is determined that at least one In the process of rebate rules for various business services to rebate commissions to agents, the target platform can determine the business service corresponding to the contract sub-information for each contract sub-information, obtain the target business service, and then obtain multiple preset rule templates. And determine the rule template corresponding to the target business service from multiple rule templates, then extract the commission rate from the contract sub-information, and import the commission rate into the rule template corresponding to the target business service to obtain the rebate rules corresponding to the target business service , thereby determining the rebate rules for rebates to agents in at least one business service based on the rebate rules corresponding to all target business services. Among them, different rule templates correspond to different business services.

可选的,每个合约子信息包括代理商所代理的一个业务服务以及该业务服务所对应的佣金费率。因此,目标平台可以依据合约子信息的内容确定目标业务服务。可选的,规则模板与业务服务一一对应,目标平台可以从预设的多个规则模板中确定目标业务服务对应的规则模板,并将合约子信息中的佣金费率导入该规则模板中,从而得到目标业务服务对应的返佣规则,返佣规则用于依据佣金费率和交易金额计算返佣金额。其中,返佣规则的确定可以基于Drools规则引擎实现。Optionally, each contract sub-information includes a business service represented by the agent and the commission rate corresponding to the business service. Therefore, the target platform can determine the target business service based on the content of the contract sub-information. Optionally, rule templates correspond to business services one-to-one. The target platform can determine the rule template corresponding to the target business service from multiple preset rule templates, and import the commission rate in the contract sub-information into the rule template. Thus, the rebate rules corresponding to the target business service are obtained. The rebate rules are used to calculate the rebate amount based on the commission rate and transaction amount. Among them, the determination of rebate rules can be implemented based on the Drools rule engine.

可选的,当确定完代理商的所有目标业务服务的返佣规则后,也即确定了在至少一种业务服务向代理商返佣的返佣规则。其中,目标平台还可以响应工作人员的模板更新操作,以实现新建规则模板、更新规则模板、删除规则模板的需求。Optionally, after the commission rebate rules for all target business services of the agent are determined, the rebate rules for rebate commission to the agent in at least one business service are determined. Among them, the target platform can also respond to the staff's template update operations to realize the needs of creating new rule templates, updating rule templates, and deleting rule templates.

需要说明的是,通过依据规则模板和合约子信息中的佣金费率确定返佣规则,实现了对返佣规则快速且有效的确定,从而便于提高计算返佣金额的准确性,进而提高返佣效率。It should be noted that by determining the rebate rules based on the commission rate in the rule template and contract sub-information, the rebate rules can be quickly and effectively determined, thereby facilitating the improvement of the accuracy of calculating the rebate amount and thus increasing the rebate. efficiency.

在一种可选的实施例中,在依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商在第一时间周期对应的返佣金额的过程中,目标平台可以对于第一时间周期内的每条交易记录,依据交易记录对应的代理商的返佣规则、交易记录对应的业务服务以及交易记录,计算得到交易记录对应的返佣金额,然后对于每个代理商,从所有交易记录确定与代理商对应的交易记录,得到多个目标交易记录,从而依据多个目标交易记录对应的返佣金额计算代理商在第一时间周期对应的返佣金额。In an optional embodiment, in the process of calculating the rebate amount corresponding to each agent in the first time period based on the rebate rules, transaction information, and business services corresponding to each transaction record in the transaction information, the target For each transaction record in the first time period, the platform can calculate the rebate amount corresponding to the transaction record based on the rebate rules of the agent corresponding to the transaction record, the business services corresponding to the transaction record, and the transaction record, and then calculate the rebate amount for each transaction record. The agent determines the transaction records corresponding to the agent from all transaction records, obtains multiple target transaction records, and then calculates the agent's corresponding rebate amount in the first time period based on the rebate amounts corresponding to the multiple target transaction records.

可选的,在本实施例中,交易记录对应的代理商可以是一个或多个。例如,代理商的类型可以是总代理或子代理,总代理为子代理的上级代理,若某一代理商A为总代理,代理商B为代理商A的子代理,则交易记录对应的业务服务可以是代理商A代理给商户的,也可以是代理商A通过代理商B代理给商户的,对于前者情况,交易记录对应的代理商为代理商A,对于后者情况,交易记录对应的代理商为代理商A和代理商B。Optionally, in this embodiment, there may be one or more agents corresponding to the transaction record. For example, the type of agent can be a general agent or a sub-agent. The general agent is the superior agent of the sub-agent. If an agent A is the general agent and agent B is a sub-agent of agent A, then the transaction record corresponds to the business The service can be provided by Agent A to the merchant, or by Agent A through Agent B. In the former case, the agent corresponding to the transaction record is Agent A. In the latter case, the agent corresponding to the transaction record is Agent A. The agents are Agent A and Agent B.

因此,对于每条交易记录,目标平台可以先确定交易记录对应的代理商,然后对于所确定的每个代理商,查找到该代理商所对应的至少一个返佣规则,之后,目标平台可以从至少一个返佣规则中确定交易记录对应的业务服务所对应的返佣规则。可选的,目标平台可以依据确定的返佣规则和交易记录中的交易金额计算得到交易记录与代理商对应的返佣金额,例如,直接将返佣规则中的佣金费率与交易金额相乘,得到返佣金额。其中,若交易记录与一个代理商对应,则计算得到的交易记录对应的返佣金额也为一个,若交易记录与N个代理商对应,则计算得到的交易记录对应的返佣金额为N个。可选的,若交易记录没有对应的代理商,或者,代理商的返佣规则中没有交易记录对应的业务服务所匹配的返佣规则,则确定对应的返佣金额为0。Therefore, for each transaction record, the target platform can first determine the agent corresponding to the transaction record, and then for each determined agent, find at least one rebate rule corresponding to the agent. After that, the target platform can At least one rebate rule determines the rebate rule corresponding to the business service corresponding to the transaction record. Optionally, the target platform can calculate the rebate amount corresponding to the transaction record and the agent based on the determined rebate rule and the transaction amount in the transaction record. For example, directly multiply the commission rate in the rebate rule and the transaction amount. , get the rebate amount. Among them, if the transaction record corresponds to one agent, the calculated rebate amount corresponding to the transaction record is also one. If the transaction record corresponds to N agents, the calculated rebate amount corresponding to the transaction record is N. . Optionally, if the transaction record does not have a corresponding agent, or the agent's rebate rules do not have a rebate rule that matches the business service corresponding to the transaction record, then the corresponding rebate amount is determined to be 0.

可选的,在确定了每个交易记录对应的返佣金额之后,对于每个代理商,目标平台可以依据交易记录与代理商之间的对应关系,从所有交易记录确定与代理商对应的交易记录,得到多个目标交易记录,然后将多个目标交易记录与该代理商对应的返佣金额相加,从而得到代理商在第一时间周期对应的返佣金额。Optionally, after determining the rebate amount corresponding to each transaction record, for each agent, the target platform can determine the transaction corresponding to the agent from all transaction records based on the corresponding relationship between the transaction record and the agent. Record, obtain multiple target transaction records, and then add the multiple target transaction records and the rebate amount corresponding to the agent, thereby obtaining the rebate amount corresponding to the agent in the first time period.

例如,图3是根据本发明实施例的一种可选的计算返佣金额的示意图,如图3所示,目标平台包括定时任务模块、计算模块、缓存数据库和返佣数据库,定时任务模块可以定时去返佣数据库中的执行日志信息表中查询当前第一时间周期中的交易记录是否过滤完成,并获取返佣数据库返回的查询结果。之后,若过滤完成,定时任务模块可以去执行日志记录表中查询上一第一时间周期的返佣金额是否计算完成,并获取返佣数据库返回的查询结果。之后,若计算完成,则定时任务模块可以通知计算模块,然后由计算模块向执行日志记录表中插入当前第一时间周期的返佣金额正在计算的记录,并从返佣数据库中获取当前第一时间周期的交易记录总比笔数。For example, Figure 3 is a schematic diagram of an optional calculation of rebate amount according to an embodiment of the present invention. As shown in Figure 3, the target platform includes a scheduled task module, a calculation module, a cache database and a rebate database. The scheduled task module can Regularly query the execution log information table in the rebate database to see whether the transaction records in the current first time period have been filtered, and obtain the query results returned by the rebate database. After that, if the filtering is completed, the scheduled task module can query the execution log record table whether the calculation of the rebate amount for the previous first time period has been completed, and obtain the query results returned by the rebate database. After that, if the calculation is completed, the scheduled task module can notify the calculation module, and then the calculation module inserts into the execution log record table the record of the current first time period in which the rebate amount is being calculated, and obtains the current first time period from the rebate database. The total number of transaction records in a time period.

可选的,如图3所示,计算模块在获取到返佣数据库反馈的交易记录总比笔数之后,计算模块可以确定交易记录在返佣数据库中所存储的总页数,然后先从返佣数据库中获取一页的交易记录。之后,对于这一页中的每个交易记录,计算模块可以先确定交易记录对应的代理商,然后依据交易记录对应的代理商的返佣规则、交易记录对应的业务服务以及交易记录,计算得到交易记录对应的返佣金额。其中,如图3所示,目标平台可以将代理商信息、合约信息、规则模板等内容存储在前述的缓存数据库中,计算模块可以从缓存数据库中获取相关内容以确定各代理商的返佣规则。Optionally, as shown in Figure 3, after the calculation module obtains the total number of transaction records fed back from the rebate database, the calculation module can determine the total number of pages of transaction records stored in the rebate database, and then first obtain the total number of transaction records from the rebate database. Get one page of transaction records from the commission database. After that, for each transaction record on this page, the calculation module can first determine the agent corresponding to the transaction record, and then calculate based on the rebate rules of the agent corresponding to the transaction record, the business services corresponding to the transaction record, and the transaction record. The rebate amount corresponding to the transaction record. Among them, as shown in Figure 3, the target platform can store agent information, contract information, rule templates and other contents in the aforementioned cache database, and the computing module can obtain relevant content from the cache database to determine the rebate rules of each agent. .

可选的,如图3所示,在对一页的交易记录均计算完成后,计算模块可以将该页所有的交易记录对应的返佣金额记录至返佣数据库中,并从返佣数据库中获取新一页的交易记录进行返佣金额的计算,直至当前第一时间周期内的所有交易记录计算完成时,计算模块可以通知相关工作人员,并将当前第一时间周期的返佣金额计算完成的信息更新至执行日志记录表内。Optionally, as shown in Figure 3, after the calculation of all transaction records on a page is completed, the calculation module can record the rebate amounts corresponding to all transaction records on the page into the rebate database, and extract the rebate amounts from the rebate database. Obtain a new page of transaction records to calculate the rebate amount. When all transaction records in the current first time period are calculated, the calculation module can notify relevant staff and complete the calculation of the rebate amount in the current first time period. The information is updated into the execution log record table.

需要说明的是,通过先确定每个交易记录对应的返佣金额,然后依据交易记录与代理商之间的关系确定各个代理商在第一时间周期对应的返佣金额,实现了对返佣金额的准确计算。It should be noted that by first determining the rebate amount corresponding to each transaction record, and then determining the rebate amount corresponding to each agent in the first time period based on the relationship between the transaction record and the agent, the rebate amount is realized accurate calculation.

在一种可选的实施例中,返佣规则中包含多条子规则,子规则用于指示对返佣金额的计算方式,且子规则用于依据佣金费率和交易金额计算返佣金额,其中,在依据交易记录对应的代理商的返佣规则、交易记录对应的业务服务以及交易记录,计算得到交易记录对应的返佣金额的过程中,目标平台可以依据交易记录对应的业务服务,从代理商与各种业务服务对应的返佣规则中确定目标返佣规则,然后依据交易记录中的交易内容,从目标返佣规则中确定交易内容匹配的子规则,得到目标子规则,从而依据目标子规则以及交易内容,计算得到交易记录对应的返佣金额。In an optional embodiment, the rebate rules include multiple sub-rules, the sub-rules are used to indicate the calculation method of the rebate amount, and the sub-rules are used to calculate the rebate amount based on the commission rate and transaction amount, where , in the process of calculating the rebate amount corresponding to the transaction record based on the rebate rules of the agent corresponding to the transaction record, the business services corresponding to the transaction record, and the transaction record, the target platform can obtain the rebate amount from the agent based on the business service corresponding to the transaction record. Determine the target rebate rules from the rebate rules corresponding to the merchants and various business services, and then determine the sub-rules matching the transaction content from the target rebate rules based on the transaction content in the transaction records, and obtain the target sub-rules, and then based on the target sub-rules Rules and transaction content, and the rebate amount corresponding to the transaction record is calculated.

例如,某一返佣规则与“刷卡付款”这一业务服务对应,则该返佣规则可以包括两种子规则,一种子规则可以用于在用户使用贷记卡付款时计算返佣金额,另一种子规则可以用于在用户使用借记卡付款时计算返佣金额。其中,用户使用的支付卡的类型记录在交易记录中。For example, if a certain rebate rule corresponds to the business service of "card payment", the rebate rule can include two sub-rules. One sub-rule can be used to calculate the rebate amount when the user uses a credit card to pay, and the other sub-rule can be used to calculate the rebate amount when the user uses a credit card to pay. Seed rules can be used to calculate rebates when a user pays with a debit card. Among them, the type of payment card used by the user is recorded in the transaction record.

因此,在确定了交易记录对应的业务服务之后,目标平台可以从代理商与各种业务服务对应的返佣规则中确定与该业务服务对应的返佣规则,也即确定目标返佣规则。然后依据交易记录中的交易内容,从目标返佣规则中确定交易内容匹配的子规则,得到目标子规则。其中,返佣规则中记录有各个子规则的命中条件,例如,对于上述的两种子规则,对应的命中条件可以分别为“用户使用的支付卡的类型为贷记卡”、“用户使用的支付卡的类型为借记卡”。Therefore, after determining the business service corresponding to the transaction record, the target platform can determine the rebate rule corresponding to the business service from the rebate rules corresponding to the agent and various business services, that is, determine the target rebate rule. Then, based on the transaction content in the transaction record, the sub-rules matching the transaction content are determined from the target rebate rules to obtain the target sub-rules. Among them, the rebate rules record the hit conditions of each sub-rule. For example, for the above two sub-rules, the corresponding hit conditions can be respectively "the type of payment card used by the user is a credit card", "the type of payment card used by the user" The card type is debit card".

可选的,目标平台可以依据目标子规则以及交易记录中的交易金额,计算得到交易记录对应的返佣金额。Optionally, the target platform can calculate the rebate amount corresponding to the transaction record based on the target sub-rule and the transaction amount in the transaction record.

需要说明的是,通过将返佣规则设置为包括多个子规则,并依据子规则计算返佣金额,实现了对返佣金额的计算方式的更细粒度的划分,从而更进一步地提高了返佣金额计算的准确性。It should be noted that by setting the rebate rules to include multiple sub-rules and calculating the rebate amount based on the sub-rules, a more fine-grained division of the calculation method of the rebate amount is achieved, thereby further improving the rebate amount. Accuracy of amount calculation.

在一种可选的实施例中,代理商的类型为以下之一:总代理、子代理,总代理为子代理的上级代理,交易记录中包括代理商标识,其中,在依据交易记录对应的代理商的返佣规则、交易记录对应的业务服务以及交易记录,计算得到交易记录对应的返佣金额之前,目标平台可以判断交易记录中的代理商标识所属的代理商的类型,若代理商标识属于总代理,则查找到代理商标识所对应的第一代理商,并确定第一代理商为交易记录对应的代理商,若代理商标识属于子代理,则查找到代理商标识所对应的第二代理商,并将第二代理商以及第二代理商对应的上级代理商确定为交易记录对应的代理商。In an optional embodiment, the type of agent is one of the following: a general agent or a sub-agent. The general agent is the superior agent of the sub-agent. The transaction record includes an agent identification, where, according to the transaction record, the corresponding The agent's rebate rules, business services corresponding to transaction records, and transaction records. Before calculating the rebate amount corresponding to the transaction record, the target platform can determine the type of agent to which the agent ID in the transaction record belongs. If the agent ID If it belongs to the general agent, then the first agent corresponding to the agent ID is found, and the first agent is determined to be the agent corresponding to the transaction record. If the agent ID belongs to a sub-agent, then the first agent corresponding to the agent ID is found. The second agent, and determines the second agent and the superior agent corresponding to the second agent as the agent corresponding to the transaction record.

可选的,各代理商之间的上下级代理关系同样记录于目标平台中。例如,若某一代理商A为总代理,代理商B为代理商A的子代理,若交易记录中的代理商标识属于代理商A,则确定代理商A为第一代理商,并将代理商A确定为交易记录对应的代理商。若交易记录中的代理商标识属于代理商B,则确定代理商B为第二代理商,且第二代理商对应的上级代理商为代理商A,因此,将代理商A和代理商B确定为交易记录对应的代理商。Optionally, the superior-subordinate agency relationship between each agent is also recorded in the target platform. For example, if an agent A is the general agent, and agent B is a sub-agent of agent A, and if the agent ID in the transaction record belongs to agent A, then agent A is determined to be the first agent, and the agent is Merchant A is determined to be the agent corresponding to the transaction record. If the agent ID in the transaction record belongs to agent B, then agent B is determined to be the second agent, and the superior agent corresponding to the second agent is agent A. Therefore, agent A and agent B are determined The agent corresponding to the transaction record.

需要说明的是,通过判断代理商所属的代理商的类型,再依据判断结果确定交易记录对应的代理商,实现了对交易记录对应的代理商的准确确定,从而便于提高确定的佣金金额的准确性。It should be noted that by judging the type of agent to which the agent belongs, and then determining the agent corresponding to the transaction record based on the judgment result, the agent corresponding to the transaction record is accurately determined, thereby facilitating the improvement of the accuracy of the determined commission amount. sex.

在一种可选的实施例中,在依据各个代理商在第一时间周期对应的返佣金额向各个代理商返佣的过程中,目标平台可以对于每个代理商,依据代理商在第一时间周期对应的返佣金额生成代理商的账单,并向代理商发送账单,然后获取代理商反馈的待支付文件,并将待支付文件发送至目标对象,从而在接收到目标对象反馈待支付文件正确的信息的情况下,依据待支付文件向代理商返佣。其中,代理商在确认账单正确后,依据账单生成待支付文件。In an optional embodiment, in the process of rebates to each agent based on the rebate amount corresponding to each agent in the first time period, the target platform can, for each agent, based on the agent's first time period. The rebate amount corresponding to the time period generates the agent's bill, sends the bill to the agent, and then obtains the to-be-paid file fed back by the agent, and sends the to-be-paid file to the target object, so that after receiving the target object's feedback of the to-be-paid file If the information is correct, the commission will be rebate to the agent based on the documents to be paid. Among them, after the agent confirms that the bill is correct, it generates a document to be paid based on the bill.

例如,图4是根据本发明实施例的一种可选的向代理商返佣的示意图,如图4所示,对于每个代理商,目标平台可以依据该代理商在第一时间周期对应的返佣金额生成对应的账单,然后由目标平台对生成的账单进行审核,例如,对账单中的信息完整性进行审核。之后,目标平台在审核通过后将账单发布至目标平台的门户网站,然后由代理商在门户网站确认账单是否正确。For example, Figure 4 is a schematic diagram of an optional rebate to agents according to an embodiment of the present invention. As shown in Figure 4, for each agent, the target platform can be based on the agent's corresponding number in the first time period. The corresponding bill is generated for the rebate amount, and then the generated bill is reviewed by the target platform, for example, the integrity of the information in the bill is reviewed. Afterwards, the target platform will publish the bill to the target platform's portal after passing the review, and then the agent will confirm whether the bill is correct on the portal.

可选的,如图4所示,代理商在确认账单正确后,依据账单生成待支付文件,例如,待支付文件可以是发票,也可以是付款码,还可以是其它用于供目标平台支付的文件。然后,目标平台可以获取代理商反馈的待支付文件,并将待支付文件发送至目标对象,目标对象可以是相关工作人员。接着,目标对象可以对待支付文件进行核对,并在确定待支付文件正确的情况下,向目标平台发送相关信息,然后由目标平台将待支付文件发送至费控系统,以通过费控系统依据待支付文件向代理商返佣,并将返佣完成的信息反馈给目标平台,由目标平台进行记录。Optionally, as shown in Figure 4, after confirming that the bill is correct, the agent generates a file to be paid based on the bill. For example, the file to be paid can be an invoice, a payment code, or other files for payment by the target platform. document. Then, the target platform can obtain the to-be-paid files fed back by the agent, and send the to-be-paid files to the target object, which can be the relevant staff. Then, the target object can check the documents to be paid, and if it is determined that the documents to be paid are correct, send relevant information to the target platform, and then the target platform will send the documents to be paid to the fee control system to pass the fee control system according to the documents to be paid. The payment file rebates the commission to the agent, and feeds back the completed commission information to the target platform, which records it.

需要说明的是,通过先经过代理商和目标对象的确认返佣金额等信息,再向代理商返佣,提高了返佣流程的自动化程度并提高了本申请的适用性。It should be noted that by first confirming the rebate amount and other information with the agent and the target audience before returning the commission to the agent, the automation of the rebate process is improved and the applicability of this application is improved.

在一种可选的实施例中,在依据代理商在第一时间周期对应的返佣金额生成代理商的账单的过程中,目标平台可以确定代理商对应的返佣周期,然后在在返佣周期为按第一时间周期返佣的情况下,依据代理商在第一时间周期对应的返佣金额生成账单,在返佣周期为按第二时间周期返佣的情况下,依据第二时间周期与第一时间周期之间的时间关系,根据代理商在多个第一时间周期对应的返佣金额计算代理商在第二时间周期对应的目标返佣金额,并依据目标返佣金额生成账单。其中,返佣周期至少包括:按第一时间周期返佣、按第二时间周期返佣,其中,第一时间时间周期的时间长度小于第二时间周期的时间长度。In an optional embodiment, in the process of generating the agent's bill based on the agent's corresponding rebate amount in the first time period, the target platform can determine the agent's corresponding rebate period, and then rebate the agent's bill. If the commission cycle is based on the first time period, the bill will be generated based on the agent's rebate amount in the first time cycle. If the commission cycle is based on the second time cycle, the bill will be generated based on the second time cycle. The time relationship with the first time period is to calculate the agent's target rebate amount in the second time period based on the agent's corresponding rebate amount in multiple first time periods, and generate a bill based on the target rebate amount. The rebate cycle at least includes: rebate according to the first time period and rebate according to the second time period, wherein the time length of the first time period is shorter than the time length of the second time period.

可选的,在返佣周期为按第一时间周期返佣的情况下,目标平台可以在每获取到代理商在一个第一时间周期对应的返佣金额之后,便依据该返佣金额生成账单,然后进行返佣。在返佣周期为按第二时间周期返佣的情况下,目标平台可以将一个第二时间周期的时间长度除以一个第一时间周期的时间长度,得到数值M,从而根据代理商在M个第一时间周期对应的返佣金额计算代理商在第二时间周期对应的目标返佣金额,例如,将代理商在M个第一时间周期对应的返佣金额相加,得到目标返佣金额,进而依据目标返佣金额生成账单。其中,在本实施例中,按第一时间周期返佣可以是指按日返佣,按第二时间周期可以是按月返佣,在此情况下,前述的M为30。Optionally, when the rebate cycle is rebate based on the first time period, the target platform can generate a bill based on the rebate amount after obtaining the agent's rebate amount corresponding to the first time period. , and then rebate. In the case where the rebate period is based on the second time period, the target platform can divide the length of a second time period by the length of a first time period to obtain a value M, so that the agent can calculate the commission based on M times. The rebate amount corresponding to the first time period is used to calculate the target rebate amount corresponding to the agent in the second time period. For example, the target rebate amount is obtained by adding the rebate amounts corresponding to the M first time periods of the agent. Then generate a bill based on the target rebate amount. In this embodiment, the rebate according to the first time period may be a daily rebate, and the rebate according to the second time period may be a monthly rebate. In this case, the aforementioned M is 30.

例如,图5是根据本发明实施例的一种可选的计算目标返佣金额的示意图,如图5所示,在返佣周期为按第二时间周期返佣,且按第二时间周期为按月返佣的情况下,定时任务模块可以每月月初定时去返佣数据库中的执行日志记录表中查询上一月最后一天的返佣金额是否计算完成,并获取返佣数据库返回的查询结果。之后,若计算完成,则定时任务模块可以通知计算模块,然后由计算模块向执行日志记录表中插入上月的总返佣金额(也即目标返佣金额)正在计算的记录,并从返佣数据库中获取所有的代理商信息。之后,计算模块可以依据代理商信息从返佣数据库中获取各个代理商在上一月每一天对应的返佣金额,然后对于每个代理商,将该代理商在上一月所有天对应的返佣金额相加,得到目标返佣金额,接着将各个代理商的目标返佣金额记录至返佣数据库中,并通知相关工作人员,同时将当前第二时间周期的返佣金额计算完成的信息更新至执行日志记录表内。For example, Figure 5 is a schematic diagram of an optional calculation of the target rebate amount according to an embodiment of the present invention. As shown in Figure 5, in the rebate period, the rebate is based on the second time period, and the second time period is In the case of monthly rebates, the scheduled task module can regularly go to the execution log record table in the rebate database at the beginning of each month to query whether the calculation of the rebate amount on the last day of the previous month has been completed, and obtain the query results returned by the rebate database. . After that, if the calculation is completed, the scheduled task module can notify the calculation module, and then the calculation module inserts the record of the calculation of the total rebate amount (that is, the target rebate amount) of the previous month into the execution log record table, and calculates the total rebate amount from the rebate amount. Get all agent information from the database. After that, the calculation module can obtain the rebate amount corresponding to each agent for each day in the previous month from the rebate database based on the agent information, and then for each agent, calculate the rebate amount corresponding to all days of the previous month. The commission amounts are added up to obtain the target rebate amount. Then the target rebate amount of each agent is recorded in the rebate database, and the relevant staff are notified. At the same time, the information on the calculation of the rebate amount for the current second time period is updated. to the execution log record table.

需要说明的是,通过依据代理商对应的返佣周期向代理商返佣,可以更进一步地提高本申请返佣的灵活性,同时提高返佣效率。It should be noted that by returning commission to the agent according to the agent's corresponding commission cycle, the flexibility of the commission rebate application can be further improved and the commission rebate efficiency can be improved at the same time.

在一种可选的实施例中,在确定在至少一种业务服务向代理商返佣的返佣规则之后,目标平台可以先确定返佣平台的返佣方式,其中,返佣方式包括第一方式和第二方式,第一方式用于指示需要计算代理商在第一时间周期对应的返佣金额,第二方式用于指示只需计算代理商在第二时间周期对应的目标返佣金额,第一方式对应的返佣周期可以是按第一时间周期返佣或按第二时间周期返佣,第二方式对应的返佣周期为第二时间周期返佣。在返佣方式为第一方式的情况下,对于每个第一时间周期,目标平台可以依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商在第一时间周期对应的返佣金额。In an optional embodiment, after determining the rebate rules for rebates to agents in at least one business service, the target platform may first determine the rebate method of the rebate platform, where the rebate method includes a first method and the second method. The first method is used to indicate that the agent’s corresponding rebate amount in the first time period needs to be calculated. The second method is used to indicate that only the agent’s target rebate amount corresponding to the second time period needs to be calculated. The rebate period corresponding to the first method can be rebate according to the first time period or the second time period, and the rebate period corresponding to the second method is rebate according to the second time period. When the rebate method is the first method, for each first time period, the target platform can calculate the first time period for each agent based on the rebate rules, transaction information, and the business services corresponding to each transaction record in the transaction information. The rebate amount corresponding to the time period.

可选的,若返佣方式为第二方式,则对于每个代理商,目标平台可以依据交易信息以及交易信息中每条交易记录对应的业务服务,确定该代理商在各个业务服务所对应的交易总金额。然后依据交易总金额和代理商在第二时间周期对各个业务服务所约定的分润比例,计算得到该代理商在每个业务服务下的返佣金额,从而将该代理商在每个业务服务下的返佣金额相加,得到目标返佣金额。Optionally, if the rebate method is the second method, for each agent, the target platform can determine the transactions corresponding to each business service of the agent based on the transaction information and the business services corresponding to each transaction record in the transaction information. lump sum. Then based on the total transaction amount and the agent's agreed profit sharing ratio for each business service in the second time period, the agent's rebate amount for each business service is calculated, so that the agent's rebate for each business service is calculated. Add the rebate amounts below to get the target rebate amount.

由此可见,本申请所提供的方案达到了自动执行返佣作业的目的,从而实现了提高返佣效率的技术效果,进而解决了相关技术中依赖人工执行返佣作业,从而存在返佣效率低的技术问题。It can be seen that the solution provided by this application achieves the purpose of automatically executing the commission rebate operation, thereby achieving the technical effect of improving the rebate efficiency, thereby solving the problem of low rebate efficiency in related technologies that relies on manual execution of commission rebate operations. technical issues.

实施例2Example 2

根据本发明实施例,提供了一种返佣装置的实施例,其中,图6是根据本发明实施例的一种可选的返佣装置的示意图,如图6所示,该装置包括:According to an embodiment of the present invention, an embodiment of a rebate device is provided, wherein Figure 6 is a schematic diagram of an optional rebate device according to an embodiment of the present invention. As shown in Figure 6, the device includes:

第一确定模块601,用于按照第一时间周期获取多个商户的交易信息,并确定每个商户对应的代理商,其中,目标平台用于为每个商户提供至少一种业务服务,交易信息为用户在商户使用业务服务时生成的,代理商用于将目标平台的业务服务代理给商户;The first determination module 601 is used to obtain transaction information of multiple merchants according to a first time period, and determine the agent corresponding to each merchant, where the target platform is used to provide at least one business service for each merchant, and the transaction information It is generated when users use business services at merchants, and agents are used to proxy the business services of the target platform to merchants;

第二确定模块602,用于对于每个代理商,依据代理商与目标平台之间的合约信息,确定在至少一种业务服务向代理商返佣的返佣规则;The second determination module 602 is used to determine, for each agent, the rebate rules for rebates to the agent in at least one business service based on the contract information between the agent and the target platform;

计算模块603,用于对于每个第一时间周期,依据返佣规则、交易信息以及交易信息中每条交易记录对应的业务服务,计算各个代理商在第一时间周期对应的返佣金额;The calculation module 603 is used to calculate, for each first time period, the rebate amount corresponding to each agent in the first time period based on the rebate rules, transaction information, and the business services corresponding to each transaction record in the transaction information;

处理模块604,用于依据各个代理商在第一时间周期对应的返佣金额向各个代理商返佣。The processing module 604 is used to rebate commissions to each agent according to the rebate amount corresponding to each agent in the first time period.

需要说明的是,上述的第一确定模块601、第二确定模块602、计算模块603以及处理模块604对应于上述实施例中的步骤S101至步骤S104,四个模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例1所公开的内容。It should be noted that the above-mentioned first determination module 601, second determination module 602, calculation module 603 and processing module 604 correspond to steps S101 to step S104 in the above embodiment. Examples of implementation of the four modules and corresponding steps It is the same as the application scenario, but is not limited to the content disclosed in the above-mentioned Embodiment 1.

可选的,第二确定模块602还包括:第一确定子模块,用于对于每个合约子信息,确定合约子信息对应的业务服务,得到目标业务服务;第二确定子模块,用于获取预设的多个规则模板,并从多个规则模板中确定目标业务服务对应的规则模板,其中,不同的规则模板对应于不同的业务服务;导入子模块,用于从合约子信息中提取佣金费率,并将佣金费率导入目标业务服务对应的规则模板,得到目标业务服务对应的返佣规则;第三确定子模块,用于依据所有目标业务服务对应的返佣规则确定在至少一种业务服务向代理商返佣的返佣规则。Optionally, the second determination module 602 also includes: a first determination sub-module, used for each contract sub-information, determine the business service corresponding to the contract sub-information, and obtain the target business service; a second determination sub-module, used to obtain Multiple preset rule templates, and determine the rule template corresponding to the target business service from the multiple rule templates, where different rule templates correspond to different business services; import sub-modules for extracting commissions from contract sub-information rate, and import the commission rate into the rule template corresponding to the target business service to obtain the rebate rules corresponding to the target business service; the third determination sub-module is used to determine at least one type of commission rate based on the rebate rules corresponding to all target business services. Commission rebate rules for business services rebates to agents.

可选的,计算模块603还包括:第一计算子模块,用于对于第一时间周期内的每条交易记录,依据交易记录对应的代理商的返佣规则、交易记录对应的业务服务以及交易记录,计算得到交易记录对应的返佣金额;第四确定子模块,用于对于每个代理商,从所有交易记录确定与代理商对应的交易记录,得到多个目标交易记录;第二计算子模块,用于依据多个目标交易记录对应的返佣金额计算代理商在第一时间周期对应的返佣金额。Optionally, the calculation module 603 also includes: a first calculation sub-module, used for each transaction record in the first time period, according to the agent's rebate rules corresponding to the transaction record, the business services corresponding to the transaction record, and the transaction record, and calculate the rebate amount corresponding to the transaction record; the fourth determination sub-module is used for each agent to determine the transaction record corresponding to the agent from all transaction records, and obtain multiple target transaction records; the second calculation sub-module Module used to calculate the agent's corresponding rebate amount in the first time period based on the rebate amount corresponding to multiple target transaction records.

可选的,第一计算子模块还包括:第五确定子模块,用于依据交易记录对应的业务服务,从代理商与各种业务服务对应的返佣规则中确定目标返佣规则;第六确定子模块,用于依据交易记录中的交易内容,从目标返佣规则中确定交易内容匹配的子规则,得到目标子规则;第三计算子模块,用于依据目标子规则以及交易内容,计算得到交易记录对应的返佣金额。Optionally, the first calculation sub-module also includes: a fifth determination sub-module, used to determine the target rebate rules from the rebate rules corresponding to the agent and various business services based on the business services corresponding to the transaction records; the sixth The determination sub-module is used to determine the sub-rules matching the transaction content from the target rebate rules based on the transaction content in the transaction record, and obtain the target sub-rules; the third calculation sub-module is used to calculate based on the target sub-rules and transaction content. Get the rebate amount corresponding to the transaction record.

可选的,返佣装置还包括:判断模块,用于判断交易记录中的代理商标识所属的代理商的类型;第三确定模块,用于若代理商标识属于总代理,则查找到代理商标识所对应的第一代理商,并确定第一代理商为交易记录对应的代理商;第四确定模块,用于若代理商标识属于子代理,则查找到代理商标识所对应的第二代理商,并将第二代理商以及第二代理商对应的上级代理商确定为交易记录对应的代理商。Optionally, the rebate device also includes: a judgment module, used to judge the type of agent to which the agent ID in the transaction record belongs; and a third determination module, used to find the agent if the agent ID belongs to the general agent. The first agent corresponding to the identification, and determines the first agent as the agent corresponding to the transaction record; the fourth determination module is used to find the second agent corresponding to the agent identification if the agent identification belongs to a sub-agent dealer, and determine the second agent and the second agent's corresponding superior agent as the agent corresponding to the transaction record.

可选的,处理模块604还包括:生成子模块,用于对于每个代理商,依据代理商在第一时间周期对应的返佣金额生成代理商的账单,并向代理商发送账单,其中,代理商在确认账单正确后,依据账单生成待支付文件;发送子模块,用于获取代理商反馈的待支付文件,并将待支付文件发送至目标对象;处理子模块,用于在接收到目标对象反馈待支付文件正确的信息的情况下,依据待支付文件向代理商返佣。Optionally, the processing module 604 also includes: a generation sub-module, used for generating, for each agent, the agent's bill based on the agent's corresponding rebate amount in the first time period, and sending the bill to the agent, where, After the agent confirms that the bill is correct, it generates a file to be paid based on the bill; the sending sub-module is used to obtain the file to be paid as fed back by the agent, and sends the file to be paid to the target; the processing sub-module is used to process the file after receiving the target If the object returns correct information about the documents to be paid, commission will be repaid to the agent based on the documents to be paid.

可选的,生成子模块还包括:确定单元,用于确定代理商对应的返佣周期,其中,返佣周期至少包括:按第一时间周期返佣、按第二时间周期返佣,其中,第一时间时间周期的时间长度小于第二时间周期的时间长度;第一生成单元,用于在返佣周期为按第一时间周期返佣的情况下,依据代理商在第一时间周期对应的返佣金额生成账单;第二生成单元,用于在返佣周期为按第二时间周期返佣的情况下,依据第二时间周期与第一时间周期之间的时间关系,根据代理商在多个第一时间周期对应的返佣金额计算代理商在第二时间周期对应的目标返佣金额,并依据目标返佣金额生成账单。Optionally, the generation sub-module also includes: a determination unit, used to determine the rebate period corresponding to the agent, where the rebate period at least includes: rebate according to the first time period, and rebate according to the second time period, where, The time length of the first time period is less than the time length of the second time period; the first generation unit is used to, when the commission period is to rebate the commission according to the first time period, according to the agent's corresponding commission in the first time period. Generate a bill for the rebate amount; the second generation unit is used to generate a bill based on the time relationship between the second time period and the first time period when the rebate cycle is based on the second time period. Calculate the agent's target rebate amount corresponding to the second time period based on the rebate amount corresponding to the first time period, and generate a bill based on the target rebate amount.

实施例3Example 3

根据本发明实施例的另一方面,还提供了计算机可读存储介质,计算机可读存储介质中存储有计算机程序,其中,计算机程序被设置为运行时执行上述的返佣方法。According to another aspect of the embodiment of the present invention, a computer-readable storage medium is also provided, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the above rebate method when running.

实施例4Example 4

根据本发明实施例的另一方面,还提供了一种电子设备,其中,图7是根据本发明实施例的一种可选的电子设备的示意图,如图7所示,电子设备包括一个或多个处理器;存储器,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行时,使得一个或多个处理器实现用于运行程序,其中,程序被设置为运行时执行上述的返佣方法。According to another aspect of the embodiment of the present invention, an electronic device is also provided, wherein FIG. 7 is a schematic diagram of an optional electronic device according to the embodiment of the present invention. As shown in FIG. 7, the electronic device includes one or Multiple processors; memory for storing one or more programs so that when the one or more programs are executed by one or more processors, the one or more processors are implemented for running the programs, wherein the programs are configured Execute the above rebate method for runtime.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.

在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of units can be a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into Another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the units or modules may be in electrical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Integrated units may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as independent products. Based on this understanding, the technical solution of the present invention is essentially or contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code. .

以上仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those of ordinary skill in the art, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as It is the protection scope of the present invention.

Claims (10)

1.一种返佣方法,其特征在于,应用于目标平台,包括:1. A rebate method, characterized in that it is applied to the target platform and includes: 按照第一时间周期获取多个商户的交易信息,并确定每个商户对应的代理商,其中,所述目标平台用于为每个商户提供至少一种业务服务,所述交易信息为用户在所述商户使用所述业务服务时生成的,所述代理商用于将所述目标平台的业务服务代理给所述商户;Obtain the transaction information of multiple merchants according to the first time period, and determine the agent corresponding to each merchant, wherein the target platform is used to provide at least one business service for each merchant, and the transaction information is where the user is located. Generated when the merchant uses the business service, and the agent is used to agent the business service of the target platform to the merchant; 对于每个代理商,依据所述代理商与所述目标平台之间的合约信息,确定在至少一种业务服务向所述代理商返佣的返佣规则;For each agent, determine the rebate rules for rebates to the agent in at least one business service based on the contract information between the agent and the target platform; 对于每个第一时间周期,依据所述返佣规则、所述交易信息以及所述交易信息中每条交易记录对应的业务服务,计算各个代理商在所述第一时间周期对应的返佣金额;For each first time period, calculate the rebate amount corresponding to each agent in the first time period based on the rebate rules, the transaction information, and the business services corresponding to each transaction record in the transaction information. ; 依据各个代理商在所述第一时间周期对应的返佣金额向各个代理商返佣。Rebate commissions to each agent based on the rebate amount corresponding to each agent in the first time period. 2.根据权利要求1所述的方法,其特征在于,所述合约信息包括至少一个合约子信息,不同的合约子信息与不同的业务服务对应,其中,依据所述代理商与所述目标平台之间的合约信息,确定在至少一种业务服务向所述代理商返佣的返佣规则,包括:2. The method according to claim 1, characterized in that the contract information includes at least one contract sub-information, and different contract sub-information corresponds to different business services, wherein according to the agent and the target platform The contract information between them determines the rebate rules for rebates to the agent in at least one business service, including: 对于每个合约子信息,确定所述合约子信息对应的业务服务,得到目标业务服务;For each contract sub-information, determine the business service corresponding to the contract sub-information, and obtain the target business service; 获取预设的多个规则模板,并从所述多个规则模板中确定所述目标业务服务对应的规则模板,其中,不同的规则模板对应于不同的业务服务;Obtain a plurality of preset rule templates, and determine a rule template corresponding to the target business service from the plurality of rule templates, where different rule templates correspond to different business services; 从所述合约子信息中提取佣金费率,并将所述佣金费率导入所述目标业务服务对应的规则模板,得到所述目标业务服务对应的返佣规则;Extract the commission rate from the contract sub-information, import the commission rate into the rule template corresponding to the target business service, and obtain the rebate rules corresponding to the target business service; 依据所有目标业务服务对应的返佣规则确定在所述至少一种业务服务向所述代理商返佣的返佣规则。The rebate rules for rebates to the agent in the at least one business service are determined based on the rebate rules corresponding to all target business services. 3.根据权利要求1所述的方法,其特征在于,依据所述返佣规则、所述交易信息以及所述交易信息中每条交易记录对应的业务服务,计算各个代理商在所述第一时间周期对应的返佣金额,包括:3. The method according to claim 1, characterized in that, based on the rebate rules, the transaction information and the business services corresponding to each transaction record in the transaction information, the calculation of each agent's performance in the first The rebate amount corresponding to the time period includes: 对于所述第一时间周期内的每条交易记录,依据所述交易记录对应的代理商的返佣规则、所述交易记录对应的业务服务以及所述交易记录,计算得到所述交易记录对应的返佣金额;For each transaction record within the first time period, based on the rebate rules of the agent corresponding to the transaction record, the business services corresponding to the transaction record, and the transaction record, the transaction record corresponding to the transaction record is calculated. Rebate commission amount; 对于每个代理商,从所有交易记录确定与所述代理商对应的交易记录,得到多个目标交易记录;For each agent, determine the transaction record corresponding to the agent from all transaction records, and obtain multiple target transaction records; 依据所述多个目标交易记录对应的返佣金额计算所述代理商在所述第一时间周期对应的返佣金额。Calculate the rebate amount corresponding to the agent in the first time period based on the rebate amount corresponding to the multiple target transaction records. 4.根据权利要求3所述的方法,其特征在于,所述返佣规则中包含多条子规则,所述子规则用于指示对所述返佣金额的计算方式,其中,依据所述交易记录对应的代理商的返佣规则、所述交易记录对应的业务服务以及所述交易记录,计算得到所述交易记录对应的返佣金额,包括:4. The method according to claim 3, characterized in that the rebate rules include multiple sub-rules, and the sub-rules are used to indicate the calculation method of the rebate amount, wherein, according to the transaction record Based on the corresponding agent's rebate rules, the business services corresponding to the transaction record, and the transaction record, the rebate amount corresponding to the transaction record is calculated, including: 依据所述交易记录对应的业务服务,从所述代理商与各种业务服务对应的返佣规则中确定目标返佣规则;Based on the business services corresponding to the transaction records, determine the target rebate rules from the rebate rules corresponding to the agent and various business services; 依据所述交易记录中的交易内容,从所述目标返佣规则中确定所述交易内容匹配的子规则,得到目标子规则;According to the transaction content in the transaction record, determine the sub-rule matching the transaction content from the target rebate rule to obtain the target sub-rule; 依据所述目标子规则以及所述交易内容,计算得到所述交易记录对应的返佣金额。Based on the target sub-rule and the transaction content, the rebate amount corresponding to the transaction record is calculated. 5.根据权利要求3所述的方法,其特征在于,所述代理商的类型为以下之一:总代理、子代理,所述总代理为所述子代理的上级代理,所述交易记录中包括代理商标识,其中,在依据所述交易记录对应的代理商的返佣规则、所述交易记录对应的业务服务以及所述交易记录,计算得到所述交易记录对应的返佣金额之前,所述方法还包括:5. The method according to claim 3, characterized in that the type of the agent is one of the following: general agent, sub-agent, the general agent is the superior agent of the sub-agent, and the transaction record Including an agent identification, wherein, before calculating the rebate amount corresponding to the transaction record based on the agent's rebate rules corresponding to the transaction record, the business services corresponding to the transaction record, and the transaction record, all The above methods also include: 判断所述交易记录中的代理商标识所属的代理商的类型;Determine the type of agent to which the agent identification in the transaction record belongs; 若所述代理商标识属于所述总代理,则查找到所述代理商标识所对应的第一代理商,并确定所述第一代理商为所述交易记录对应的代理商;If the agent identification belongs to the general agent, find the first agent corresponding to the agent identification, and determine that the first agent is the agent corresponding to the transaction record; 若所述代理商标识属于所述子代理,则查找到所述代理商标识所对应的第二代理商,并将所述第二代理商以及所述第二代理商对应的上级代理商确定为所述交易记录对应的代理商。If the agent identification belongs to the sub-agent, the second agent corresponding to the agent identification is found, and the second agent and the superior agent corresponding to the second agent are determined as The agent corresponding to the transaction record. 6.根据权利要求1所述的方法,其特征在于,依据各个代理商在所述第一时间周期对应的返佣金额向各个代理商返佣,包括:6. The method according to claim 1, characterized in that rebates are given to each agent based on the rebate amount corresponding to each agent in the first time period, including: 对于每个代理商,依据所述代理商在所述第一时间周期对应的返佣金额生成所述代理商的账单,并向所述代理商发送所述账单,其中,所述代理商在确认所述账单正确后,依据所述账单生成待支付文件;For each agent, generate a bill for the agent based on the rebate amount corresponding to the agent in the first time period, and send the bill to the agent, wherein the agent confirms After the bill is correct, a document to be paid is generated based on the bill; 获取所述代理商反馈的待支付文件,并将所述待支付文件发送至目标对象;Obtain the files to be paid as fed back by the agent, and send the files to be paid to the target object; 在接收到所述目标对象反馈所述待支付文件正确的信息的情况下,依据所述待支付文件向所述代理商返佣。When receiving feedback from the target object that the file to be paid is correct, commission is returned to the agent based on the file to be paid. 7.根据权利要求6所述的方法,其特征在于,依据所述代理商在所述第一时间周期对应的返佣金额生成所述代理商的账单,包括:7. The method according to claim 6, characterized in that generating the agent's bill based on the rebate amount corresponding to the agent in the first time period includes: 确定所述代理商对应的返佣周期,其中,所述返佣周期至少包括:按第一时间周期返佣、按第二时间周期返佣,其中,所述第一时间周期的时间长度小于所述第二时间周期的时间长度;Determine the rebate period corresponding to the agent, wherein the rebate period at least includes: rebate according to a first time period, and rebate according to a second time period, wherein the length of the first time period is less than the rebate period. The length of the second time period; 在所述返佣周期为所述按第一时间周期返佣的情况下,依据所述代理商在所述第一时间周期对应的返佣金额生成所述账单;In the case where the rebate period is the rebate based on the first time period, the bill is generated based on the rebate amount corresponding to the agent in the first time period; 在所述返佣周期为所述按第二时间周期返佣的情况下,依据所述第二时间周期与所述第一时间周期之间的时间关系,根据所述代理商在多个第一时间周期对应的返佣金额计算所述代理商在所述第二时间周期对应的目标返佣金额,并依据所述目标返佣金额生成所述账单。In the case where the rebate period is the rebate according to the second time period, according to the time relationship between the second time period and the first time period, according to the agent's time in multiple first time periods, The rebate amount corresponding to the time period calculates the target rebate amount corresponding to the agent in the second time period, and generates the bill based on the target rebate amount. 8.一种返佣装置,其特征在于,所述返佣装置设置于目标平台中,包括:8. A rebate device, characterized in that the rebate device is installed in the target platform and includes: 第一确定模块,用于按照第一时间周期获取多个商户的交易信息,并确定每个商户对应的代理商,其中,所述目标平台用于为每个商户提供至少一种业务服务,所述交易信息为用户在所述商户使用所述业务服务时生成的,所述代理商用于将所述目标平台的业务服务代理给所述商户;The first determination module is used to obtain transaction information of multiple merchants according to a first time period, and determine the agent corresponding to each merchant, wherein the target platform is used to provide at least one business service for each merchant, so The transaction information is generated when the user uses the business service at the merchant, and the agent is used to agent the business service of the target platform to the merchant; 第二确定模块,用于对于每个代理商,依据所述代理商与所述目标平台之间的合约信息,确定在至少一种业务服务向所述代理商返佣的返佣规则;A second determination module, configured for each agent to determine the rebate rules for rebates to the agent in at least one business service based on the contract information between the agent and the target platform; 计算模块,用于对于每个第一时间周期,依据所述返佣规则、所述交易信息以及所述交易信息中每条交易记录对应的业务服务,计算各个代理商在所述第一时间周期对应的返佣金额;A calculation module configured to calculate, for each first time period, each agent's performance in the first time period based on the rebate rules, the transaction information, and the business services corresponding to each transaction record in the transaction information. The corresponding rebate amount; 处理模块,用于依据各个代理商在所述第一时间周期对应的返佣金额向各个代理商返佣。The processing module is used to rebate commissions to each agent according to the rebate amount corresponding to each agent in the first time period. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至7任一项中所述的返佣方法。9. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any one of claims 1 to 7 when running. The rebate method described. 10.一种电子设备,其特征在于,所述电子设备包括一个或多个处理器;存储器,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现用于运行程序,其中,所述程序被设置为运行时执行所述权利要求1至7任一项中所述的返佣方法。10. An electronic device, characterized in that the electronic device includes one or more processors; a memory for storing one or more programs. When the one or more programs are processed by the one or more When the processor is executed, the one or more processors are configured to run a program, wherein the program is configured to execute the rebate method described in any one of claims 1 to 7 during runtime.
CN202311688152.0A 2023-12-08 2023-12-08 Commission returning method, apparatus, computer-readable storage medium, and electronic device Pending CN117611371A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311688152.0A CN117611371A (en) 2023-12-08 2023-12-08 Commission returning method, apparatus, computer-readable storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311688152.0A CN117611371A (en) 2023-12-08 2023-12-08 Commission returning method, apparatus, computer-readable storage medium, and electronic device

Publications (1)

Publication Number Publication Date
CN117611371A true CN117611371A (en) 2024-02-27

Family

ID=89956142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311688152.0A Pending CN117611371A (en) 2023-12-08 2023-12-08 Commission returning method, apparatus, computer-readable storage medium, and electronic device

Country Status (1)

Country Link
CN (1) CN117611371A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117952620A (en) * 2024-03-27 2024-04-30 广州易尊网络科技股份有限公司 Commission settlement method and system for restoring online rate of statement based on data processing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117952620A (en) * 2024-03-27 2024-04-30 广州易尊网络科技股份有限公司 Commission settlement method and system for restoring online rate of statement based on data processing
CN117952620B (en) * 2024-03-27 2024-07-12 广州易尊网络科技股份有限公司 Commission settlement method and system for restoring online rate of statement based on data processing

Similar Documents

Publication Publication Date Title
US20020091602A1 (en) System and method for preparation of personal income taxes
CN110458691B (en) Pre-loan risk monitoring method and device
US8554645B1 (en) Method and system for identifying business expenditures with vendors and automatically generating and submitting required forms
CN110148049A (en) A kind of risk control method, device, computer equipment and readable storage medium storing program for executing
JP2015530689A (en) System and method for providing computer automated adjustable entry
WO2024119789A1 (en) Fund releasing method and apparatus, and computer device and readable storage medium
CN111008895A (en) A repayment method, device, equipment and storage medium for internet finance
CN113191887A (en) Abnormal account early warning method and device
CN117611371A (en) Commission returning method, apparatus, computer-readable storage medium, and electronic device
CN112184232A (en) Medical expense account checking method, device, equipment and storage medium
KR101772655B1 (en) Prepayment financial assistance system for cooperation business for co-prosperity of large and small firms and method thereof
CN114049196A (en) A kind of public loan interest settlement method, device and computer equipment
JP2004133514A (en) Credit erasure processor, credit erasure processing method, computer program and record medium
US8504428B1 (en) System and method of tracking and encoding electronic transactions
JP6423031B2 (en) Information processing apparatus and program
JP6760874B2 (en) Information processing equipment and programs
JP6760875B2 (en) Account management equipment and programs
JP2001222656A (en) System, device, method for financial affair management, and recording medium
WO2007070723A2 (en) Systems and methods for automated retail recovery auditing
JP6766023B2 (en) Information processing equipment and programs
JP7016394B2 (en) Information processing equipment and programs
CN118537153B (en) Account reconciliation method, device, system, storage medium and program product
JP6704973B2 (en) Information processing device and program
JP2005309697A (en) Credit fluidizing system and credit fluidizing processing method
JP2024136812A (en) Account transfer management device, account transfer management method, and account transfer management program

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